]>
Commit | Line | Data |
---|---|---|
f98da3fb VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3 | # Bakefile 0.1.1 (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 | ||
f98da3fb VS |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
17 | SETUPHDIR = \ |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
f98da3fb VS |
19 | TEX2RTF_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
ec08d395 | 21 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \ |
a4ad36cd VS |
22 | $(__DLLFLAG_p) -DNO_GUI $(CXXFLAGS) $(__EXCEPTIONSFLAG_0) \ |
23 | $(__EXCEPTIONSFLAG) | |
f98da3fb VS |
24 | TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
25 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
ec08d395 | 26 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \ |
a4ad36cd VS |
27 | $(__DLLFLAG_p) -I.\..\..\..\samples $(CXXFLAGS) $(__EXCEPTIONSFLAG_0) \ |
28 | $(__EXCEPTIONSFLAG) | |
f98da3fb VS |
29 | TEX2RTF_GUI_OBJECTS = \ |
30 | $(OBJS)\tex2rtf_gui_sample_rc.o \ | |
31 | $(OBJS)\tex2rtf_gui_tex2rtf.o \ | |
32 | $(OBJS)\tex2rtf_gui_tex2any.o \ | |
33 | $(OBJS)\tex2rtf_gui_texutils.o \ | |
34 | $(OBJS)\tex2rtf_gui_rtfutils.o \ | |
35 | $(OBJS)\tex2rtf_gui_xlputils.o \ | |
36 | $(OBJS)\tex2rtf_gui_htmlutil.o \ | |
37 | $(OBJS)\tex2rtf_gui_readshg.o \ | |
38 | $(OBJS)\tex2rtf_gui_table.o | |
39 | TEX2RTF_OBJECTS = \ | |
40 | $(OBJS)\tex2rtf_tex2rtf.o \ | |
41 | $(OBJS)\tex2rtf_tex2any.o \ | |
42 | $(OBJS)\tex2rtf_texutils.o \ | |
43 | $(OBJS)\tex2rtf_rtfutils.o \ | |
44 | $(OBJS)\tex2rtf_xlputils.o \ | |
45 | $(OBJS)\tex2rtf_htmlutil.o \ | |
46 | $(OBJS)\tex2rtf_readshg.o \ | |
47 | $(OBJS)\tex2rtf_table.o | |
48 | ||
49 | ### Conditionally set variables: ### | |
50 | ||
51 | ifeq ($(GCC_VERSION),2.95) | |
52 | GCCFLAGS = -fvtable-thunks | |
53 | endif | |
75a0a7b7 VS |
54 | ifeq ($(SHARED),0) |
55 | LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG) | |
56 | endif | |
57 | ifeq ($(SHARED),1) | |
58 | LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG) | |
59 | endif | |
f98da3fb VS |
60 | ifeq ($(USE_GUI),0) |
61 | PORTNAME = base | |
62 | endif | |
63 | ifeq ($(USE_GUI),1) | |
64 | PORTNAME = msw | |
65 | endif | |
66 | ifeq ($(BUILD),debug) | |
67 | ifeq ($(DEBUG_FLAG),default) | |
68 | WXDEBUGFLAG = d | |
69 | endif | |
70 | endif | |
71 | ifeq ($(DEBUG_FLAG),1) | |
72 | WXDEBUGFLAG = d | |
73 | endif | |
74 | ifeq ($(SHARED),1) | |
75 | WXDLLFLAG = dll | |
76 | endif | |
77 | ifeq ($(UNICODE),1) | |
78 | WXUNICODEFLAG = u | |
79 | endif | |
80 | ifeq ($(WXUNIV),1) | |
81 | WXUNIVNAME = univ | |
82 | endif | |
83 | ifeq ($(BUILD),debug) | |
84 | ifeq ($(DEBUG_INFO),default) | |
85 | __DEBUGINFO = -g | |
86 | endif | |
87 | endif | |
88 | ifeq ($(BUILD),release) | |
89 | ifeq ($(DEBUG_INFO),default) | |
90 | __DEBUGINFO = | |
91 | endif | |
92 | endif | |
93 | ifeq ($(DEBUG_INFO),0) | |
94 | __DEBUGINFO = | |
95 | endif | |
96 | ifeq ($(DEBUG_INFO),1) | |
97 | __DEBUGINFO = -g | |
98 | endif | |
99 | ifeq ($(BUILD),debug) | |
100 | ifeq ($(DEBUG_FLAG),default) | |
101 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
102 | endif | |
103 | endif | |
104 | ifeq ($(DEBUG_FLAG),1) | |
105 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
106 | endif | |
107 | ifeq ($(BUILD),debug) | |
108 | ifeq ($(DEBUG_FLAG),default) | |
109 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
110 | endif | |
111 | endif | |
112 | ifeq ($(DEBUG_FLAG),1) | |
113 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
114 | endif | |
115 | ifeq ($(SHARED),1) | |
116 | __DLLFLAG_p = -DWXUSINGDLL | |
117 | endif | |
118 | ifeq ($(SHARED),1) | |
119 | __DLLFLAG_p_3 = --define WXUSINGDLL | |
120 | endif | |
a4ad36cd VS |
121 | ifeq ($(USE_EXCEPTIONS),0) |
122 | __EXCEPTIONSFLAG = -fno-exceptions | |
123 | endif | |
124 | ifeq ($(USE_EXCEPTIONS),1) | |
125 | __EXCEPTIONSFLAG = | |
126 | endif | |
127 | ifeq ($(USE_EXCEPTIONS),0) | |
128 | __EXCEPTIONSFLAG_0 = -fno-rtti | |
129 | endif | |
130 | ifeq ($(USE_EXCEPTIONS),1) | |
131 | __EXCEPTIONSFLAG_0 = | |
132 | endif | |
f98da3fb VS |
133 | ifeq ($(USE_GUI),1) |
134 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
135 | endif | |
136 | ifeq ($(USE_GUI),1) | |
137 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
138 | endif | |
139 | ifeq ($(USE_GUI),1) | |
140 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
141 | endif | |
142 | ifeq ($(BUILD),debug) | |
143 | __OPTIMIZEFLAG = -O0 | |
144 | endif | |
145 | ifeq ($(BUILD),release) | |
146 | __OPTIMIZEFLAG = -O2 | |
147 | endif | |
148 | ifeq ($(UNICODE),1) | |
ec08d395 | 149 | __UNICODE_DEFINE_p = -D_UNICODE |
f98da3fb VS |
150 | endif |
151 | ifeq ($(UNICODE),1) | |
ec08d395 | 152 | __UNICODE_DEFINE_p_3 = --define _UNICODE |
f98da3fb VS |
153 | endif |
154 | ifeq ($(MSLU),1) | |
155 | __UNICOWS_LIB_p = -lunicows | |
156 | endif | |
157 | ifeq ($(MONOLITHIC),0) | |
158 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
159 | endif | |
160 | ifeq ($(MONOLITHIC),0) | |
161 | __WXLIB_CORE_p = \ | |
162 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
163 | endif | |
164 | ifeq ($(MONOLITHIC),0) | |
165 | __WXLIB_HTML_p = \ | |
166 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html | |
167 | endif | |
168 | ifeq ($(MONOLITHIC),1) | |
169 | __WXLIB_MONO_p = \ | |
170 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
171 | endif | |
172 | ifeq ($(WXUNIV),1) | |
173 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
174 | endif | |
175 | ifeq ($(WXUNIV),1) | |
176 | __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__ | |
177 | endif | |
8be1c2c5 VS |
178 | ifeq ($(USE_GUI),1) |
179 | __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe | |
180 | endif | |
f98da3fb VS |
181 | |
182 | ||
183 | all: $(OBJS) | |
184 | $(OBJS): | |
185 | -if not exist $(OBJS) mkdir $(OBJS) | |
186 | ||
187 | ### Targets: ### | |
188 | ||
8be1c2c5 | 189 | all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname) |
f98da3fb | 190 | |
1c3a6972 | 191 | $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp |
f98da3fb VS |
192 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
193 | ||
1c3a6972 | 194 | $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp |
f98da3fb VS |
195 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
196 | ||
1c3a6972 | 197 | $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp |
f98da3fb VS |
198 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
199 | ||
1c3a6972 | 200 | $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc |
ec08d395 | 201 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples |
f98da3fb | 202 | |
1c3a6972 | 203 | $(OBJS)\tex2rtf_gui_table.o: ./table.cpp |
f98da3fb VS |
204 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
205 | ||
1c3a6972 | 206 | $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp |
f98da3fb VS |
207 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
208 | ||
1c3a6972 | 209 | $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp |
f98da3fb VS |
210 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
211 | ||
1c3a6972 | 212 | $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp |
f98da3fb VS |
213 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
214 | ||
1c3a6972 | 215 | $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp |
f98da3fb VS |
216 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $< |
217 | ||
1c3a6972 | 218 | $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp |
f98da3fb VS |
219 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
220 | ||
1c3a6972 | 221 | $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp |
f98da3fb VS |
222 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
223 | ||
1c3a6972 | 224 | $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp |
f98da3fb VS |
225 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
226 | ||
1c3a6972 | 227 | $(OBJS)\tex2rtf_table.o: ./table.cpp |
f98da3fb VS |
228 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
229 | ||
1c3a6972 | 230 | $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp |
f98da3fb VS |
231 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
232 | ||
1c3a6972 | 233 | $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp |
f98da3fb VS |
234 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
235 | ||
1c3a6972 | 236 | $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp |
f98da3fb VS |
237 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
238 | ||
1c3a6972 | 239 | $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp |
f98da3fb VS |
240 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $< |
241 | ||
242 | clean: | |
243 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
244 | -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe | |
245 | -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe | |
246 | ||
247 | $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS) | |
ec08d395 | 248 | $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
f98da3fb | 249 | |
8be1c2c5 | 250 | ifeq ($(USE_GUI),1) |
f98da3fb | 251 | $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o |
ec08d395 | 252 | $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
8be1c2c5 | 253 | endif |
f98da3fb VS |
254 | |
255 | .PHONY: all clean |