1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !include ../../build/msw/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
23 HELPGEN_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \
24 $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -I. $(__DLLFLAG_p) $(CXXFLAGS)
28 $(OBJS)\HelpGen_HelpGen.obj \
29 $(OBJS)\HelpGen_cjparser.obj \
30 $(OBJS)\HelpGen_docripper.obj \
31 $(OBJS)\HelpGen_ifcontext.obj \
32 $(OBJS)\HelpGen_markup.obj \
33 $(OBJS)\HelpGen_scriptbinder.obj \
34 $(OBJS)\HelpGen_sourcepainter.obj \
35 $(OBJS)\HelpGen_srcparser.obj
37 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
39 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
41 ### Conditionally set variables: ###
43 !if "$(SHARED)" == "0"
44 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
46 !if "$(SHARED)" == "1"
47 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(SHARED)" == "1"
64 !if "$(UNICODE)" == "1"
67 !if "$(WXUNIV)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
73 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
76 !if "$(DEBUG_INFO)" == "0"
79 !if "$(DEBUG_INFO)" == "1"
82 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
83 __DEBUG_DEFINE_p = -D__WXDEBUG__
85 !if "$(DEBUG_FLAG)" == "1"
86 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 !if "$(SHARED)" == "1"
89 __DLLFLAG_p = -DWXUSINGDLL
91 !if "$(USE_GUI)" == "1"
92 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
94 !if "$(USE_GUI)" == "1"
95 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
97 !if "$(USE_GUI)" == "1"
98 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
100 !if "$(BUILD)" == "debug"
101 __OPTIMIZEFLAG_2 = -Od
103 !if "$(BUILD)" == "release"
104 __OPTIMIZEFLAG_2 = -O2
106 !if "$(RUNTIME_LIBS)" == "dynamic"
107 __RUNTIME_LIBS_6 = -tWR
109 !if "$(RUNTIME_LIBS)" == "static"
112 !if "$(RUNTIME_LIBS)" == "dynamic"
115 !if "$(RUNTIME_LIBS)" == "static"
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p = -D_UNICODE
122 __UNICOWS_LIB_p = unicows.lib
124 !if "$(MONOLITHIC)" == "0"
125 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
127 !if "$(MONOLITHIC)" == "1"
129 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
131 !if "$(WXUNIV)" == "1"
132 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
138 -if not exist $(OBJS) mkdir $(OBJS)
142 all: $(OBJS)\HelpGen.exe
144 $(OBJS)\HelpGen_HelpGen.obj: .\src\HelpGen.cpp
145 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
147 $(OBJS)\HelpGen_cjparser.obj: .\src\cjparser.cpp
148 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
150 $(OBJS)\HelpGen_docripper.obj: .\src\docripper.cpp
151 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
153 $(OBJS)\HelpGen_ifcontext.obj: .\src\ifcontext.cpp
154 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
156 $(OBJS)\HelpGen_markup.obj: .\src\markup.cpp
157 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
159 $(OBJS)\HelpGen_scriptbinder.obj: .\src\scriptbinder.cpp
160 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
162 $(OBJS)\HelpGen_sourcepainter.obj: .\src\sourcepainter.cpp
163 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
165 $(OBJS)\HelpGen_srcparser.obj: .\src\srcparser.cpp
166 $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $**
168 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
169 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
170 c0x32.obj $(HELPGEN_OBJECTS),$@,, $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
174 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
175 -if exist $(OBJS)\*.res del $(OBJS)\*.res
176 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
177 -if exist $(OBJS)\HelpGen.tds del $(OBJS)\HelpGen.tds
178 -if exist $(OBJS)\HelpGen.ilc del $(OBJS)\HelpGen.ilc
179 -if exist $(OBJS)\HelpGen.ild del $(OBJS)\HelpGen.ild
180 -if exist $(OBJS)\HelpGen.ilf del $(OBJS)\HelpGen.ilf
181 -if exist $(OBJS)\HelpGen.ils del $(OBJS)\HelpGen.ils