OSDN Git Service

invoke yamy{64,32} and yamyd32 from same directory of yamy.exe instead of current...
[yamy/yamy.git] / s / setup-common.mak
1 ############################################################## -*- Makefile -*-\r
2 #\r
3 # Makefile for setup\r
4 #\r
5 ###############################################################################\r
6 \r
7 \r
8 !if "$(TARGETOS)" == "WINNT"\r
9 OS_SPECIFIC_DEFINES     =  -DUNICODE -D_UNICODE\r
10 DISTRIB_OS      = nt\r
11 !endif\r
12 \r
13 !if "$(TARGETOS)" == "WIN95"\r
14 OS_SPECIFIC_DEFINES     =  -D_MBCS\r
15 DISTRIB_OS      = 9x\r
16 !endif\r
17 \r
18 !if "$(TARGETOS)" == "BOTH"\r
19 !error Must specify TARGETOS=WIN95 or TARGETOS=WINNT\r
20 !endif\r
21 \r
22 \r
23 DEFINES         = -DSTRICT -D_WIN32_IE=0x0400 $(OS_SPECIFIC_DEFINES) \\r
24                   $(DEBUGDEFINES)\r
25 BOOST_DIR       = ../../boost_$(BOOST_VER)_0\r
26 \r
27 \r
28 # setup.exe     ###############################################################\r
29 \r
30 TARGET_1        = $(OUT_DIR)\setup.exe\r
31 OBJS_1          =                               \\r
32                 $(OUT_DIR)\setup.obj            \\r
33                 $(OUT_DIR)\installer.obj        \\r
34                 ..\$(OUT_DIR)\registry.obj      \\r
35                 ..\$(OUT_DIR)\stringtool.obj    \\r
36                 ..\$(OUT_DIR)\windowstool.obj   \\r
37 \r
38 SRCS_1          =                       \\r
39                 setup.cpp               \\r
40                 installer.cpp           \\r
41                 ..\registry.cpp         \\r
42                 ..\stringtool.cpp       \\r
43                 ..\windowstool.cpp      \\r
44 \r
45 RES_1           = $(OUT_DIR)\setup.res\r
46 \r
47 LIBS_1          = $(guixlibsmt) shell32.lib ole32.lib uuid.lib\r
48 \r
49 \r
50 # tools         ###############################################################\r
51 \r
52 MAKEDEPEND      = perl ../tools/makedepend -o.obj\r
53 \r
54 \r
55 # rules         ###############################################################\r
56 \r
57 all:            $(OUT_DIR) $(TARGET_1)\r
58 \r
59 $(OUT_DIR):\r
60                 if not exist "$(OUT_DIR)\\" $(MKDIR) $(OUT_DIR)\r
61 \r
62 setup.cpp:      strres.h\r
63 \r
64 clean:\r
65                 -$(RM) $(TARGET_1) strres.h\r
66                 -$(RM) $(OUT_DIR)\*.obj $(OUT_DIR)\*.res $(OUT_DIR)\*.pdb *.pdb\r
67                 -$(RM) *~ $(CLEAN)\r
68                 -$(RMDIR) $(OUT_DIR)\r
69 \r
70 depend::\r
71                 $(MAKEDEPEND) -fsetup-common.mak \\r
72                 -- $(DEPENDFLAGS) -- $(SRCS_1)\r
73 \r
74 # DO NOT DELETE\r
75 \r
76 $(OUT_DIR)\setup.obj: ../compiler_specific.h ../mayu.h ../misc.h \\r
77  ../registry.h ../stringtool.h ../windowstool.h installer.h setuprc.h \\r
78  strres.h\r
79 $(OUT_DIR)\installer.obj: ../compiler_specific.h ../misc.h ../registry.h \\r
80  ../stringtool.h ../windowstool.h installer.h\r
81 $(OUT_DIR)\..\registry.obj: ../compiler_specific.h ../misc.h \\r
82  ../registry.cpp ../registry.h ../stringtool.h\r
83 $(OUT_DIR)\..\stringtool.obj: ../compiler_specific.h ../misc.h \\r
84  ../stringtool.cpp ../stringtool.h\r
85 $(OUT_DIR)\..\windowstool.obj: ../compiler_specific.h ../misc.h \\r
86  ../stringtool.h ../windowstool.cpp ../windowstool.h\r