]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/src/makefile.gcc
remove @ingroup; use @category instead
[wxWidgets.git] / utils / tex2rtf / src / makefile.gcc
CommitLineData
f98da3fb
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (http://www.bakefile.org)
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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
ae4ccf12 16WX_RELEASE_NODOT = 29
7379e476 17COMPILER_PREFIX = gcc
f98da3fb 18OBJS = \
7379e476
VZ
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
23TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -DwxUSE_GUI=0 -DNO_GUI $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
30TEX2RTF_OBJECTS = \
31 $(OBJS)\tex2rtf_tex2rtf.o \
32 $(OBJS)\tex2rtf_tex2any.o \
33 $(OBJS)\tex2rtf_texutils.o \
34 $(OBJS)\tex2rtf_rtfutils.o \
35 $(OBJS)\tex2rtf_xlputils.o \
36 $(OBJS)\tex2rtf_htmlutil.o \
37 $(OBJS)\tex2rtf_readshg.o \
38 $(OBJS)\tex2rtf_table.o
8c9f8f91
JS
39TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
40 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
43 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \
44 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG) \
45 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
f98da3fb
VS
46TEX2RTF_GUI_OBJECTS = \
47 $(OBJS)\tex2rtf_gui_sample_rc.o \
48 $(OBJS)\tex2rtf_gui_tex2rtf.o \
49 $(OBJS)\tex2rtf_gui_tex2any.o \
50 $(OBJS)\tex2rtf_gui_texutils.o \
51 $(OBJS)\tex2rtf_gui_rtfutils.o \
52 $(OBJS)\tex2rtf_gui_xlputils.o \
53 $(OBJS)\tex2rtf_gui_htmlutil.o \
54 $(OBJS)\tex2rtf_gui_readshg.o \
55 $(OBJS)\tex2rtf_gui_table.o
f98da3fb
VS
56
57### Conditionally set variables: ###
58
59ifeq ($(GCC_VERSION),2.95)
60GCCFLAGS = -fvtable-thunks
61endif
62ifeq ($(USE_GUI),0)
63PORTNAME = base
64endif
65ifeq ($(USE_GUI),1)
66PORTNAME = msw
67endif
68ifeq ($(BUILD),debug)
69ifeq ($(DEBUG_FLAG),default)
70WXDEBUGFLAG = d
71endif
72endif
73ifeq ($(DEBUG_FLAG),1)
74WXDEBUGFLAG = d
75endif
f98da3fb
VS
76ifeq ($(UNICODE),1)
77WXUNICODEFLAG = u
78endif
79ifeq ($(WXUNIV),1)
80WXUNIVNAME = univ
81endif
b17c1746
DE
82ifeq ($(SHARED),1)
83WXDLLFLAG = dll
f98da3fb 84endif
162a956b
JS
85ifeq ($(SHARED),0)
86LIBTYPE_SUFFIX = lib
87endif
88ifeq ($(SHARED),1)
89LIBTYPE_SUFFIX = dll
90endif
dd65d8c8
RN
91ifeq ($(MONOLITHIC),0)
92EXTRALIBS_FOR_BASE =
93endif
94ifeq ($(MONOLITHIC),1)
95EXTRALIBS_FOR_BASE =
96endif
b17c1746
DE
97ifeq ($(USE_GUI),1)
98__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
f98da3fb 99endif
b17c1746
DE
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
f98da3fb
VS
102endif
103ifeq ($(BUILD),debug)
104ifeq ($(DEBUG_FLAG),default)
105__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
106endif
107endif
108ifeq ($(DEBUG_FLAG),1)
109__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
110endif
8c9f8f91
JS
111ifeq ($(USE_EXCEPTIONS),0)
112__EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
113endif
114ifeq ($(USE_RTTI),0)
115__RTTI_DEFINE_p_3 = --define wxNO_RTTI
116endif
117ifeq ($(USE_THREADS),0)
118__THREAD_DEFINE_p_3 = --define wxNO_THREADS
119endif
7379e476
VZ
120ifeq ($(UNICODE),0)
121__UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
122endif
b17c1746
DE
123ifeq ($(UNICODE),1)
124__UNICODE_DEFINE_p_3 = --define _UNICODE
f98da3fb 125endif
2113bc77
MW
126ifeq ($(MSLU),1)
127__MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
128endif
3abcf424
RD
129ifeq ($(USE_GDIPLUS),1)
130__GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
131endif
f98da3fb
VS
132ifeq ($(SHARED),1)
133__DLLFLAG_p_3 = --define WXUSINGDLL
134endif
b17c1746 135ifeq ($(MONOLITHIC),0)
5259a417 136__WXLIB_HTML_p = \
c33fae85 137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
5259a417
RL
138endif
139ifeq ($(MONOLITHIC),0)
b17c1746 140__WXLIB_CORE_p = \
c33fae85 141 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746 142endif
3b2cb431
JS
143ifeq ($(USE_GUI),1)
144__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
145endif
146ifeq ($(USE_GUI),1)
147__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
148endif
149ifeq ($(USE_GUI),1)
150__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
151endif
b17c1746
DE
152ifeq ($(BUILD),debug)
153__OPTIMIZEFLAG = -O0
154endif
155ifeq ($(BUILD),release)
156__OPTIMIZEFLAG = -O2
157endif
8c9f8f91
JS
158ifeq ($(USE_RTTI),0)
159__RTTIFLAG = -fno-rtti
a4ad36cd 160endif
8c9f8f91
JS
161ifeq ($(USE_RTTI),1)
162__RTTIFLAG =
a4ad36cd
VS
163endif
164ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 165__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
166endif
167ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 168__EXCEPTIONSFLAG =
a4ad36cd 169endif
b17c1746
DE
170ifeq ($(WXUNIV),1)
171__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
f98da3fb
VS
172endif
173ifeq ($(BUILD),debug)
b17c1746
DE
174ifeq ($(DEBUG_FLAG),default)
175__DEBUG_DEFINE_p = -D__WXDEBUG__
f98da3fb 176endif
f98da3fb 177endif
b17c1746
DE
178ifeq ($(DEBUG_FLAG),1)
179__DEBUG_DEFINE_p = -D__WXDEBUG__
f98da3fb 180endif
8c9f8f91
JS
181ifeq ($(USE_EXCEPTIONS),0)
182__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
183endif
184ifeq ($(USE_RTTI),0)
185__RTTI_DEFINE_p = -DwxNO_RTTI
186endif
187ifeq ($(USE_THREADS),0)
188__THREAD_DEFINE_p = -DwxNO_THREADS
189endif
7379e476
VZ
190ifeq ($(UNICODE),0)
191__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
192endif
f98da3fb 193ifeq ($(UNICODE),1)
b17c1746 194__UNICODE_DEFINE_p = -D_UNICODE
f98da3fb 195endif
2113bc77
MW
196ifeq ($(MSLU),1)
197__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
198endif
3abcf424
RD
199ifeq ($(USE_GDIPLUS),1)
200__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
201endif
b17c1746
DE
202ifeq ($(SHARED),1)
203__DLLFLAG_p = -DWXUSINGDLL
f98da3fb
VS
204endif
205ifeq ($(MONOLITHIC),0)
c33fae85
RN
206__WXLIB_BASE_p = \
207 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f98da3fb
VS
208endif
209ifeq ($(MONOLITHIC),1)
210__WXLIB_MONO_p = \
c33fae85 211 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f98da3fb 212endif
b17c1746
DE
213ifeq ($(MSLU),1)
214__UNICOWS_LIB_p = -lunicows
215endif
3abcf424
RD
216ifeq ($(USE_GDIPLUS),1)
217__GDIPLUS_LIB_p = -lgdiplus
218endif
b17c1746
DE
219ifeq ($(BUILD),debug)
220ifeq ($(DEBUG_INFO),default)
221__DEBUGINFO = -g
222endif
223endif
224ifeq ($(BUILD),release)
225ifeq ($(DEBUG_INFO),default)
226__DEBUGINFO =
227endif
228endif
229ifeq ($(DEBUG_INFO),0)
230__DEBUGINFO =
231endif
232ifeq ($(DEBUG_INFO),1)
233__DEBUGINFO = -g
8be1c2c5 234endif
8c9f8f91
JS
235ifeq ($(USE_THREADS),0)
236__THREADSFLAG =
237endif
238ifeq ($(USE_THREADS),1)
239__THREADSFLAG = -mthreads
240endif
f98da3fb
VS
241
242
243all: $(OBJS)
244$(OBJS):
245 -if not exist $(OBJS) mkdir $(OBJS)
246
247### Targets: ###
248
8be1c2c5 249all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
f98da3fb 250
b17c1746
DE
251clean:
252 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 253 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
254 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
255 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
f98da3fb 256
b17c1746 257$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
7379e476 258 $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
f98da3fb 259
b17c1746
DE
260ifeq ($(USE_GUI),1)
261$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
7379e476 262 $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
b17c1746 263endif
f98da3fb 264
b17c1746 265$(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
0d90d6ea 266 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 267
b17c1746 268$(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
0d90d6ea 269 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 270
b17c1746 271$(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
0d90d6ea 272 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 273
b17c1746 274$(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
0d90d6ea 275 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 276
b17c1746 277$(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
0d90d6ea 278 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 279
1c3a6972 280$(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
0d90d6ea 281 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 282
1c3a6972 283$(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
0d90d6ea 284 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 285
1c3a6972 286$(OBJS)\tex2rtf_table.o: ./table.cpp
0d90d6ea 287 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 288
b17c1746 289$(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
7379e476 290 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples --define NOPCH
f98da3fb 291
b17c1746 292$(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
0d90d6ea 293 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 294
b17c1746 295$(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
0d90d6ea 296 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 297
b17c1746 298$(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
0d90d6ea 299 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 300
b17c1746 301$(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
0d90d6ea 302 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 303
b17c1746 304$(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
0d90d6ea 305 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
f98da3fb 306
b17c1746 307$(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
0d90d6ea 308 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
309
310$(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
0d90d6ea 311 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
312
313$(OBJS)\tex2rtf_gui_table.o: ./table.cpp
0d90d6ea 314 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
f98da3fb
VS
315
316.PHONY: all clean
162a956b 317
8c9f8f91 318
6e0fbb3d
VS
319SHELL := $(COMSPEC)
320
0d90d6ea
JS
321# Dependencies tracking:
322-include $(OBJS)/*.d