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