]> git.saurik.com Git - wxWidgets.git/blame_incremental - demos/dbbrowse/makefile.gcc
A clarification
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.3 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\samples $(__EXCEPTIONSFLAG_4) \
23 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
24DBBROWSE_OBJECTS = \
25 $(OBJS)\dbbrowse_dbbrowse.o \
26 $(OBJS)\dbbrowse_doc.o \
27 $(OBJS)\dbbrowse_pgmctrl.o \
28 $(OBJS)\dbbrowse_tabpgwin.o \
29 $(OBJS)\dbbrowse_browsedb.o \
30 $(OBJS)\dbbrowse_dbtree.o \
31 $(OBJS)\dbbrowse_dbgrid.o \
32 $(OBJS)\dbbrowse_dlguser.o \
33 $(OBJS)\dbbrowse_dbbrowse_rc.o
34
35### Conditionally set variables: ###
36
37ifeq ($(GCC_VERSION),2.95)
38GCCFLAGS = -fvtable-thunks
39endif
40ifeq ($(USE_GUI),0)
41PORTNAME = base
42endif
43ifeq ($(USE_GUI),1)
44PORTNAME = msw
45endif
46ifeq ($(BUILD),debug)
47ifeq ($(DEBUG_FLAG),default)
48WXDEBUGFLAG = d
49endif
50endif
51ifeq ($(DEBUG_FLAG),1)
52WXDEBUGFLAG = d
53endif
54ifeq ($(UNICODE),1)
55WXUNICODEFLAG = u
56endif
57ifeq ($(WXUNIV),1)
58WXUNIVNAME = univ
59endif
60ifeq ($(SHARED),1)
61WXDLLFLAG = dll
62endif
63ifeq ($(BUILD),debug)
64__OPTIMIZEFLAG_2 = -O0
65endif
66ifeq ($(BUILD),release)
67__OPTIMIZEFLAG_2 = -O2
68endif
69ifeq ($(USE_EXCEPTIONS),0)
70__EXCEPTIONSFLAG_4 = -fno-rtti
71endif
72ifeq ($(USE_EXCEPTIONS),1)
73__EXCEPTIONSFLAG_4 =
74endif
75ifeq ($(USE_EXCEPTIONS),0)
76__EXCEPTIONSFLAG_5 = -fno-exceptions
77endif
78ifeq ($(USE_EXCEPTIONS),1)
79__EXCEPTIONSFLAG_5 =
80endif
81ifeq ($(WXUNIV),1)
82__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
83endif
84ifeq ($(WXUNIV),1)
85__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
86endif
87ifeq ($(BUILD),debug)
88ifeq ($(DEBUG_FLAG),default)
89__DEBUG_DEFINE_p = -D__WXDEBUG__
90endif
91endif
92ifeq ($(DEBUG_FLAG),1)
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95ifeq ($(BUILD),debug)
96ifeq ($(DEBUG_FLAG),default)
97__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
98endif
99endif
100ifeq ($(DEBUG_FLAG),1)
101__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102endif
103ifeq ($(UNICODE),1)
104__UNICODE_DEFINE_p = -D_UNICODE
105endif
106ifeq ($(UNICODE),1)
107__UNICODE_DEFINE_p_1 = --define _UNICODE
108endif
109ifeq ($(SHARED),1)
110__DLLFLAG_p = -DWXUSINGDLL
111endif
112ifeq ($(SHARED),1)
113__DLLFLAG_p_1 = --define WXUSINGDLL
114endif
115ifeq ($(MONOLITHIC),0)
116__WXLIB_DBGRID_p = \
117 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid
118endif
119ifeq ($(MONOLITHIC),0)
120__WXLIB_ADV_p = \
121 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
122endif
123ifeq ($(MONOLITHIC),0)
124ifeq ($(USE_ODBC),1)
125__WXLIB_ODBC_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc
126endif
127endif
128ifeq ($(MONOLITHIC),0)
129__WXLIB_HTML_p = \
130 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
131endif
132ifeq ($(MONOLITHIC),0)
133__WXLIB_CORE_p = \
134 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
135endif
136ifeq ($(MONOLITHIC),0)
137__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
138endif
139ifeq ($(MONOLITHIC),1)
140__WXLIB_MONO_p = \
141 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
142endif
143ifeq ($(USE_GUI),1)
144__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
145endif
146ifeq ($(USE_GUI),1)
147__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
148endif
149ifeq ($(USE_GUI),1)
150__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
151endif
152ifeq ($(MSLU),1)
153__UNICOWS_LIB_p = -lunicows
154endif
155ifeq ($(SHARED),0)
156LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
157endif
158ifeq ($(SHARED),1)
159LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
160endif
161ifeq ($(BUILD),debug)
162ifeq ($(DEBUG_INFO),default)
163__DEBUGINFO = -g
164endif
165endif
166ifeq ($(BUILD),release)
167ifeq ($(DEBUG_INFO),default)
168__DEBUGINFO =
169endif
170endif
171ifeq ($(DEBUG_INFO),0)
172__DEBUGINFO =
173endif
174ifeq ($(DEBUG_INFO),1)
175__DEBUGINFO = -g
176endif
177
178
179all: $(OBJS)
180$(OBJS):
181 -if not exist $(OBJS) mkdir $(OBJS)
182
183### Targets: ###
184
185all: $(OBJS)\dbbrowse.exe data_help_std data_help_png
186
187clean:
188 -if exist $(OBJS)\*.o del $(OBJS)\*.o
189 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
190
191$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
192 $(CXX) -o $@ $(DBBROWSE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
193
194data_help_std:
195 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
196 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
197
198data_help_png:
199 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
200 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
201
202$(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
203 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
204
205$(OBJS)\dbbrowse_doc.o: ./doc.cpp
206 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
207
208$(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
209 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
210
211$(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
212 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
213
214$(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
215 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
216
217$(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
218 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
219
220$(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
221 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
222
223$(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
224 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
225
226$(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
227 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
228
229.PHONY: all clean data_help_std data_help_png