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