]>
Commit | Line | Data |
---|---|---|
2ace0078 VS |
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 | ||
8ba95a18 | 11 | !include ../../../build/msw/config.bcc |
2ace0078 VS |
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 | ||
1c3a6972 VS |
23 | HELPGEN_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \ |
24 | $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
8ba95a18 MB |
25 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ |
26 | -I$(SETUPHDIR) -I. $(__DLLFLAG_p) $(CXXFLAGS) | |
2ace0078 VS |
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 \ | |
75a0a7b7 | 35 | $(OBJS)\HelpGen_srcparser.obj |
2ace0078 VS |
36 | OBJS = \ |
37 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
38 | SETUPHDIR = \ |
39 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
2ace0078 VS |
40 | |
41 | ### Conditionally set variables: ### | |
42 | ||
75a0a7b7 | 43 | !if "$(SHARED)" == "0" |
8ba95a18 | 44 | LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG) |
75a0a7b7 VS |
45 | !endif |
46 | !if "$(SHARED)" == "1" | |
8ba95a18 | 47 | LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG) |
75a0a7b7 | 48 | !endif |
2ace0078 VS |
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" | |
8ba95a18 | 119 | __UNICODE_DEFINE_p = -D_UNICODE |
2ace0078 VS |
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 | ||
204e4cd6 | 144 | $(OBJS)\HelpGen_HelpGen.obj: .\HelpGen.cpp |
2ace0078 VS |
145 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
146 | ||
204e4cd6 | 147 | $(OBJS)\HelpGen_cjparser.obj: .\cjparser.cpp |
2ace0078 VS |
148 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
149 | ||
204e4cd6 | 150 | $(OBJS)\HelpGen_docripper.obj: .\docripper.cpp |
2ace0078 VS |
151 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
152 | ||
204e4cd6 | 153 | $(OBJS)\HelpGen_ifcontext.obj: .\ifcontext.cpp |
2ace0078 VS |
154 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
155 | ||
204e4cd6 | 156 | $(OBJS)\HelpGen_markup.obj: .\markup.cpp |
2ace0078 VS |
157 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
158 | ||
204e4cd6 | 159 | $(OBJS)\HelpGen_scriptbinder.obj: .\scriptbinder.cpp |
2ace0078 VS |
160 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
161 | ||
204e4cd6 | 162 | $(OBJS)\HelpGen_sourcepainter.obj: .\sourcepainter.cpp |
2ace0078 VS |
163 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
164 | ||
204e4cd6 | 165 | $(OBJS)\HelpGen_srcparser.obj: .\srcparser.cpp |
2ace0078 VS |
166 | $(CXX) -q -c -P -o$@ $(HELPGEN_CXXFLAGS) $** |
167 | ||
2ace0078 | 168 | $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS) |
1c3a6972 | 169 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&| |
ec08d395 | 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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, |
2ace0078 VS |
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 | |
8ba95a18 MB |
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 |