]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | DBTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
076f10e0 | 22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
b14abf14 | 23 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \ |
c33fae85 | 24 | $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \ |
b14abf14 | 25 | $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
076f10e0 VS |
26 | DBTEST_OBJECTS = \ |
27 | $(OBJS)\dbtest_dbtest.o \ | |
28 | $(OBJS)\dbtest_listdb.o \ | |
29 | $(OBJS)\dbtest_dbtest_rc.o | |
3b20263d VS |
30 | |
31 | ### Conditionally set variables: ### | |
32 | ||
250700e4 RD |
33 | ifeq ($(GCC_VERSION),2.95) |
34 | GCCFLAGS = -fvtable-thunks | |
35 | endif | |
3b20263d VS |
36 | ifeq ($(USE_GUI),0) |
37 | PORTNAME = base | |
38 | endif | |
39 | ifeq ($(USE_GUI),1) | |
40 | PORTNAME = msw | |
41 | endif | |
42 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
43 | ifeq ($(DEBUG_FLAG),default) |
44 | WXDEBUGFLAG = d | |
45 | endif | |
46 | endif | |
47 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
48 | WXDEBUGFLAG = d |
49 | endif | |
3b20263d VS |
50 | ifeq ($(UNICODE),1) |
51 | WXUNICODEFLAG = u | |
52 | endif | |
53 | ifeq ($(WXUNIV),1) | |
54 | WXUNIVNAME = univ | |
55 | endif | |
b17c1746 DE |
56 | ifeq ($(SHARED),1) |
57 | WXDLLFLAG = dll | |
076f10e0 | 58 | endif |
b14abf14 JS |
59 | ifeq ($(SHARED),0) |
60 | LIBTYPE_SUFFIX = lib | |
61 | endif | |
62 | ifeq ($(SHARED),1) | |
63 | LIBTYPE_SUFFIX = dll | |
64 | endif | |
dd65d8c8 RN |
65 | ifeq ($(MONOLITHIC),0) |
66 | EXTRALIBS_FOR_BASE = | |
67 | endif | |
68 | ifeq ($(MONOLITHIC),1) | |
69 | EXTRALIBS_FOR_BASE = | |
70 | endif | |
b17c1746 DE |
71 | ifeq ($(USE_ODBC),1) |
72 | __dbtest___depname = $(OBJS)\dbtest.exe | |
73 | endif | |
74 | ifeq ($(BUILD),debug) | |
75 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
76 | endif |
77 | ifeq ($(BUILD),release) | |
b17c1746 | 78 | __OPTIMIZEFLAG_2 = -O2 |
076f10e0 | 79 | endif |
b17c1746 DE |
80 | ifeq ($(USE_EXCEPTIONS),0) |
81 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
076f10e0 | 82 | endif |
b17c1746 DE |
83 | ifeq ($(USE_EXCEPTIONS),1) |
84 | __EXCEPTIONSFLAG_4 = | |
076f10e0 | 85 | endif |
b17c1746 DE |
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__ | |
250700e4 RD |
97 | endif |
98 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
99 | ifeq ($(DEBUG_FLAG),default) |
100 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
101 | endif | |
102 | endif | |
103 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
104 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
105 | endif | |
106 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
107 | ifeq ($(DEBUG_FLAG),default) |
108 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
109 | endif | |
110 | endif | |
111 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
112 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
113 | endif | |
b17c1746 DE |
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 | |
3b20263d VS |
120 | ifeq ($(SHARED),1) |
121 | __DLLFLAG_p = -DWXUSINGDLL | |
122 | endif | |
123 | ifeq ($(SHARED),1) | |
124 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
125 | endif | |
b17c1746 | 126 | ifeq ($(MONOLITHIC),0) |
c4839ccf | 127 | __WXLIB_DBGRID_p = \ |
c33fae85 | 128 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid |
c4839ccf JS |
129 | endif |
130 | ifeq ($(MONOLITHIC),0) | |
b92ca05a | 131 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
132 | __WXLIB_ODBC_p = \ |
133 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
b71531ad | 134 | endif |
b92ca05a | 135 | endif |
b17c1746 | 136 | ifeq ($(MONOLITHIC),0) |
c6f57ccb | 137 | __WXLIB_ADV_p = \ |
c33fae85 | 138 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
c6f57ccb WS |
139 | endif |
140 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 141 | __WXLIB_CORE_p = \ |
c33fae85 | 142 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 143 | endif |
b17c1746 | 144 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
145 | __WXLIB_BASE_p = \ |
146 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 147 | endif |
b17c1746 DE |
148 | ifeq ($(MONOLITHIC),1) |
149 | __WXLIB_MONO_p = \ | |
c33fae85 | 150 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 151 | endif |
076f10e0 | 152 | ifeq ($(USE_GUI),1) |
9c2d002b | 153 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
076f10e0 VS |
154 | endif |
155 | ifeq ($(USE_GUI),1) | |
9c2d002b | 156 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
076f10e0 VS |
157 | endif |
158 | ifeq ($(USE_GUI),1) | |
9c2d002b | 159 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 160 | endif |
4e209a20 VS |
161 | ifeq ($(MSLU),1) |
162 | __UNICOWS_LIB_p = -lunicows | |
163 | endif | |
b17c1746 DE |
164 | ifeq ($(BUILD),debug) |
165 | ifeq ($(DEBUG_INFO),default) | |
166 | __DEBUGINFO = -g | |
3b20263d | 167 | endif |
fd9f42b6 | 168 | endif |
b17c1746 DE |
169 | ifeq ($(BUILD),release) |
170 | ifeq ($(DEBUG_INFO),default) | |
171 | __DEBUGINFO = | |
3b20263d | 172 | endif |
3b20263d | 173 | endif |
b17c1746 DE |
174 | ifeq ($(DEBUG_INFO),0) |
175 | __DEBUGINFO = | |
176 | endif | |
177 | ifeq ($(DEBUG_INFO),1) | |
178 | __DEBUGINFO = -g | |
2e9fdc04 | 179 | endif |
3b20263d VS |
180 | |
181 | ||
182 | all: $(OBJS) | |
183 | $(OBJS): | |
184 | -if not exist $(OBJS) mkdir $(OBJS) | |
185 | ||
186 | ### Targets: ### | |
187 | ||
2e9fdc04 | 188 | all: $(__dbtest___depname) |
3b20263d | 189 | |
3b20263d VS |
190 | clean: |
191 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
192 | -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe | |
193 | ||
2e9fdc04 | 194 | ifeq ($(USE_ODBC),1) |
076f10e0 | 195 | $(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o |
b14abf14 | 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 |
2e9fdc04 | 197 | endif |
3b20263d | 198 | |
b17c1746 DE |
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 | |
b14abf14 | 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 |
b17c1746 | 207 | |
250700e4 | 208 | .PHONY: all clean |
b14abf14 | 209 |