]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/src/makefile.gcc
reversed change
[wxWidgets.git] / utils / tex2rtf / src / makefile.gcc
CommitLineData
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
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
f98da3fb
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
f98da3fb
VS
19TEX2RTF_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
24TEX2RTF_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
29TEX2RTF_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
39TEX2RTF_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
51ifeq ($(GCC_VERSION),2.95)
52GCCFLAGS = -fvtable-thunks
53endif
75a0a7b7
VS
54ifeq ($(SHARED),0)
55LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
56endif
57ifeq ($(SHARED),1)
58LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
59endif
f98da3fb
VS
60ifeq ($(USE_GUI),0)
61PORTNAME = base
62endif
63ifeq ($(USE_GUI),1)
64PORTNAME = msw
65endif
66ifeq ($(BUILD),debug)
67ifeq ($(DEBUG_FLAG),default)
68WXDEBUGFLAG = d
69endif
70endif
71ifeq ($(DEBUG_FLAG),1)
72WXDEBUGFLAG = d
73endif
74ifeq ($(SHARED),1)
75WXDLLFLAG = dll
76endif
77ifeq ($(UNICODE),1)
78WXUNICODEFLAG = u
79endif
80ifeq ($(WXUNIV),1)
81WXUNIVNAME = univ
82endif
83ifeq ($(BUILD),debug)
84ifeq ($(DEBUG_INFO),default)
85__DEBUGINFO = -g
86endif
87endif
88ifeq ($(BUILD),release)
89ifeq ($(DEBUG_INFO),default)
90__DEBUGINFO =
91endif
92endif
93ifeq ($(DEBUG_INFO),0)
94__DEBUGINFO =
95endif
96ifeq ($(DEBUG_INFO),1)
97__DEBUGINFO = -g
98endif
99ifeq ($(BUILD),debug)
100ifeq ($(DEBUG_FLAG),default)
101__DEBUG_DEFINE_p = -D__WXDEBUG__
102endif
103endif
104ifeq ($(DEBUG_FLAG),1)
105__DEBUG_DEFINE_p = -D__WXDEBUG__
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
114endif
115ifeq ($(SHARED),1)
116__DLLFLAG_p = -DWXUSINGDLL
117endif
118ifeq ($(SHARED),1)
119__DLLFLAG_p_3 = --define WXUSINGDLL
120endif
a4ad36cd
VS
121ifeq ($(USE_EXCEPTIONS),0)
122__EXCEPTIONSFLAG = -fno-exceptions
123endif
124ifeq ($(USE_EXCEPTIONS),1)
125__EXCEPTIONSFLAG =
126endif
127ifeq ($(USE_EXCEPTIONS),0)
128__EXCEPTIONSFLAG_0 = -fno-rtti
129endif
130ifeq ($(USE_EXCEPTIONS),1)
131__EXCEPTIONSFLAG_0 =
132endif
f98da3fb
VS
133ifeq ($(USE_GUI),1)
134__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
135endif
136ifeq ($(USE_GUI),1)
137__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
138endif
139ifeq ($(USE_GUI),1)
140__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
141endif
142ifeq ($(BUILD),debug)
143__OPTIMIZEFLAG = -O0
144endif
145ifeq ($(BUILD),release)
146__OPTIMIZEFLAG = -O2
147endif
148ifeq ($(UNICODE),1)
ec08d395 149__UNICODE_DEFINE_p = -D_UNICODE
f98da3fb
VS
150endif
151ifeq ($(UNICODE),1)
ec08d395 152__UNICODE_DEFINE_p_3 = --define _UNICODE
f98da3fb
VS
153endif
154ifeq ($(MSLU),1)
155__UNICOWS_LIB_p = -lunicows
156endif
157ifeq ($(MONOLITHIC),0)
158__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
159endif
160ifeq ($(MONOLITHIC),0)
161__WXLIB_CORE_p = \
162 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
163endif
164ifeq ($(MONOLITHIC),0)
165__WXLIB_HTML_p = \
166 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
167endif
168ifeq ($(MONOLITHIC),1)
169__WXLIB_MONO_p = \
170 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
171endif
172ifeq ($(WXUNIV),1)
173__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
174endif
175ifeq ($(WXUNIV),1)
176__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
177endif
8be1c2c5
VS
178ifeq ($(USE_GUI),1)
179__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
180endif
f98da3fb
VS
181
182
183all: $(OBJS)
184$(OBJS):
185 -if not exist $(OBJS) mkdir $(OBJS)
186
187### Targets: ###
188
8be1c2c5 189all: $(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
242clean:
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 250ifeq ($(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 253endif
f98da3fb
VS
254
255.PHONY: all clean