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