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