]>
Commit | Line | Data |
---|---|---|
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 | # ========================================================================= | |
6 | ||
7 | !ifndef BCCDIR | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
11 | !include ../../build/msw/config.bcc | |
12 | ||
13 | # ------------------------------------------------------------------------- | |
14 | # Do not modify the rest of this file! | |
15 | # ------------------------------------------------------------------------- | |
16 | ||
17 | !if "$(BCCDIR)" == "\.." | |
18 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
19 | !endif | |
20 | ||
21 | ### Variables: ### | |
22 | ||
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) | |
27 | HELPGEN_OBJECTS = \ | |
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 | |
36 | OBJS = \ | |
37 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
38 | SETUPHDIR = \ | |
39 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
40 | ||
41 | ### Conditionally set variables: ### | |
42 | ||
43 | !if "$(SHARED)" == "0" | |
44 | LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG) | |
45 | !endif | |
46 | !if "$(SHARED)" == "1" | |
47 | LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG) | |
48 | !endif | |
49 | !if "$(USE_GUI)" == "0" | |
50 | PORTNAME = base | |
51 | !endif | |
52 | !if "$(USE_GUI)" == "1" | |
53 | PORTNAME = msw | |
54 | !endif | |
55 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
56 | WXDEBUGFLAG = d | |
57 | !endif | |
58 | !if "$(DEBUG_FLAG)" == "1" | |
59 | WXDEBUGFLAG = d | |
60 | !endif | |
61 | !if "$(SHARED)" == "1" | |
62 | WXDLLFLAG = dll | |
63 | !endif | |
64 | !if "$(UNICODE)" == "1" | |
65 | WXUNICODEFLAG = u | |
66 | !endif | |
67 | !if "$(WXUNIV)" == "1" | |
68 | WXUNIVNAME = univ | |
69 | !endif | |
70 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
71 | __DEBUGINFO = -v | |
72 | !endif | |
73 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
74 | __DEBUGINFO = -v- | |
75 | !endif | |
76 | !if "$(DEBUG_INFO)" == "0" | |
77 | __DEBUGINFO = -v- | |
78 | !endif | |
79 | !if "$(DEBUG_INFO)" == "1" | |
80 | __DEBUGINFO = -v | |
81 | !endif | |
82 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
83 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
84 | !endif | |
85 | !if "$(DEBUG_FLAG)" == "1" | |
86 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
87 | !endif | |
88 | !if "$(SHARED)" == "1" | |
89 | __DLLFLAG_p = -DWXUSINGDLL | |
90 | !endif | |
91 | !if "$(USE_GUI)" == "1" | |
92 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
93 | !endif | |
94 | !if "$(USE_GUI)" == "1" | |
95 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
96 | !endif | |
97 | !if "$(USE_GUI)" == "1" | |
98 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
99 | !endif | |
100 | !if "$(BUILD)" == "debug" | |
101 | __OPTIMIZEFLAG_2 = -Od | |
102 | !endif | |
103 | !if "$(BUILD)" == "release" | |
104 | __OPTIMIZEFLAG_2 = -O2 | |
105 | !endif | |
106 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
107 | __RUNTIME_LIBS_6 = -tWR | |
108 | !endif | |
109 | !if "$(RUNTIME_LIBS)" == "static" | |
110 | __RUNTIME_LIBS_6 = | |
111 | !endif | |
112 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
113 | __RUNTIME_LIBS_7 = i | |
114 | !endif | |
115 | !if "$(RUNTIME_LIBS)" == "static" | |
116 | __RUNTIME_LIBS_7 = | |
117 | !endif | |
118 | !if "$(UNICODE)" == "1" | |
119 | __UNICODE_DEFINE_p = -D_UNICODE | |
120 | !endif | |
121 | !if "$(MSLU)" == "1" | |
122 | __UNICOWS_LIB_p = unicows.lib | |
123 | !endif | |
124 | !if "$(MONOLITHIC)" == "0" | |
125 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
126 | !endif | |
127 | !if "$(MONOLITHIC)" == "1" | |
128 | __WXLIB_MONO_p = \ | |
129 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
130 | !endif | |
131 | !if "$(WXUNIV)" == "1" | |
132 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
133 | !endif | |
134 | ||
135 | ||
136 | all: $(OBJS) | |
137 | $(OBJS): | |
138 | -if not exist $(OBJS) mkdir $(OBJS) | |
139 | ||
140 | ### Targets: ### | |
141 | ||
142 | all: $(OBJS)\HelpGen.exe | |
143 | ||
144 | $(OBJS)\HelpGen_HelpGen.obj: .\src\HelpGen.cpp | |
145 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
146 | ||
147 | $(OBJS)\HelpGen_cjparser.obj: .\src\cjparser.cpp | |
148 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
149 | ||
150 | $(OBJS)\HelpGen_docripper.obj: .\src\docripper.cpp | |
151 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
152 | ||
153 | $(OBJS)\HelpGen_ifcontext.obj: .\src\ifcontext.cpp | |
154 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
155 | ||
156 | $(OBJS)\HelpGen_markup.obj: .\src\markup.cpp | |
157 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
158 | ||
159 | $(OBJS)\HelpGen_scriptbinder.obj: .\src\scriptbinder.cpp | |
160 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
161 | ||
162 | $(OBJS)\HelpGen_sourcepainter.obj: .\src\sourcepainter.cpp | |
163 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
164 | ||
165 | $(OBJS)\HelpGen_srcparser.obj: .\src\srcparser.cpp | |
166 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** | |
167 | ||
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,, | |
171 | | | |
172 | ||
173 | clean: | |
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 |