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