]> git.saurik.com Git - wxWidgets.git/blob - samples/db/makefile.gcc
Convert back to UNIX line endings (again)
[wxWidgets.git] / samples / db / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 DBTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
24 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25 DBTEST_OBJECTS = \
26 $(OBJS)\dbtest_dbtest.o \
27 $(OBJS)\dbtest_listdb.o \
28 $(OBJS)\dbtest_dbtest_rc.o
29
30 ### Conditionally set variables: ###
31
32 ifeq ($(GCC_VERSION),2.95)
33 GCCFLAGS = -fvtable-thunks
34 endif
35 ifeq ($(USE_GUI),0)
36 PORTNAME = base
37 endif
38 ifeq ($(USE_GUI),1)
39 PORTNAME = msw
40 endif
41 ifeq ($(BUILD),debug)
42 ifeq ($(DEBUG_FLAG),default)
43 WXDEBUGFLAG = d
44 endif
45 endif
46 ifeq ($(DEBUG_FLAG),1)
47 WXDEBUGFLAG = d
48 endif
49 ifeq ($(UNICODE),1)
50 WXUNICODEFLAG = u
51 endif
52 ifeq ($(WXUNIV),1)
53 WXUNIVNAME = univ
54 endif
55 ifeq ($(SHARED),1)
56 WXDLLFLAG = dll
57 endif
58 ifeq ($(USE_ODBC),1)
59 __dbtest___depname = $(OBJS)\dbtest.exe
60 endif
61 ifeq ($(BUILD),debug)
62 __OPTIMIZEFLAG_2 = -O0
63 endif
64 ifeq ($(BUILD),release)
65 __OPTIMIZEFLAG_2 = -O2
66 endif
67 ifeq ($(USE_EXCEPTIONS),0)
68 __EXCEPTIONSFLAG_4 = -fno-rtti
69 endif
70 ifeq ($(USE_EXCEPTIONS),1)
71 __EXCEPTIONSFLAG_4 =
72 endif
73 ifeq ($(USE_EXCEPTIONS),0)
74 __EXCEPTIONSFLAG_5 = -fno-exceptions
75 endif
76 ifeq ($(USE_EXCEPTIONS),1)
77 __EXCEPTIONSFLAG_5 =
78 endif
79 ifeq ($(WXUNIV),1)
80 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
81 endif
82 ifeq ($(WXUNIV),1)
83 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
84 endif
85 ifeq ($(BUILD),debug)
86 ifeq ($(DEBUG_FLAG),default)
87 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 endif
89 endif
90 ifeq ($(DEBUG_FLAG),1)
91 __DEBUG_DEFINE_p = -D__WXDEBUG__
92 endif
93 ifeq ($(BUILD),debug)
94 ifeq ($(DEBUG_FLAG),default)
95 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
96 endif
97 endif
98 ifeq ($(DEBUG_FLAG),1)
99 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100 endif
101 ifeq ($(UNICODE),1)
102 __UNICODE_DEFINE_p = -D_UNICODE
103 endif
104 ifeq ($(UNICODE),1)
105 __UNICODE_DEFINE_p_1 = --define _UNICODE
106 endif
107 ifeq ($(SHARED),1)
108 __DLLFLAG_p = -DWXUSINGDLL
109 endif
110 ifeq ($(SHARED),1)
111 __DLLFLAG_p_1 = --define WXUSINGDLL
112 endif
113 ifeq ($(MONOLITHIC),0)
114 __WXLIB_DBGRID_p = \
115 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
116 endif
117 ifeq ($(MONOLITHIC),0)
118 ifeq ($(USE_ODBC),1)
119 __WXLIB_ODBC_p = \
120 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
121 endif
122 endif
123 ifeq ($(MONOLITHIC),0)
124 __WXLIB_ADV_p = \
125 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
126 endif
127 ifeq ($(MONOLITHIC),0)
128 __WXLIB_CORE_p = \
129 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
130 endif
131 ifeq ($(MONOLITHIC),0)
132 __WXLIB_BASE_p = \
133 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
134 endif
135 ifeq ($(MONOLITHIC),1)
136 __WXLIB_MONO_p = \
137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
138 endif
139 ifeq ($(USE_GUI),1)
140 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
141 endif
142 ifeq ($(USE_GUI),1)
143 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
144 endif
145 ifeq ($(USE_GUI),1)
146 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
147 endif
148 ifeq ($(MSLU),1)
149 __UNICOWS_LIB_p = -lunicows
150 endif
151 ifeq ($(SHARED),0)
152 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
153 endif
154 ifeq ($(SHARED),1)
155 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
156 endif
157 ifeq ($(BUILD),debug)
158 ifeq ($(DEBUG_INFO),default)
159 __DEBUGINFO = -g
160 endif
161 endif
162 ifeq ($(BUILD),release)
163 ifeq ($(DEBUG_INFO),default)
164 __DEBUGINFO =
165 endif
166 endif
167 ifeq ($(DEBUG_INFO),0)
168 __DEBUGINFO =
169 endif
170 ifeq ($(DEBUG_INFO),1)
171 __DEBUGINFO = -g
172 endif
173
174
175 all: $(OBJS)
176 $(OBJS):
177 -if not exist $(OBJS) mkdir $(OBJS)
178
179 ### Targets: ###
180
181 all: $(__dbtest___depname)
182
183 clean:
184 -if exist $(OBJS)\*.o del $(OBJS)\*.o
185 -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
186
187 ifeq ($(USE_ODBC),1)
188 $(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
189 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
190 endif
191
192 $(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
193 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
194
195 $(OBJS)\dbtest_listdb.o: ./listdb.cpp
196 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
197
198 $(OBJS)\dbtest_dbtest_rc.o: ./dbtest.rc
199 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
200
201 .PHONY: all clean