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