]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/src/makefile.gcc
regenerated makefiles
[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) \
75a0a7b7
VS
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
22 -DNO_GUI $(CXXFLAGS)
f98da3fb
VS
23TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7
VS
25 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
26 -I.\..\..\..\samples $(CXXFLAGS)
f98da3fb
VS
27TEX2RTF_GUI_OBJECTS = \
28 $(OBJS)\tex2rtf_gui_sample_rc.o \
29 $(OBJS)\tex2rtf_gui_tex2rtf.o \
30 $(OBJS)\tex2rtf_gui_tex2any.o \
31 $(OBJS)\tex2rtf_gui_texutils.o \
32 $(OBJS)\tex2rtf_gui_rtfutils.o \
33 $(OBJS)\tex2rtf_gui_xlputils.o \
34 $(OBJS)\tex2rtf_gui_htmlutil.o \
35 $(OBJS)\tex2rtf_gui_readshg.o \
36 $(OBJS)\tex2rtf_gui_table.o
37TEX2RTF_OBJECTS = \
38 $(OBJS)\tex2rtf_tex2rtf.o \
39 $(OBJS)\tex2rtf_tex2any.o \
40 $(OBJS)\tex2rtf_texutils.o \
41 $(OBJS)\tex2rtf_rtfutils.o \
42 $(OBJS)\tex2rtf_xlputils.o \
43 $(OBJS)\tex2rtf_htmlutil.o \
44 $(OBJS)\tex2rtf_readshg.o \
45 $(OBJS)\tex2rtf_table.o
46
47### Conditionally set variables: ###
48
49ifeq ($(GCC_VERSION),2.95)
50GCCFLAGS = -fvtable-thunks
51endif
75a0a7b7
VS
52ifeq ($(SHARED),0)
53LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
54endif
55ifeq ($(SHARED),1)
56LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
57endif
f98da3fb
VS
58ifeq ($(USE_GUI),0)
59PORTNAME = base
60endif
61ifeq ($(USE_GUI),1)
62PORTNAME = msw
63endif
64ifeq ($(BUILD),debug)
65ifeq ($(DEBUG_FLAG),default)
66WXDEBUGFLAG = d
67endif
68endif
69ifeq ($(DEBUG_FLAG),1)
70WXDEBUGFLAG = d
71endif
72ifeq ($(SHARED),1)
73WXDLLFLAG = dll
74endif
75ifeq ($(UNICODE),1)
76WXUNICODEFLAG = u
77endif
78ifeq ($(WXUNIV),1)
79WXUNIVNAME = univ
80endif
81ifeq ($(BUILD),debug)
82ifeq ($(DEBUG_INFO),default)
83__DEBUGINFO = -g
84endif
85endif
86ifeq ($(BUILD),release)
87ifeq ($(DEBUG_INFO),default)
88__DEBUGINFO =
89endif
90endif
91ifeq ($(DEBUG_INFO),0)
92__DEBUGINFO =
93endif
94ifeq ($(DEBUG_INFO),1)
95__DEBUGINFO = -g
96endif
97ifeq ($(BUILD),debug)
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
112endif
113ifeq ($(SHARED),1)
114__DLLFLAG_p = -DWXUSINGDLL
115endif
116ifeq ($(SHARED),1)
117__DLLFLAG_p_3 = --define WXUSINGDLL
118endif
119ifeq ($(USE_GUI),1)
120__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
121endif
122ifeq ($(USE_GUI),1)
123__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
124endif
125ifeq ($(USE_GUI),1)
126__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
127endif
128ifeq ($(BUILD),debug)
129__OPTIMIZEFLAG = -O0
130endif
131ifeq ($(BUILD),release)
132__OPTIMIZEFLAG = -O2
133endif
134ifeq ($(UNICODE),1)
135__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
136endif
137ifeq ($(UNICODE),1)
138__UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=1
139endif
140ifeq ($(MSLU),1)
141__UNICOWS_LIB_p = -lunicows
142endif
143ifeq ($(MONOLITHIC),0)
144__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
145endif
146ifeq ($(MONOLITHIC),0)
147__WXLIB_CORE_p = \
148 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
149endif
150ifeq ($(MONOLITHIC),0)
151__WXLIB_HTML_p = \
152 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
153endif
154ifeq ($(MONOLITHIC),1)
155__WXLIB_MONO_p = \
156 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
157endif
158ifeq ($(WXUNIV),1)
159__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160endif
161ifeq ($(WXUNIV),1)
162__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
163endif
164
165
166all: $(OBJS)
167$(OBJS):
168 -if not exist $(OBJS) mkdir $(OBJS)
169
170### Targets: ###
171
172all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
173
174$(OBJS)\tex2rtf_gui_htmlutil.o: .\htmlutil.cpp
175 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
176
177$(OBJS)\tex2rtf_gui_readshg.o: .\readshg.cpp
178 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
179
180$(OBJS)\tex2rtf_gui_rtfutils.o: .\rtfutils.cpp
181 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
182
183$(OBJS)\tex2rtf_gui_sample_rc.o: .\..\..\..\samples\sample.rc
75a0a7b7 184 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
VS
185
186$(OBJS)\tex2rtf_gui_table.o: .\table.cpp
187 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
188
189$(OBJS)\tex2rtf_gui_tex2any.o: .\tex2any.cpp
190 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
191
192$(OBJS)\tex2rtf_gui_tex2rtf.o: .\tex2rtf.cpp
193 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
194
195$(OBJS)\tex2rtf_gui_texutils.o: .\texutils.cpp
196 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
197
198$(OBJS)\tex2rtf_gui_xlputils.o: .\xlputils.cpp
199 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
200
201$(OBJS)\tex2rtf_htmlutil.o: .\htmlutil.cpp
202 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
203
204$(OBJS)\tex2rtf_readshg.o: .\readshg.cpp
205 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
206
207$(OBJS)\tex2rtf_rtfutils.o: .\rtfutils.cpp
208 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
209
210$(OBJS)\tex2rtf_table.o: .\table.cpp
211 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
212
213$(OBJS)\tex2rtf_tex2any.o: .\tex2any.cpp
214 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
215
216$(OBJS)\tex2rtf_tex2rtf.o: .\tex2rtf.cpp
217 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
218
219$(OBJS)\tex2rtf_texutils.o: .\texutils.cpp
220 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
221
222$(OBJS)\tex2rtf_xlputils.o: .\xlputils.cpp
223 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
224
225clean:
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
228 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
229
230$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
231 $(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
232
233$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
234 $(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
235
236.PHONY: all clean