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
24 .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 WIDGETS_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
28 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) \
30 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
31 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
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
45 ### Conditionally set variables: ###
47 !if "$(USE_GUI)" == "0"
50 !if "$(USE_GUI)" == "1"
53 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
56 !if "$(DEBUG_FLAG)" == "1"
59 !if "$(SHARED)" == "1"
62 !if "$(UNICODE)" == "1"
65 !if "$(WXUNIV)" == "1"
68 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
71 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
74 !if "$(DEBUG_INFO)" == "0"
77 !if "$(DEBUG_INFO)" == "1"
80 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
81 __DEBUG_DEFINE_p = -D__WXDEBUG__
83 !if "$(DEBUG_FLAG)" == "1"
84 __DEBUG_DEFINE_p = -D__WXDEBUG__
86 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
87 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
89 !if "$(DEBUG_FLAG)" == "1"
90 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
92 !if "$(SHARED)" == "1"
93 __DLLFLAG_p = -DWXUSINGDLL
95 !if "$(SHARED)" == "1"
96 __DLLFLAG_p_1 = -dWXUSINGDLL
98 !if "$(USE_GUI)" == "1"
99 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
101 !if "$(USE_GUI)" == "1"
102 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
104 !if "$(USE_GUI)" == "1"
105 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
107 !if "$(BUILD)" == "debug"
108 __OPTIMIZEFLAG_2 = -Od
110 !if "$(BUILD)" == "release"
111 __OPTIMIZEFLAG_2 = -O2
113 !if "$(RUNTIME_LIBS)" == "dynamic"
114 __RUNTIME_LIBS_6 = -tWR
116 !if "$(RUNTIME_LIBS)" == "static"
119 !if "$(RUNTIME_LIBS)" == "dynamic"
122 !if "$(RUNTIME_LIBS)" == "static"
125 !if "$(UNICODE)" == "1"
126 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
128 !if "$(UNICODE)" == "1"
129 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
131 !if "$(MONOLITHIC)" == "0"
132 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
134 !if "$(MONOLITHIC)" == "0"
136 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
138 !if "$(MONOLITHIC)" == "1"
140 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
142 !if "$(WXUNIV)" == "1"
143 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
145 !if "$(WXUNIV)" == "1"
146 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
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)
154 -if not exist $(OBJS) mkdir $(OBJS)
158 all: $(OBJS)\widgets.exe
160 $(OBJS)\widgets_button.obj: .\button.cpp
161 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
163 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
164 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
166 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
167 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
169 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
170 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
172 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
173 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
175 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
176 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
178 $(OBJS)\widgets_slider.obj: .\slider.cpp
179 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
181 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
182 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
184 $(OBJS)\widgets_static.obj: .\static.cpp
185 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
187 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
188 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
190 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
191 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
193 $(OBJS)\widgets_widgets.res: .\widgets.rc
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) $**
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
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