]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.gcc
alternative direct CFSocket implementation, not yet for production use
[wxWidgets.git] / tests / makefile.gcc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
1b035b8c 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
670ec357
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19TEST_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)
23TEST_OBJECTS = \
24 $(OBJS)\test_test.o \
e70833fb 25 $(OBJS)\test_main.o \
7d5ab151 26 $(OBJS)\test_formatconverter.o \
4827cbd9 27 $(OBJS)\test_regex.o \
cf1014a2 28 $(OBJS)\test_filesys.o \
1b035b8c
VS
29 $(OBJS)\test_arrays.o \
30 $(OBJS)\test_longlong.o
670ec357
VS
31
32### Conditionally set variables: ###
33
34ifeq ($(GCC_VERSION),2.95)
35GCCFLAGS = -fvtable-thunks
36endif
37ifeq ($(USE_GUI),0)
38PORTNAME = base
39endif
40ifeq ($(USE_GUI),1)
41PORTNAME = msw
42endif
43ifeq ($(BUILD),debug)
44ifeq ($(DEBUG_FLAG),default)
45WXDEBUGFLAG = d
46endif
47endif
48ifeq ($(DEBUG_FLAG),1)
49WXDEBUGFLAG = d
50endif
51ifeq ($(UNICODE),1)
52WXUNICODEFLAG = u
53endif
54ifeq ($(WXUNIV),1)
55WXUNIVNAME = univ
56endif
57ifeq ($(SHARED),1)
58WXDLLFLAG = dll
59endif
60ifeq ($(BUILD),debug)
61__OPTIMIZEFLAG_2 = -O0
62endif
63ifeq ($(BUILD),release)
64__OPTIMIZEFLAG_2 = -O2
65endif
66ifeq ($(USE_EXCEPTIONS),0)
67__EXCEPTIONSFLAG_4 = -fno-rtti
68endif
69ifeq ($(USE_EXCEPTIONS),1)
70__EXCEPTIONSFLAG_4 =
71endif
72ifeq ($(USE_EXCEPTIONS),0)
73__EXCEPTIONSFLAG_5 = -fno-exceptions
74endif
75ifeq ($(USE_EXCEPTIONS),1)
76__EXCEPTIONSFLAG_5 =
77endif
78ifeq ($(WXUNIV),1)
79__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
80endif
81ifeq ($(BUILD),debug)
82ifeq ($(DEBUG_FLAG),default)
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84endif
85endif
86ifeq ($(DEBUG_FLAG),1)
87__DEBUG_DEFINE_p = -D__WXDEBUG__
88endif
89ifeq ($(UNICODE),1)
90__UNICODE_DEFINE_p = -D_UNICODE
91endif
92ifeq ($(SHARED),1)
93__DLLFLAG_p = -DWXUSINGDLL
94endif
95ifeq ($(MONOLITHIC),0)
96__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
97endif
98ifeq ($(MONOLITHIC),1)
99__WXLIB_MONO_p = \
100 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
101endif
102ifeq ($(USE_GUI),1)
103__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
104endif
105ifeq ($(USE_GUI),1)
106__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
107endif
108ifeq ($(USE_GUI),1)
109__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
110endif
111ifeq ($(MSLU),1)
112__UNICOWS_LIB_p = -lunicows
113endif
114ifeq ($(SHARED),0)
115LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
116endif
117ifeq ($(SHARED),1)
118LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
119endif
120ifeq ($(BUILD),debug)
121ifeq ($(DEBUG_INFO),default)
122__DEBUGINFO = -g
123endif
124endif
125ifeq ($(BUILD),release)
126ifeq ($(DEBUG_INFO),default)
127__DEBUGINFO =
128endif
129endif
130ifeq ($(DEBUG_INFO),0)
131__DEBUGINFO =
132endif
133ifeq ($(DEBUG_INFO),1)
134__DEBUGINFO = -g
135endif
136
137
138all: $(OBJS)
139$(OBJS):
140 -if not exist $(OBJS) mkdir $(OBJS)
141
142### Targets: ###
143
144all: $(OBJS)\test.exe
145
146clean:
147 -if exist $(OBJS)\*.o del $(OBJS)\*.o
148 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
149
150$(OBJS)\test.exe: $(TEST_OBJECTS)
151 $(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
152
153$(OBJS)\test_test.o: ./test.cpp
154 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
155
156$(OBJS)\test_main.o: ./mbconv/main.cpp
157 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
158
7d5ab151
VS
159$(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
160 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
161
e70833fb
VS
162$(OBJS)\test_regex.o: ./regex/regex.cpp
163 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
164
4827cbd9
VS
165$(OBJS)\test_filesys.o: ./filesys/filesys.cpp
166 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
167
cf1014a2
VS
168$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
169 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
170
1b035b8c
VS
171$(OBJS)\test_longlong.o: ./longlong/longlong.cpp
172 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
173
670ec357 174.PHONY: all clean