]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.bcc
0c147e81b8932b94c248b7733f894bcaae40db29
[wxWidgets.git] / samples / widgets / makefile.bcc
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 LIBDIRNAME = \
24 .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25 OBJS = \
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)
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
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
53 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
54 WXDEBUGFLAG = d
55 !endif
56 !if "$(DEBUG_FLAG)" == "1"
57 WXDEBUGFLAG = d
58 !endif
59 !if "$(SHARED)" == "1"
60 WXDLLFLAG = dll
61 !endif
62 !if "$(UNICODE)" == "1"
63 WXUNICODEFLAG = u
64 !endif
65 !if "$(WXUNIV)" == "1"
66 WXUNIVNAME = univ
67 !endif
68 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
69 __DEBUGINFO = -v
70 !endif
71 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
72 __DEBUGINFO = -v-
73 !endif
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"
81 __DEBUG_DEFINE_p = -D__WXDEBUG__
82 !endif
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"
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
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
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
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"
132 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
133 !endif
134 !if "$(MONOLITHIC)" == "0"
135 __WXLIB_CORE_p = \
136 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
137 !endif
138 !if "$(MONOLITHIC)" == "1"
139 __WXLIB_MONO_p = \
140 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
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
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
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
161 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
162
163 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
164 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
165
166 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
167 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
168
169 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
170 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
171
172 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
173 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
174
175 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
176 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
177
178 $(OBJS)\widgets_slider.obj: .\slider.cpp
179 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
180
181 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
182 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
183
184 $(OBJS)\widgets_static.obj: .\static.cpp
185 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
186
187 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
188 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
189
190 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
191 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
192
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) $**
195
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
200
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
204 |