]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.gcc
Get the stock label when stock ID is used with empty label in Create()
[wxWidgets.git] / tests / 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 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
21 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
22 -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
23 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
24 TEST_OBJECTS = \
25 $(OBJS)\test_test.o \
26 $(OBJS)\test_main.o \
27 $(OBJS)\test_formatconverter.o \
28 $(OBJS)\test_regex.o \
29 $(OBJS)\test_wxregex.o \
30 $(OBJS)\test_filename.o \
31 $(OBJS)\test_filesys.o \
32 $(OBJS)\test_arrays.o \
33 $(OBJS)\test_hashes.o \
34 $(OBJS)\test_longlong.o \
35 $(OBJS)\test_strings.o \
36 $(OBJS)\test_stdstrings.o \
37 $(OBJS)\test_unicode.o \
38 $(OBJS)\test_crt.o \
39 $(OBJS)\test_bstream.o \
40 $(OBJS)\test_ffilestream.o \
41 $(OBJS)\test_filestream.o \
42 $(OBJS)\test_memstream.o \
43 $(OBJS)\test_sstream.o \
44 $(OBJS)\test_zlibstream.o \
45 $(OBJS)\test_fontmap.o \
46 $(OBJS)\test_datetime.o
47
48 ### Conditionally set variables: ###
49
50 ifeq ($(GCC_VERSION),2.95)
51 GCCFLAGS = -fvtable-thunks
52 endif
53 ifeq ($(USE_GUI),0)
54 PORTNAME = base
55 endif
56 ifeq ($(USE_GUI),1)
57 PORTNAME = msw
58 endif
59 ifeq ($(BUILD),debug)
60 ifeq ($(DEBUG_FLAG),default)
61 WXDEBUGFLAG = d
62 endif
63 endif
64 ifeq ($(DEBUG_FLAG),1)
65 WXDEBUGFLAG = d
66 endif
67 ifeq ($(UNICODE),1)
68 WXUNICODEFLAG = u
69 endif
70 ifeq ($(WXUNIV),1)
71 WXUNIVNAME = univ
72 endif
73 ifeq ($(SHARED),1)
74 WXDLLFLAG = dll
75 endif
76 ifeq ($(BUILD),debug)
77 __OPTIMIZEFLAG_2 = -O0
78 endif
79 ifeq ($(BUILD),release)
80 __OPTIMIZEFLAG_2 = -O2
81 endif
82 ifeq ($(USE_EXCEPTIONS),0)
83 __EXCEPTIONSFLAG_4 = -fno-rtti
84 endif
85 ifeq ($(USE_EXCEPTIONS),1)
86 __EXCEPTIONSFLAG_4 =
87 endif
88 ifeq ($(USE_EXCEPTIONS),0)
89 __EXCEPTIONSFLAG_5 = -fno-exceptions
90 endif
91 ifeq ($(USE_EXCEPTIONS),1)
92 __EXCEPTIONSFLAG_5 =
93 endif
94 ifeq ($(WXUNIV),1)
95 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
96 endif
97 ifeq ($(BUILD),debug)
98 ifeq ($(DEBUG_FLAG),default)
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 endif
101 endif
102 ifeq ($(DEBUG_FLAG),1)
103 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 endif
105 ifeq ($(UNICODE),1)
106 __UNICODE_DEFINE_p = -D_UNICODE
107 endif
108 ifeq ($(SHARED),1)
109 __DLLFLAG_p = -DWXUSINGDLL
110 endif
111 ifeq ($(MONOLITHIC),0)
112 __WXLIB_BASE_p = \
113 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
114 endif
115 ifeq ($(MONOLITHIC),1)
116 __WXLIB_MONO_p = \
117 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
118 endif
119 ifeq ($(USE_GUI),1)
120 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
121 endif
122 ifeq ($(USE_GUI),1)
123 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
124 endif
125 ifeq ($(USE_GUI),1)
126 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
127 endif
128 ifeq ($(MSLU),1)
129 __UNICOWS_LIB_p = -lunicows
130 endif
131 ifeq ($(SHARED),0)
132 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
133 endif
134 ifeq ($(SHARED),1)
135 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
136 endif
137 ifeq ($(BUILD),debug)
138 ifeq ($(DEBUG_INFO),default)
139 __DEBUGINFO = -g
140 endif
141 endif
142 ifeq ($(BUILD),release)
143 ifeq ($(DEBUG_INFO),default)
144 __DEBUGINFO =
145 endif
146 endif
147 ifeq ($(DEBUG_INFO),0)
148 __DEBUGINFO =
149 endif
150 ifeq ($(DEBUG_INFO),1)
151 __DEBUGINFO = -g
152 endif
153
154
155 all: $(OBJS)
156 $(OBJS):
157 -if not exist $(OBJS) mkdir $(OBJS)
158
159 ### Targets: ###
160
161 all: $(OBJS)\test.exe data
162
163 clean:
164 -if exist $(OBJS)\*.o del $(OBJS)\*.o
165 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
166
167 $(OBJS)\test.exe: $(TEST_OBJECTS)
168 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
169
170 data:
171 if not exist $(OBJS) mkdir $(OBJS)
172 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
173
174 $(OBJS)\test_test.o: ./test.cpp
175 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
176
177 $(OBJS)\test_main.o: ./mbconv/main.cpp
178 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
179
180 $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
181 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
182
183 $(OBJS)\test_regex.o: ./regex/regex.cpp
184 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
185
186 $(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
187 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
188
189 $(OBJS)\test_filename.o: ./filename/filename.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191
192 $(OBJS)\test_filesys.o: ./filesys/filesys.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194
195 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197
198 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
199 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
200
201 $(OBJS)\test_longlong.o: ./longlong/longlong.cpp
202 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
203
204 $(OBJS)\test_strings.o: ./strings/strings.cpp
205 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
206
207 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
208 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
209
210 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
211 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
212
213 $(OBJS)\test_crt.o: ./strings/crt.cpp
214 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
215
216 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
217 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
218
219 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
220 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
221
222 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
223 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
224
225 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
226 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
227
228 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
229 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
230
231 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
232 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
233
234 $(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp
235 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
236
237 $(OBJS)\test_datetime.o: ./datetime/datetime.cpp
238 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
239
240 .PHONY: all clean data