]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.gcc
Fixes to allow compilation with no wchar_t (djgpp probably has a real wchar_t
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
264af224
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
4818141b 15WX_RELEASE_NODOT = 26
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
27DBBROWSE_OBJECTS = \
28 $(OBJS)\dbbrowse_dbbrowse.o \
29 $(OBJS)\dbbrowse_doc.o \
30 $(OBJS)\dbbrowse_pgmctrl.o \
31 $(OBJS)\dbbrowse_tabpgwin.o \
32 $(OBJS)\dbbrowse_browsedb.o \
33 $(OBJS)\dbbrowse_dbtree.o \
34 $(OBJS)\dbbrowse_dbgrid.o \
35 $(OBJS)\dbbrowse_dlguser.o \
36 $(OBJS)\dbbrowse_dbbrowse_rc.o
264af224
VS
37
38### Conditionally set variables: ###
39
40ifeq ($(GCC_VERSION),2.95)
41GCCFLAGS = -fvtable-thunks
42endif
43ifeq ($(USE_GUI),0)
44PORTNAME = base
45endif
46ifeq ($(USE_GUI),1)
47PORTNAME = msw
48endif
49ifeq ($(BUILD),debug)
50ifeq ($(DEBUG_FLAG),default)
51WXDEBUGFLAG = d
52endif
53endif
54ifeq ($(DEBUG_FLAG),1)
55WXDEBUGFLAG = d
56endif
264af224
VS
57ifeq ($(UNICODE),1)
58WXUNICODEFLAG = u
59endif
60ifeq ($(WXUNIV),1)
61WXUNIVNAME = univ
62endif
b17c1746
DE
63ifeq ($(SHARED),1)
64WXDLLFLAG = dll
264af224 65endif
d3d0b8db
JS
66ifeq ($(SHARED),0)
67LIBTYPE_SUFFIX = lib
68endif
69ifeq ($(SHARED),1)
70LIBTYPE_SUFFIX = dll
71endif
dd65d8c8
RN
72ifeq ($(MONOLITHIC),0)
73EXTRALIBS_FOR_BASE =
74endif
75ifeq ($(MONOLITHIC),1)
76EXTRALIBS_FOR_BASE =
77endif
78ifeq ($(USE_ODBC),1)
79__dbbrowse___depname = $(OBJS)\dbbrowse.exe
80endif
b17c1746
DE
81ifeq ($(BUILD),debug)
82__OPTIMIZEFLAG_2 = -O0
264af224
VS
83endif
84ifeq ($(BUILD),release)
b17c1746 85__OPTIMIZEFLAG_2 = -O2
264af224 86endif
8c9f8f91
JS
87ifeq ($(USE_RTTI),0)
88__RTTIFLAG_5 = -fno-rtti
264af224 89endif
8c9f8f91
JS
90ifeq ($(USE_RTTI),1)
91__RTTIFLAG_5 =
264af224 92endif
b17c1746 93ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 94__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
95endif
96ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 97__EXCEPTIONSFLAG_6 =
b17c1746
DE
98endif
99ifeq ($(WXUNIV),1)
100__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
101endif
102ifeq ($(WXUNIV),1)
103__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224
VS
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p = -D__WXDEBUG__
112endif
113ifeq ($(BUILD),debug)
114ifeq ($(DEBUG_FLAG),default)
115__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
116endif
117endif
118ifeq ($(DEBUG_FLAG),1)
119__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
120endif
8c9f8f91
JS
121ifeq ($(USE_EXCEPTIONS),0)
122__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
123endif
124ifeq ($(USE_EXCEPTIONS),0)
125__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
126endif
127ifeq ($(USE_RTTI),0)
128__RTTI_DEFINE_p = -DwxNO_RTTI
129endif
130ifeq ($(USE_RTTI),0)
131__RTTI_DEFINE_p_1 = --define wxNO_RTTI
132endif
133ifeq ($(USE_THREADS),0)
134__THREAD_DEFINE_p = -DwxNO_THREADS
135endif
136ifeq ($(USE_THREADS),0)
137__THREAD_DEFINE_p_1 = --define wxNO_THREADS
138endif
b17c1746
DE
139ifeq ($(UNICODE),1)
140__UNICODE_DEFINE_p = -D_UNICODE
141endif
142ifeq ($(UNICODE),1)
143__UNICODE_DEFINE_p_1 = --define _UNICODE
144endif
264af224
VS
145ifeq ($(SHARED),1)
146__DLLFLAG_p = -DWXUSINGDLL
147endif
148ifeq ($(SHARED),1)
149__DLLFLAG_p_1 = --define WXUSINGDLL
150endif
b17c1746
DE
151ifeq ($(MONOLITHIC),0)
152__WXLIB_DBGRID_p = \
c33fae85 153 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
a4ad36cd 154endif
b17c1746
DE
155ifeq ($(MONOLITHIC),0)
156__WXLIB_ADV_p = \
c33fae85 157 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 158endif
b17c1746 159ifeq ($(MONOLITHIC),0)
b92ca05a 160ifeq ($(USE_ODBC),1)
c33fae85
RN
161__WXLIB_ODBC_p = \
162 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
a4ad36cd 163endif
b92ca05a 164endif
b17c1746
DE
165ifeq ($(MONOLITHIC),0)
166__WXLIB_HTML_p = \
c33fae85 167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 168endif
b17c1746
DE
169ifeq ($(MONOLITHIC),0)
170__WXLIB_CORE_p = \
c33fae85 171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
264af224 172endif
b17c1746 173ifeq ($(MONOLITHIC),0)
c33fae85
RN
174__WXLIB_BASE_p = \
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
176endif
177ifeq ($(MONOLITHIC),1)
178__WXLIB_MONO_p = \
c33fae85 179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
264af224
VS
180endif
181ifeq ($(USE_GUI),1)
9c2d002b 182__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
264af224 183endif
b17c1746 184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224 186endif
b17c1746 187ifeq ($(USE_GUI),1)
9c2d002b 188__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 189endif
4e209a20
VS
190ifeq ($(MSLU),1)
191__UNICOWS_LIB_p = -lunicows
192endif
b17c1746
DE
193ifeq ($(BUILD),debug)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO = -g
f2901744 196endif
264af224 197endif
b17c1746
DE
198ifeq ($(BUILD),release)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO =
264af224 201endif
264af224 202endif
b17c1746
DE
203ifeq ($(DEBUG_INFO),0)
204__DEBUGINFO =
264af224 205endif
b17c1746
DE
206ifeq ($(DEBUG_INFO),1)
207__DEBUGINFO = -g
264af224 208endif
8c9f8f91
JS
209ifeq ($(USE_THREADS),0)
210__THREADSFLAG =
211endif
212ifeq ($(USE_THREADS),1)
213__THREADSFLAG = -mthreads
214endif
264af224
VS
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
dd65d8c8 223all: $(__dbbrowse___depname) data_help_std data_help_png
264af224 224
b17c1746
DE
225clean:
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
228
dd65d8c8 229ifeq ($(USE_ODBC),1)
b17c1746 230$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
8c9f8f91 231 $(CXX) -o $@ $(DBBROWSE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
dd65d8c8 232endif
264af224 233
eac98de7
VS
234data_help_std:
235 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
236 for %%f in (compiler.htm dbbrowse.hhc dbbrowse.hhk dbbrowse.hhp dbbrowse.htm getcol.htm getcolsh.htm icons.htm picgrams.htm problems.htm remstar.htm sample.htm startprm.htm todo.htm wxdb.htm wxtable.htm) do if not exist $(OBJS)\help.std\%%f copy .\help.std\%%f $(OBJS)\help.std
237
238data_help_png:
239 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
240 for %%f in (col.png d_closed.png d_open.png dsn.png dsnclose.png dsnopen.png f_closed.png f_open.png gnu.png gtk.png imbau.png kde.png key.png keyf.png linux.png logo.png motif.png msvc.png odbc.png pgmctrl.png redh.png remstar.png server.png suse.png tab.png view.png winnt.png wins.png) do if not exist $(OBJS)\help.png\%%f copy .\help.png\%%f $(OBJS)\help.png
241
1c3a6972 242$(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
264af224
VS
243 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
244
b17c1746 245$(OBJS)\dbbrowse_doc.o: ./doc.cpp
264af224
VS
246 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
247
b17c1746 248$(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
264af224
VS
249 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
250
b17c1746 251$(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
264af224
VS
252 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
253
b17c1746 254$(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
264af224
VS
255 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
256
b17c1746 257$(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
264af224
VS
258 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
259
b17c1746 260$(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
264af224
VS
261 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
262
b17c1746
DE
263$(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
264 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
264af224 265
b17c1746 266$(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
8c9f8f91 267 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
264af224 268
eac98de7 269.PHONY: all clean data_help_std data_help_png
d3d0b8db 270
8c9f8f91 271