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