f6b3140049250add441078602eafedb8b8429b34
[reactos.git] / rosapps / sysutils / regexpl / Makefile
1 # $Id: Makefile,v 1.8 2002/09/09 22:36:40 sedwards Exp $
2 #
3 # ReactOS makefile for RegExpl
4 #
5
6 PATH_TO_TOP = ../..
7
8 include $(PATH_TO_TOP)/rules.mak
9
10 TARGET_NAME=regexpl
11
12 all: $(TARGET_NAME)$(EXE_POSTFIX)
13
14 include depend.mak
15
16 ROS_DIR=../../../reactos
17 ROS_INC=$(ROS_DIR)/include
18 ROS_LIB=$(ROS_DIR)/dk/w32/lib
19 IMPORT_NTDLL=$(ROS_LIB)/ntdll.a
20 IMPORT_FMIFS=$(ROS_LIB)/fmifs.a
21 IMPORT_KERNEL32=$(ROS_LIB)/kernel32.a
22 IMPORT_ADVAPI32=$(ROS_LIB)/advapi32.a
23 IMPORT_USER32=$(ROS_LIB)/user32.a
24
25 depend.mak : *.h
26 $(CC) \
27 -MM *.cpp *.c > $@
28
29 OBJECTS = \
30 ArgumentParser.o \
31 Console.o \
32 RegistryExplorer.o \
33 RegistryKey.o \
34 RegistryTree.o \
35 SecurityDescriptor.o \
36 ShellCommand.o \
37 ShellCommandChangeKey.o \
38 ShellCommandConnect.o \
39 ShellCommandDACL.o \
40 ShellCommandDeleteKey.o \
41 ShellCommandDeleteValue.o \
42 ShellCommandDir.o \
43 ShellCommandExit.o \
44 ShellCommandHelp.o \
45 ShellCommandNewKey.o \
46 ShellCommandOwner.o \
47 ShellCommandSACL.o \
48 ShellCommandSetValue.o \
49 ShellCommandValue.o \
50 ShellCommandVersion.o \
51 ShellCommandsLinkedList.o \
52 CrtSupplement.c \
53 TextHistory.o \
54 Completion.o \
55 Pattern.o \
56 Settings.o \
57 Prompt.o \
58 $(TARGET_NAME).coff
59
60 CLEAN_FILES = \
61 *.o \
62 $(TARGET_NAME)$(EXE_POSTFIX) \
63 $(TARGET_NAME).sym \
64 $(TARGET_NAME).coff\
65 depend.mak
66
67
68 $(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
69 $(CPP) \
70 -Wl,--subsystem,console \
71 -o $@ \
72 $(IMPORT_KERNEL32) \
73 $(IMPORT_USER32) \
74 $(OBJECTS)
75 $(NM) --numeric-sort $(TARGET_NAME)$(EXE_POSTFIX) > $(TARGET_NAME).sym
76
77 clean: $(CLEAN_FILES:%=%_clean)
78
79 $(CLEAN_FILES:%=%_clean): %_clean:
80 - $(RM) $*
81
82 .phony: clean $(CLEAN_FILES:%=%_clean)
83
84
85 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
86
87 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
88 ifeq ($(DOSCLI),yes)
89 $(CP) $* $(FLOPPY_DIR)\apps\$*
90 else
91 $(CP) $* $(FLOPPY_DIR)/apps/$*
92 endif
93
94
95 dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
96
97 $(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
98 ifeq ($(DOSCLI),yes)
99 $(CP) $* ..\$(DIST_DIR)\apps\$*
100 else
101 $(CP) $* ../$(DIST_DIR)/apps\$*
102 endif
103
104 # EOF
105