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