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