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