]>
Commit | Line | Data |
---|---|---|
03206f17 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 | ||
fd9f42b6 | 11 | !include ../../../build/msw/config.bcc |
03206f17 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 | FL_DEMO1_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
24 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
25 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
26 | -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \ | |
27 | -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) | |
03206f17 VS |
28 | FL_DEMO1_OBJECTS = \ |
29 | $(OBJS)\fl_demo1_fl_demo1.obj | |
1c3a6972 VS |
30 | FL_DEMO2_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
31 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
32 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
33 | -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \ | |
34 | -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) | |
03206f17 VS |
35 | FL_DEMO2_OBJECTS = \ |
36 | $(OBJS)\fl_demo2_fl_demo2.obj | |
1c3a6972 VS |
37 | FL_SAMPLE1_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
38 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
39 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
40 | -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \ | |
41 | -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) | |
03206f17 VS |
42 | FL_SAMPLE1_OBJECTS = \ |
43 | $(OBJS)\fl_sample1_fl_sample1.obj | |
1c3a6972 VS |
44 | FL_SAMPLE2_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
45 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
46 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
47 | -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \ | |
48 | -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) | |
03206f17 VS |
49 | FL_SAMPLE2_OBJECTS = \ |
50 | $(OBJS)\fl_sample2_fl_sample2.obj | |
1c3a6972 VS |
51 | FL_SAMPLE3_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
52 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
53 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \ | |
54 | -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \ | |
55 | -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) | |
03206f17 VS |
56 | FL_SAMPLE3_OBJECTS = \ |
57 | $(OBJS)\fl_sample3_fl_sample3.obj | |
03206f17 VS |
58 | OBJS = \ |
59 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
60 | SETUPHDIR = \ |
61 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
03206f17 VS |
62 | |
63 | ### Conditionally set variables: ### | |
64 | ||
75a0a7b7 VS |
65 | !if "$(SHARED)" == "0" |
66 | LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG) | |
67 | !endif | |
68 | !if "$(SHARED)" == "1" | |
69 | LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG) | |
70 | !endif | |
03206f17 VS |
71 | !if "$(USE_GUI)" == "0" |
72 | PORTNAME = base | |
73 | !endif | |
74 | !if "$(USE_GUI)" == "1" | |
75 | PORTNAME = msw | |
76 | !endif | |
77 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
78 | WXDEBUGFLAG = d | |
79 | !endif | |
80 | !if "$(DEBUG_FLAG)" == "1" | |
81 | WXDEBUGFLAG = d | |
82 | !endif | |
83 | !if "$(SHARED)" == "1" | |
84 | WXDLLFLAG = dll | |
85 | !endif | |
86 | !if "$(UNICODE)" == "1" | |
87 | WXUNICODEFLAG = u | |
88 | !endif | |
89 | !if "$(WXUNIV)" == "1" | |
90 | WXUNIVNAME = univ | |
91 | !endif | |
92 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
93 | __DEBUGINFO = -v | |
94 | !endif | |
95 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
96 | __DEBUGINFO = -v- | |
97 | !endif | |
98 | !if "$(DEBUG_INFO)" == "0" | |
99 | __DEBUGINFO = -v- | |
100 | !endif | |
101 | !if "$(DEBUG_INFO)" == "1" | |
102 | __DEBUGINFO = -v | |
103 | !endif | |
104 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
105 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
106 | !endif | |
107 | !if "$(DEBUG_FLAG)" == "1" | |
108 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
109 | !endif | |
110 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
111 | __DEBUG_DEFINE_p_14 = -d__WXDEBUG__ | |
112 | !endif | |
113 | !if "$(DEBUG_FLAG)" == "1" | |
114 | __DEBUG_DEFINE_p_14 = -d__WXDEBUG__ | |
115 | !endif | |
116 | !if "$(SHARED)" == "1" | |
117 | __DLLFLAG_p = -DWXUSINGDLL | |
118 | !endif | |
119 | !if "$(SHARED)" == "1" | |
75a0a7b7 | 120 | __DLLFLAG_p_11 = -dWXUSINGDLL |
03206f17 VS |
121 | !endif |
122 | !if "$(USE_GUI)" == "1" | |
123 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
124 | !endif | |
125 | !if "$(USE_GUI)" == "1" | |
126 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
127 | !endif | |
128 | !if "$(USE_GUI)" == "1" | |
129 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
130 | !endif | |
131 | !if "$(BUILD)" == "debug" | |
132 | __OPTIMIZEFLAG = -Od | |
133 | !endif | |
134 | !if "$(BUILD)" == "release" | |
135 | __OPTIMIZEFLAG = -O2 | |
136 | !endif | |
137 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
138 | __RUNTIME_LIBS = -tWR | |
139 | !endif | |
140 | !if "$(RUNTIME_LIBS)" == "static" | |
141 | __RUNTIME_LIBS = | |
142 | !endif | |
143 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
144 | __RUNTIME_LIBS_3 = i | |
145 | !endif | |
146 | !if "$(RUNTIME_LIBS)" == "static" | |
147 | __RUNTIME_LIBS_3 = | |
148 | !endif | |
149 | !if "$(UNICODE)" == "1" | |
150 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
151 | !endif | |
152 | !if "$(UNICODE)" == "1" | |
153 | __UNICODE_DEFINE_p_15 = -dwxUSE_UNICODE=1 | |
154 | !endif | |
2265a2d5 VS |
155 | !if "$(MSLU)" == "1" |
156 | __UNICOWS_LIB_p = unicows.lib | |
157 | !endif | |
03206f17 VS |
158 | !if "$(MONOLITHIC)" == "0" |
159 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
160 | !endif | |
161 | !if "$(MONOLITHIC)" == "0" | |
162 | __WXLIB_CORE_p = \ | |
163 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
164 | !endif | |
165 | !if "$(MONOLITHIC)" == "1" | |
166 | __WXLIB_MONO_p = \ | |
167 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
168 | !endif | |
169 | !if "$(WXUNIV)" == "1" | |
170 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
171 | !endif | |
172 | !if "$(WXUNIV)" == "1" | |
173 | __WXUNIV_DEFINE_p_11 = -d__WXUNIVERSAL__ | |
174 | !endif | |
175 | ||
176 | ||
177 | all: $(OBJS) | |
178 | $(OBJS): | |
179 | -if not exist $(OBJS) mkdir $(OBJS) | |
180 | ||
181 | ### Targets: ### | |
182 | ||
9d5f4fbb | 183 | all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files |
03206f17 VS |
184 | |
185 | $(OBJS)\fl_demo1_fl_demo1.obj: .\fl_demo1.cpp | |
186 | $(CXX) -q -c -P -o$@ $(FL_DEMO1_CXXFLAGS) $** | |
187 | ||
188 | $(OBJS)\fl_demo1_fl_demo1.res: .\fl_demo1.rc | |
75a0a7b7 | 189 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_11) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $** |
03206f17 VS |
190 | |
191 | $(OBJS)\fl_demo2_fl_demo2.obj: .\fl_demo2.cpp | |
192 | $(CXX) -q -c -P -o$@ $(FL_DEMO2_CXXFLAGS) $** | |
193 | ||
194 | $(OBJS)\fl_demo2_fl_demo2.res: .\fl_demo2.rc | |
75a0a7b7 | 195 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_11) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $** |
03206f17 VS |
196 | |
197 | $(OBJS)\fl_sample1_fl_sample1.obj: .\fl_sample1.cpp | |
198 | $(CXX) -q -c -P -o$@ $(FL_SAMPLE1_CXXFLAGS) $** | |
199 | ||
200 | $(OBJS)\fl_sample1_fl_sample1.res: .\fl_sample1.rc | |
75a0a7b7 | 201 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_11) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $** |
03206f17 VS |
202 | |
203 | $(OBJS)\fl_sample2_fl_sample2.obj: .\fl_sample2.cpp | |
204 | $(CXX) -q -c -P -o$@ $(FL_SAMPLE2_CXXFLAGS) $** | |
205 | ||
206 | $(OBJS)\fl_sample2_fl_sample2.res: .\fl_sample2.rc | |
75a0a7b7 | 207 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_11) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $** |
03206f17 VS |
208 | |
209 | $(OBJS)\fl_sample3_fl_sample3.obj: .\fl_sample3.cpp | |
210 | $(CXX) -q -c -P -o$@ $(FL_SAMPLE3_CXXFLAGS) $** | |
211 | ||
212 | $(OBJS)\fl_sample3_fl_sample3.res: .\fl_sample3.rc | |
75a0a7b7 | 213 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_11) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $** |
03206f17 VS |
214 | |
215 | clean: | |
216 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
217 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
218 | -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe | |
219 | -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe | |
220 | -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe | |
221 | -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe | |
222 | -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe | |
223 | ||
9d5f4fbb VS |
224 | data_files: |
225 | if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps | |
226 | for %f in (bookmarks.bmp class_icon.bmp class_icon1.bmp copy.bmp cut.bmp file_icon.bmp folder_icon.bmp help_icon.bmp new.bmp nextmark.bmp open.bmp paste.bmp prevmark.bmp res_icon.bmp save.bmp saveall.bmp search.bmp start95_dp.bmp start95_pr.bmp tile.bmp) do if not exist $(OBJS)\bitmaps\%f copy .\bitmaps\%f $(OBJS)\bitmaps | |
227 | ||
03206f17 | 228 | $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1.res |
1c3a6972 | 229 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
9d5f4fbb | 230 | c0w32.obj $(FL_DEMO1_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.lib $(__WXLIB_CORE_p) $(__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_3).lib,, $(OBJS)\fl_demo1_fl_demo1.res |
03206f17 VS |
231 | | |
232 | ||
233 | $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2.res | |
1c3a6972 | 234 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
9d5f4fbb | 235 | c0w32.obj $(FL_DEMO2_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.lib $(__WXLIB_CORE_p) $(__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_3).lib,, $(OBJS)\fl_demo2_fl_demo2.res |
03206f17 VS |
236 | | |
237 | ||
238 | $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1.res | |
1c3a6972 | 239 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
9d5f4fbb | 240 | c0w32.obj $(FL_SAMPLE1_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.lib $(__WXLIB_CORE_p) $(__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_3).lib,, $(OBJS)\fl_sample1_fl_sample1.res |
03206f17 VS |
241 | | |
242 | ||
243 | $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2.res | |
1c3a6972 | 244 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
9d5f4fbb | 245 | c0w32.obj $(FL_SAMPLE2_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.lib $(__WXLIB_CORE_p) $(__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_3).lib,, $(OBJS)\fl_sample2_fl_sample2.res |
03206f17 VS |
246 | | |
247 | ||
248 | $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3.res | |
1c3a6972 | 249 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
9d5f4fbb | 250 | c0w32.obj $(FL_SAMPLE3_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.lib $(__WXLIB_CORE_p) $(__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_3).lib,, $(OBJS)\fl_sample3_fl_sample3.res |
03206f17 | 251 | | |