]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.gcc
moved arrays tests to testsuite (patch 927475)
[wxWidgets.git] / tests / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (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_filesys.o \
29 $(OBJS)\test_arrays.o
30
31 ### Conditionally set variables: ###
32
33 ifeq ($(GCC_VERSION),2.95)
34 GCCFLAGS = -fvtable-thunks
35 endif
36 ifeq ($(USE_GUI),0)
37 PORTNAME = base
38 endif
39 ifeq ($(USE_GUI),1)
40 PORTNAME = msw
41 endif
42 ifeq ($(BUILD),debug)
43 ifeq ($(DEBUG_FLAG),default)
44 WXDEBUGFLAG = d
45 endif
46 endif
47 ifeq ($(DEBUG_FLAG),1)
48 WXDEBUGFLAG = d
49 endif
50 ifeq ($(UNICODE),1)
51 WXUNICODEFLAG = u
52 endif
53 ifeq ($(WXUNIV),1)
54 WXUNIVNAME = univ
55 endif
56 ifeq ($(SHARED),1)
57 WXDLLFLAG = dll
58 endif
59 ifeq ($(BUILD),debug)
60 __OPTIMIZEFLAG_2 = -O0
61 endif
62 ifeq ($(BUILD),release)
63 __OPTIMIZEFLAG_2 = -O2
64 endif
65 ifeq ($(USE_EXCEPTIONS),0)
66 __EXCEPTIONSFLAG_4 = -fno-rtti
67 endif
68 ifeq ($(USE_EXCEPTIONS),1)
69 __EXCEPTIONSFLAG_4 =
70 endif
71 ifeq ($(USE_EXCEPTIONS),0)
72 __EXCEPTIONSFLAG_5 = -fno-exceptions
73 endif
74 ifeq ($(USE_EXCEPTIONS),1)
75 __EXCEPTIONSFLAG_5 =
76 endif
77 ifeq ($(WXUNIV),1)
78 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
79 endif
80 ifeq ($(BUILD),debug)
81 ifeq ($(DEBUG_FLAG),default)
82 __DEBUG_DEFINE_p = -D__WXDEBUG__
83 endif
84 endif
85 ifeq ($(DEBUG_FLAG),1)
86 __DEBUG_DEFINE_p = -D__WXDEBUG__
87 endif
88 ifeq ($(UNICODE),1)
89 __UNICODE_DEFINE_p = -D_UNICODE
90 endif
91 ifeq ($(SHARED),1)
92 __DLLFLAG_p = -DWXUSINGDLL
93 endif
94 ifeq ($(MONOLITHIC),0)
95 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
96 endif
97 ifeq ($(MONOLITHIC),1)
98 __WXLIB_MONO_p = \
99 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
100 endif
101 ifeq ($(USE_GUI),1)
102 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
103 endif
104 ifeq ($(USE_GUI),1)
105 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
106 endif
107 ifeq ($(USE_GUI),1)
108 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
109 endif
110 ifeq ($(MSLU),1)
111 __UNICOWS_LIB_p = -lunicows
112 endif
113 ifeq ($(SHARED),0)
114 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
115 endif
116 ifeq ($(SHARED),1)
117 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
118 endif
119 ifeq ($(BUILD),debug)
120 ifeq ($(DEBUG_INFO),default)
121 __DEBUGINFO = -g
122 endif
123 endif
124 ifeq ($(BUILD),release)
125 ifeq ($(DEBUG_INFO),default)
126 __DEBUGINFO =
127 endif
128 endif
129 ifeq ($(DEBUG_INFO),0)
130 __DEBUGINFO =
131 endif
132 ifeq ($(DEBUG_INFO),1)
133 __DEBUGINFO = -g
134 endif
135
136
137 all: $(OBJS)
138 $(OBJS):
139 -if not exist $(OBJS) mkdir $(OBJS)
140
141 ### Targets: ###
142
143 all: $(OBJS)\test.exe
144
145 clean:
146 -if exist $(OBJS)\*.o del $(OBJS)\*.o
147 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
148
149 $(OBJS)\test.exe: $(TEST_OBJECTS)
150 $(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
151
152 $(OBJS)\test_test.o: ./test.cpp
153 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
154
155 $(OBJS)\test_main.o: ./mbconv/main.cpp
156 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
157
158 $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
159 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
160
161 $(OBJS)\test_regex.o: ./regex/regex.cpp
162 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
163
164 $(OBJS)\test_filesys.o: ./filesys/filesys.cpp
165 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
166
167 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
168 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
169
170 .PHONY: all clean