]>
Commit | Line | Data |
---|---|---|
6f628073 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
6f628073 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
2246169a | 6 | |
0706fb23 VS |
7 | !ifndef BCCDIR |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
6f628073 | 10 | |
fd9f42b6 | 11 | !include ../../build/msw/config.bcc |
6f628073 VS |
12 | |
13 | # ------------------------------------------------------------------------- | |
14 | # Do not modify the rest of this file! | |
15 | # ------------------------------------------------------------------------- | |
16 | ||
6f628073 VS |
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 | ||
25a73439 VS |
23 | LIBDIRNAME = \ |
24 | .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
25 | OBJS = \ |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
25a73439 | 27 | WIDGETS_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \ |
250700e4 | 28 | $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
25a73439 | 29 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) \ |
250700e4 | 30 | -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \ |
bdc408c4 | 31 | -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS) |
25a73439 VS |
32 | WIDGETS_OBJECTS = \ |
33 | $(OBJS)\widgets_button.obj \ | |
34 | $(OBJS)\widgets_combobox.obj \ | |
35 | $(OBJS)\widgets_gauge.obj \ | |
36 | $(OBJS)\widgets_listbox.obj \ | |
37 | $(OBJS)\widgets_notebook.obj \ | |
38 | $(OBJS)\widgets_radiobox.obj \ | |
39 | $(OBJS)\widgets_slider.obj \ | |
40 | $(OBJS)\widgets_spinbtn.obj \ | |
41 | $(OBJS)\widgets_static.obj \ | |
42 | $(OBJS)\widgets_textctrl.obj \ | |
43 | $(OBJS)\widgets_widgets.obj | |
6f628073 VS |
44 | |
45 | ### Conditionally set variables: ### | |
46 | ||
47 | !if "$(USE_GUI)" == "0" | |
48 | PORTNAME = base | |
49 | !endif | |
50 | !if "$(USE_GUI)" == "1" | |
51 | PORTNAME = msw | |
52 | !endif | |
25a73439 VS |
53 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
54 | WXDEBUGFLAG = d | |
55 | !endif | |
56 | !if "$(DEBUG_FLAG)" == "1" | |
6f628073 VS |
57 | WXDEBUGFLAG = d |
58 | !endif | |
59 | !if "$(SHARED)" == "1" | |
60 | WXDLLFLAG = dll | |
61 | !endif | |
62 | !if "$(UNICODE)" == "1" | |
63 | WXUNICODEFLAG = u | |
2246169a | 64 | !endif |
6f628073 VS |
65 | !if "$(WXUNIV)" == "1" |
66 | WXUNIVNAME = univ | |
67 | !endif | |
25a73439 VS |
68 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
69 | __DEBUGINFO = -v | |
250700e4 | 70 | !endif |
25a73439 VS |
71 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
72 | __DEBUGINFO = -v- | |
250700e4 | 73 | !endif |
25a73439 VS |
74 | !if "$(DEBUG_INFO)" == "0" |
75 | __DEBUGINFO = -v- | |
76 | !endif | |
77 | !if "$(DEBUG_INFO)" == "1" | |
78 | __DEBUGINFO = -v | |
79 | !endif | |
80 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
6f628073 VS |
81 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
82 | !endif | |
25a73439 VS |
83 | !if "$(DEBUG_FLAG)" == "1" |
84 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
85 | !endif | |
86 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
87 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
88 | !endif | |
89 | !if "$(DEBUG_FLAG)" == "1" | |
6f628073 VS |
90 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ |
91 | !endif | |
92 | !if "$(SHARED)" == "1" | |
93 | __DLLFLAG_p = -DWXUSINGDLL | |
94 | !endif | |
95 | !if "$(SHARED)" == "1" | |
96 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
97 | !endif | |
25a73439 VS |
98 | !if "$(USE_GUI)" == "1" |
99 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
100 | !endif | |
101 | !if "$(USE_GUI)" == "1" | |
102 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
103 | !endif | |
104 | !if "$(USE_GUI)" == "1" | |
105 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
106 | !endif | |
250700e4 RD |
107 | !if "$(BUILD)" == "debug" |
108 | __OPTIMIZEFLAG_2 = -Od | |
109 | !endif | |
110 | !if "$(BUILD)" == "release" | |
111 | __OPTIMIZEFLAG_2 = -O2 | |
112 | !endif | |
113 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
114 | __RUNTIME_LIBS_6 = -tWR | |
115 | !endif | |
116 | !if "$(RUNTIME_LIBS)" == "static" | |
117 | __RUNTIME_LIBS_6 = | |
118 | !endif | |
119 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
120 | __RUNTIME_LIBS_7 = i | |
121 | !endif | |
122 | !if "$(RUNTIME_LIBS)" == "static" | |
123 | __RUNTIME_LIBS_7 = | |
124 | !endif | |
6f628073 VS |
125 | !if "$(UNICODE)" == "1" |
126 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
127 | !endif | |
128 | !if "$(UNICODE)" == "1" | |
129 | __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1 | |
130 | !endif | |
131 | !if "$(MONOLITHIC)" == "0" | |
0706fb23 VS |
132 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib |
133 | !endif | |
134 | !if "$(MONOLITHIC)" == "0" | |
250700e4 RD |
135 | __WXLIB_CORE_p = \ |
136 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
6f628073 VS |
137 | !endif |
138 | !if "$(MONOLITHIC)" == "1" | |
250700e4 RD |
139 | __WXLIB_MONO_p = \ |
140 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
6f628073 VS |
141 | !endif |
142 | !if "$(WXUNIV)" == "1" | |
143 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
144 | !endif | |
145 | !if "$(WXUNIV)" == "1" | |
146 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
147 | !endif | |
148 | ||
fd9f42b6 VS |
149 | MAKEARGS = -DBUILD=$(BUILD) -DCFG=$(CFG) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DWXUNIV=$(WXUNIV) |
150 | ||
6f628073 VS |
151 | |
152 | all: $(OBJS) | |
153 | $(OBJS): | |
154 | -if not exist $(OBJS) mkdir $(OBJS) | |
155 | ||
156 | ### Targets: ### | |
157 | ||
158 | all: $(OBJS)\widgets.exe | |
159 | ||
160 | $(OBJS)\widgets_button.obj: .\button.cpp | |
0706fb23 | 161 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
162 | |
163 | $(OBJS)\widgets_combobox.obj: .\combobox.cpp | |
0706fb23 | 164 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
165 | |
166 | $(OBJS)\widgets_gauge.obj: .\gauge.cpp | |
0706fb23 | 167 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
168 | |
169 | $(OBJS)\widgets_listbox.obj: .\listbox.cpp | |
0706fb23 | 170 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
171 | |
172 | $(OBJS)\widgets_notebook.obj: .\notebook.cpp | |
0706fb23 | 173 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
174 | |
175 | $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp | |
0706fb23 | 176 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
177 | |
178 | $(OBJS)\widgets_slider.obj: .\slider.cpp | |
0706fb23 | 179 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
180 | |
181 | $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp | |
0706fb23 | 182 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
183 | |
184 | $(OBJS)\widgets_static.obj: .\static.cpp | |
0706fb23 | 185 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
186 | |
187 | $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp | |
0706fb23 | 188 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
189 | |
190 | $(OBJS)\widgets_widgets.obj: .\widgets.cpp | |
0706fb23 | 191 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
192 | |
193 | $(OBJS)\widgets_widgets.res: .\widgets.rc | |
25a73439 | 194 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(LIBDIRNAME) -i.\..\..\src\tiff -i.\..\..\src\jpeg -i.\..\..\src\png -i.\..\..\src\zlib -i.\..\..\src\regex -i.\..\..\src\expat\lib -i. $(__DLLFLAG_p_1) $** |
2246169a | 195 | |
6f628073 VS |
196 | clean: |
197 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
198 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
199 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe | |
2246169a | 200 | |
25a73439 VS |
201 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets.res |
202 | ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| | |
203 | c0w32.obj $(WIDGETS_OBJECTS),$@,, $(__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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\widgets_widgets.res | |
6f628073 | 204 | | |