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