no message
[reactos.git] / rosapps / sysutils / regexpl / Makefile
1 # $Id: Makefile,v 1.4 2001/01/10 01:25:29 narnaoud 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)/lib
17 IMPORT_NTDLL=$(ROS_LIB)/ntdll/ntdll.a
18 IMPORT_FMIFS=$(ROS_LIB)/fmifs/fmifs.a
19 IMPORT_KERNEL32=$(ROS_LIB)/kernel32/kernel32.a
20 IMPORT_ADVAPI32=$(ROS_LIB)/advapi32/advapi32.a
21 IMPORT_USER32=$(ROS_LIB)/user32/user32.a
22 IMPORT_CRTDLL=$(ROS_LIB)/crtdll/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 $(TARGET_NAME).coff
56
57 CLEAN_FILES = \
58 *.o \
59 $(TARGET_NAME)$(EXE_POSTFIX) \
60 $(TARGET_NAME).sym \
61 $(TARGET_NAME).coff\
62 depend.mak
63
64
65 $(TARGET_NAME)$(EXE_POSTFIX): $(OBJECTS)
66 $(CC) \
67 -Wl,--subsystem,console \
68 -o $@ \
69 $(IMPORT_KERNEL32) \
70 $(IMPORT_CRTDLL) \
71 $(IMPORT_USER32) \
72 $(OBJECTS)
73 $(NM) --numeric-sort $(TARGET_NAME)$(EXE_POSTFIX) > $(TARGET_NAME).sym
74
75 clean: $(CLEAN_FILES:%=%_clean)
76
77 $(CLEAN_FILES:%=%_clean): %_clean:
78 - $(RM) $*
79
80 .phony: clean $(CLEAN_FILES:%=%_clean)
81
82
83 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
84
85 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
86 ifeq ($(DOSCLI),yes)
87 $(CP) $* $(FLOPPY_DIR)\apps\$*
88 else
89 $(CP) $* $(FLOPPY_DIR)/apps/$*
90 endif
91
92
93 dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
94
95 $(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
96 ifeq ($(DOSCLI),yes)
97 $(CP) $* ..\$(DIST_DIR)\apps\$*
98 else
99 $(CP) $* ../$(DIST_DIR)/apps\$*
100 endif
101
102 # EOF
103