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