1 ############################################################## -*- Makefile -*-
\r
5 ###############################################################################
\r
8 !if "$(TARGETOS)" == "WINNT"
\r
9 OS_SPECIFIC_DEFINES = -DUNICODE -D_UNICODE
\r
13 !if "$(TARGETOS)" == "WIN95"
\r
14 OS_SPECIFIC_DEFINES = -D_MBCS
\r
18 !if "$(TARGETOS)" == "BOTH"
\r
19 !error Must specify TARGETOS=WIN95 or TARGETOS=WINNT
\r
23 DEFINES = -DSTRICT -D_WIN32_IE=0x0400 $(OS_SPECIFIC_DEFINES) \
\r
25 BOOST_DIR = ../../boost_$(BOOST_VER)_0
\r
28 # setup.exe ###############################################################
\r
30 TARGET_1 = $(OUT_DIR)\setup.exe
\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
43 ..\windowstool.cpp \
\r
45 RES_1 = $(OUT_DIR)\setup.res
\r
47 LIBS_1 = $(guixlibsmt) shell32.lib ole32.lib uuid.lib
\r
50 # tools ###############################################################
\r
52 MAKEDEPEND = perl ../tools/makedepend -o.obj
\r
55 # rules ###############################################################
\r
57 all: $(OUT_DIR) $(TARGET_1)
\r
60 if not exist "$(OUT_DIR)\\" $(MKDIR) $(OUT_DIR)
\r
65 -$(RM) $(TARGET_1) strres.h
\r
66 -$(RM) $(OUT_DIR)\*.obj $(OUT_DIR)\*.res $(OUT_DIR)\*.pdb *.pdb
\r
68 -$(RMDIR) $(OUT_DIR)
\r
71 $(MAKEDEPEND) -fsetup-common.mak \
\r
72 -- $(DEPENDFLAGS) -- $(SRCS_1)
\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
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