04c2c824a5156039a889ee06d7670362c14c8814
[reactos.git] / rosapps / sysutils / regexpl / Makefile
1 # $Id: Makefile,v 1.6 2001/10/16 21:02:02 ea Exp $
2 #
3 # ReactOS makefile for RegExpl
4 #
5
6 include ../../rules.mak
7
8 TARGET_NAME=regexpl
9
10 all: $(TARGET_NAME)$(EXE_POSTFIX)
11
12 include depend.mak
13
14 ROS_DIR=../../../reactos
15 ROS_INC=$(ROS_DIR)/include
16 ROS_LIB=$(ROS_DIR)/dk/w32/lib
17 IMPORT_NTDLL=$(ROS_LIB)/ntdll.a
18 IMPORT_FMIFS=$(ROS_LIB)/fmifs.a
19 IMPORT_KERNEL32=$(ROS_LIB)/kernel32.a
20 IMPORT_ADVAPI32=$(ROS_LIB)/advapi32.a
21 IMPORT_USER32=$(ROS_LIB)/user32.a
22 IMPORT_CRTDLL=$(ROS_LIB)/crtdll.a
23
24 depend.mak : *.h
25 $(CC) \
26 -MM *.cpp *.c > $@
27
28 OBJECTS = \
29 ArgumentParser.o \
30 Console.o \
31 RegistryExplorer.o \
32 RegistryKey.o \
33 RegistryTree.o \
34 SecurityDescriptor.o \
35 ShellCommand.o \
36 ShellCommandChangeKey.o \
37 ShellCommandConnect.o \
38 ShellCommandDACL.o \
39 ShellCommandDeleteKey.o \
40 ShellCommandDeleteValue.o \
41 ShellCommandDir.o \
42 ShellCommandExit.o \
43 ShellCommandHelp.o \
44 ShellCommandNewKey.o \
45 ShellCommandOwner.o \
46 ShellCommandSACL.o \
47 ShellCommandSetValue.o \
48 ShellCommandValue.o \
49 ShellCommandVersion.o \
50 ShellCommandsLinkedList.o \
51 CrtSupplement.c \
52 TextHistory.o \
53 Completion.o \
54 Pattern.o \
55 Settings.o \
56 Prompt.o \
57 $(TARGET_NAME).coff
58
59 CLEAN_FILES = \
60 *.o \
61 $(TARGET_NAME)$(EXE_POSTFIX) \
62 $(TARGET_NAME).sym \
63 $(TARGET_NAME).coff\
64 depend.mak
65
66
67 $(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
68 $(CC) \
69 -Wl,--subsystem,console \
70 -o $@ \
71 $(IMPORT_KERNEL32) \
72 $(IMPORT_CRTDLL) \
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