]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/makefile.bcc
f4a246c49e414857b87255d660d99e052a2413cb
[wxWidgets.git] / demos / dbbrowse / 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 DBBROWSE_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \
24 $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -I. $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS)
27 DBBROWSE_OBJECTS = \
28 $(OBJS)\dbbrowse_dbbrowse.obj \
29 $(OBJS)\dbbrowse_doc.obj \
30 $(OBJS)\dbbrowse_pgmctrl.obj \
31 $(OBJS)\dbbrowse_tabpgwin.obj \
32 $(OBJS)\dbbrowse_browsedb.obj \
33 $(OBJS)\dbbrowse_dbtree.obj \
34 $(OBJS)\dbbrowse_dbgrid.obj \
35 $(OBJS)\dbbrowse_dlguser.obj
36 OBJS = \
37 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
38 SETUPHDIR = \
39 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
40
41 ### Conditionally set variables: ###
42
43 !if "$(SHARED)" == "0"
44 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
45 !endif
46 !if "$(SHARED)" == "1"
47 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
48 !endif
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 "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
90 !endif
91 !if "$(DEBUG_FLAG)" == "1"
92 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
93 !endif
94 !if "$(SHARED)" == "1"
95 __DLLFLAG_p = -DWXUSINGDLL
96 !endif
97 !if "$(SHARED)" == "1"
98 __DLLFLAG_p_1 = -dWXUSINGDLL
99 !endif
100 !if "$(USE_GUI)" == "1"
101 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
102 !endif
103 !if "$(USE_GUI)" == "1"
104 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
105 !endif
106 !if "$(USE_GUI)" == "1"
107 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
108 !endif
109 !if "$(BUILD)" == "debug"
110 __OPTIMIZEFLAG_2 = -Od
111 !endif
112 !if "$(BUILD)" == "release"
113 __OPTIMIZEFLAG_2 = -O2
114 !endif
115 !if "$(RUNTIME_LIBS)" == "dynamic"
116 __RUNTIME_LIBS_6 = -tWR
117 !endif
118 !if "$(RUNTIME_LIBS)" == "static"
119 __RUNTIME_LIBS_6 =
120 !endif
121 !if "$(RUNTIME_LIBS)" == "dynamic"
122 __RUNTIME_LIBS_7 = i
123 !endif
124 !if "$(RUNTIME_LIBS)" == "static"
125 __RUNTIME_LIBS_7 =
126 !endif
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p = -D_UNICODE
129 !endif
130 !if "$(UNICODE)" == "1"
131 __UNICODE_DEFINE_p_1 = -d_UNICODE
132 !endif
133 !if "$(MSLU)" == "1"
134 __UNICOWS_LIB_p = unicows.lib
135 !endif
136 !if "$(MONOLITHIC)" == "0"
137 __WXLIB_ADV_p = \
138 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
139 !endif
140 !if "$(MONOLITHIC)" == "0"
141 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
142 !endif
143 !if "$(MONOLITHIC)" == "0"
144 __WXLIB_CORE_p = \
145 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
146 !endif
147 !if "$(MONOLITHIC)" == "0"
148 __WXLIB_DBGRID_p = \
149 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid.lib
150 !endif
151 !if "$(MONOLITHIC)" == "0"
152 __WXLIB_HTML_p = \
153 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
154 !endif
155 !if "$(MONOLITHIC)" == "1"
156 __WXLIB_MONO_p = \
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
158 !endif
159 !if "$(MONOLITHIC)" == "0"
160 __WXLIB_ODBC_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc.lib
161 !endif
162 !if "$(WXUNIV)" == "1"
163 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
164 !endif
165 !if "$(WXUNIV)" == "1"
166 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
167 !endif
168
169
170 all: $(OBJS)
171 $(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174 ### Targets: ###
175
176 all: $(OBJS)\dbbrowse.exe
177
178 $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
179 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
180
181 $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
182 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
183
184 $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
185 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
186
187 $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
188 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
189
190 $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
191 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
192
193 $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
194 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
195
196 $(OBJS)\dbbrowse_doc.obj: .\doc.cpp
197 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
198
199 $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
200 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
201
202 $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
203 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
204
205 clean:
206 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
207 -if exist $(OBJS)\*.res del $(OBJS)\*.res
208 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
209 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
210 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
211 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
212 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
213 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
214
215 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
216 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
217 c0w32.obj $(DBBROWSE_OBJECTS),$@,, $(__WXLIB_DBGRID_p) $(__WXLIB_ADV_p) $(__WXLIB_ODBC_p) $(__WXLIB_HTML_p) $(__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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dbbrowse_dbbrowse.res
218 |