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