]> git.saurik.com Git - wxWidgets.git/blob - samples/db/makefile.gcc
Fixes compile warnings
[wxWidgets.git] / samples / db / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 DBTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
26 DBTEST_OBJECTS = \
27 $(OBJS)\dbtest_dbtest.o \
28 $(OBJS)\dbtest_listdb.o \
29 $(OBJS)\dbtest_dbtest_rc.o
30
31 ### Conditionally set variables: ###
32
33 ifeq ($(GCC_VERSION),2.95)
34 GCCFLAGS = -fvtable-thunks
35 endif
36 ifeq ($(USE_GUI),0)
37 PORTNAME = base
38 endif
39 ifeq ($(USE_GUI),1)
40 PORTNAME = msw
41 endif
42 ifeq ($(BUILD),debug)
43 ifeq ($(DEBUG_FLAG),default)
44 WXDEBUGFLAG = d
45 endif
46 endif
47 ifeq ($(DEBUG_FLAG),1)
48 WXDEBUGFLAG = d
49 endif
50 ifeq ($(UNICODE),1)
51 WXUNICODEFLAG = u
52 endif
53 ifeq ($(WXUNIV),1)
54 WXUNIVNAME = univ
55 endif
56 ifeq ($(SHARED),1)
57 WXDLLFLAG = dll
58 endif
59 ifeq ($(SHARED),0)
60 LIBTYPE_SUFFIX = lib
61 endif
62 ifeq ($(SHARED),1)
63 LIBTYPE_SUFFIX = dll
64 endif
65 ifeq ($(MONOLITHIC),0)
66 EXTRALIBS_FOR_BASE =
67 endif
68 ifeq ($(MONOLITHIC),1)
69 EXTRALIBS_FOR_BASE =
70 endif
71 ifeq ($(USE_ODBC),1)
72 __dbtest___depname = $(OBJS)\dbtest.exe
73 endif
74 ifeq ($(BUILD),debug)
75 __OPTIMIZEFLAG_2 = -O0
76 endif
77 ifeq ($(BUILD),release)
78 __OPTIMIZEFLAG_2 = -O2
79 endif
80 ifeq ($(USE_EXCEPTIONS),0)
81 __EXCEPTIONSFLAG_4 = -fno-rtti
82 endif
83 ifeq ($(USE_EXCEPTIONS),1)
84 __EXCEPTIONSFLAG_4 =
85 endif
86 ifeq ($(USE_EXCEPTIONS),0)
87 __EXCEPTIONSFLAG_5 = -fno-exceptions
88 endif
89 ifeq ($(USE_EXCEPTIONS),1)
90 __EXCEPTIONSFLAG_5 =
91 endif
92 ifeq ($(WXUNIV),1)
93 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
94 endif
95 ifeq ($(WXUNIV),1)
96 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
97 endif
98 ifeq ($(BUILD),debug)
99 ifeq ($(DEBUG_FLAG),default)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 endif
102 endif
103 ifeq ($(DEBUG_FLAG),1)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 endif
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 endif
110 endif
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113 endif
114 ifeq ($(UNICODE),1)
115 __UNICODE_DEFINE_p = -D_UNICODE
116 endif
117 ifeq ($(UNICODE),1)
118 __UNICODE_DEFINE_p_1 = --define _UNICODE
119 endif
120 ifeq ($(SHARED),1)
121 __DLLFLAG_p = -DWXUSINGDLL
122 endif
123 ifeq ($(SHARED),1)
124 __DLLFLAG_p_1 = --define WXUSINGDLL
125 endif
126 ifeq ($(MONOLITHIC),0)
127 __WXLIB_DBGRID_p = \
128 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
129 endif
130 ifeq ($(MONOLITHIC),0)
131 ifeq ($(USE_ODBC),1)
132 __WXLIB_ODBC_p = \
133 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
134 endif
135 endif
136 ifeq ($(MONOLITHIC),0)
137 __WXLIB_ADV_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
139 endif
140 ifeq ($(MONOLITHIC),0)
141 __WXLIB_CORE_p = \
142 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
143 endif
144 ifeq ($(MONOLITHIC),0)
145 __WXLIB_BASE_p = \
146 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
147 endif
148 ifeq ($(MONOLITHIC),1)
149 __WXLIB_MONO_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
151 endif
152 ifeq ($(USE_GUI),1)
153 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
154 endif
155 ifeq ($(USE_GUI),1)
156 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
157 endif
158 ifeq ($(USE_GUI),1)
159 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
160 endif
161 ifeq ($(MSLU),1)
162 __UNICOWS_LIB_p = -lunicows
163 endif
164 ifeq ($(BUILD),debug)
165 ifeq ($(DEBUG_INFO),default)
166 __DEBUGINFO = -g
167 endif
168 endif
169 ifeq ($(BUILD),release)
170 ifeq ($(DEBUG_INFO),default)
171 __DEBUGINFO =
172 endif
173 endif
174 ifeq ($(DEBUG_INFO),0)
175 __DEBUGINFO =
176 endif
177 ifeq ($(DEBUG_INFO),1)
178 __DEBUGINFO = -g
179 endif
180
181
182 all: $(OBJS)
183 $(OBJS):
184 -if not exist $(OBJS) mkdir $(OBJS)
185
186 ### Targets: ###
187
188 all: $(__dbtest___depname)
189
190 clean:
191 -if exist $(OBJS)\*.o del $(OBJS)\*.o
192 -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
193
194 ifeq ($(USE_ODBC),1)
195 $(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
196 $(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_DBGRID_p) $(__WXLIB_ODBC_p) $(__WXLIB_ADV_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
197 endif
198
199 $(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
200 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
201
202 $(OBJS)\dbtest_listdb.o: ./listdb.cpp
203 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
204
205 $(OBJS)\dbtest_dbtest_rc.o: ./dbtest.rc
206 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 --define NOPCH
207
208 .PHONY: all clean
209