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