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