2000-10-24 20:17:42 +00:00
|
|
|
# $Id: Makefile,v 1.3 2000/10/24 20:17:41 narnaoud Exp $
|
2000-10-04 21:04:31 +00:00
|
|
|
#
|
|
|
|
# ReactOS makefile for RegExpl
|
|
|
|
#
|
|
|
|
|
2000-10-08 10:48:10 +00:00
|
|
|
include ../../rules.mak
|
|
|
|
|
2000-10-04 21:04:31 +00:00
|
|
|
TARGET_NAME=regexpl
|
|
|
|
|
2000-10-24 20:17:42 +00:00
|
|
|
all: $(TARGET_NAME)$(EXE_POSTFIX)
|
|
|
|
|
|
|
|
include depend.mak
|
|
|
|
|
2000-10-04 21:04:31 +00:00
|
|
|
ROS_DIR=../../../reactos
|
|
|
|
ROS_INC=$(ROS_DIR)/include
|
|
|
|
ROS_LIB=$(ROS_DIR)/lib
|
|
|
|
IMPORT_NTDLL=$(ROS_LIB)/ntdll/ntdll.a
|
|
|
|
IMPORT_FMIFS=$(ROS_LIB)/fmifs/fmifs.a
|
|
|
|
IMPORT_KERNEL32=$(ROS_LIB)/kernel32/kernel32.a
|
|
|
|
IMPORT_ADVAPI32=$(ROS_LIB)/advapi32/advapi32.a
|
|
|
|
IMPORT_USER32=$(ROS_LIB)/user32/user32.a
|
|
|
|
IMPORT_CRTDLL=$(ROS_LIB)/crtdll/crtdll.a
|
|
|
|
|
2000-10-24 20:17:42 +00:00
|
|
|
depend.mak : *.h
|
|
|
|
$(CC) \
|
|
|
|
-MM *.cpp *.c > $@
|
2000-10-04 21:04:31 +00:00
|
|
|
|
|
|
|
OBJECTS = \
|
|
|
|
ArgumentParser.o \
|
|
|
|
Console.o \
|
|
|
|
RegistryExplorer.o \
|
|
|
|
RegistryKey.o \
|
|
|
|
RegistryTree.o \
|
|
|
|
SecurityDescriptor.o \
|
|
|
|
ShellCommand.o \
|
|
|
|
ShellCommandChangeKey.o \
|
|
|
|
ShellCommandConnect.o \
|
|
|
|
ShellCommandDACL.o \
|
|
|
|
ShellCommandDOKA.o \
|
|
|
|
ShellCommandDeleteKey.o \
|
|
|
|
ShellCommandDeleteValue.o \
|
|
|
|
ShellCommandDir.o \
|
|
|
|
ShellCommandExit.o \
|
|
|
|
ShellCommandHelp.o \
|
|
|
|
ShellCommandNewKey.o \
|
|
|
|
ShellCommandOwner.o \
|
|
|
|
ShellCommandSACL.o \
|
|
|
|
ShellCommandSetValue.o \
|
|
|
|
ShellCommandValue.o \
|
|
|
|
ShellCommandVersion.o \
|
|
|
|
ShellCommandsLinkedList.o \
|
|
|
|
CrtSupplement.c \
|
|
|
|
TextHistory.o \
|
|
|
|
$(TARGET_NAME).coff
|
|
|
|
|
|
|
|
CLEAN_FILES = \
|
|
|
|
*.o \
|
|
|
|
$(TARGET_NAME)$(EXE_POSTFIX) \
|
|
|
|
$(TARGET_NAME).sym \
|
2000-10-24 20:17:42 +00:00
|
|
|
$(TARGET_NAME).coff\
|
|
|
|
depend.mak
|
2000-10-04 21:04:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
$(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
|
|
|
|
$(CC) \
|
|
|
|
-Wl,--subsystem,console \
|
2000-10-24 20:17:42 +00:00
|
|
|
-o $@ \
|
2000-10-04 21:04:31 +00:00
|
|
|
$(IMPORT_KERNEL32) \
|
|
|
|
$(IMPORT_CRTDLL) \
|
|
|
|
$(IMPORT_USER32) \
|
|
|
|
$(OBJECTS)
|
|
|
|
$(NM) --numeric-sort $(TARGET_NAME)$(EXE_POSTFIX) > $(TARGET_NAME).sym
|
|
|
|
|
|
|
|
clean: $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
|
|
- $(RM) $*
|
|
|
|
|
|
|
|
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
|
|
|
|
floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
|
|
|
|
|
|
|
|
$(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
|
|
|
|
ifeq ($(DOSCLI),yes)
|
|
|
|
$(CP) $* $(FLOPPY_DIR)\apps\$*
|
|
|
|
else
|
|
|
|
$(CP) $* $(FLOPPY_DIR)/apps/$*
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
|
|
|
|
|
|
|
|
$(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
|
|
|
|
ifeq ($(DOSCLI),yes)
|
|
|
|
$(CP) $* ..\$(DIST_DIR)\apps\$*
|
|
|
|
else
|
|
|
|
$(CP) $* ../$(DIST_DIR)/apps\$*
|
|
|
|
endif
|
|
|
|
|
|
|
|
# EOF
|
|
|
|
|