]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrcedit/makefile.gcc
Added script to bake everthing (OK, so it's trivial...)
[wxWidgets.git] / contrib / utils / wxrcedit / makefile.gcc
CommitLineData
40ff4100
JS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
40ff4100
JS
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
40ff4100
JS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 20WXRCEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
40ff4100
JS
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85
RN
23 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
24 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
40ff4100
JS
25WXRCEDIT_OBJECTS = \
26 $(OBJS)\wxrcedit_edapp.o \
27 $(OBJS)\wxrcedit_editor.o \
28 $(OBJS)\wxrcedit_nodehnd.o \
29 $(OBJS)\wxrcedit_nodesdb.o \
30 $(OBJS)\wxrcedit_pe_adv.o \
31 $(OBJS)\wxrcedit_pe_basic.o \
32 $(OBJS)\wxrcedit_preview.o \
33 $(OBJS)\wxrcedit_propedit.o \
34 $(OBJS)\wxrcedit_propframe.o \
35 $(OBJS)\wxrcedit_splittree.o \
36 $(OBJS)\wxrcedit_xmlhelpr.o \
37 $(OBJS)\wxrcedit_wxrcedit_rc.o
38
39### Conditionally set variables: ###
40
41ifeq ($(GCC_VERSION),2.95)
42GCCFLAGS = -fvtable-thunks
43endif
40ff4100
JS
44ifeq ($(USE_GUI),0)
45PORTNAME = base
46endif
47ifeq ($(USE_GUI),1)
48PORTNAME = msw
49endif
50ifeq ($(BUILD),debug)
51ifeq ($(DEBUG_FLAG),default)
52WXDEBUGFLAG = d
53endif
54endif
55ifeq ($(DEBUG_FLAG),1)
56WXDEBUGFLAG = d
57endif
40ff4100
JS
58ifeq ($(UNICODE),1)
59WXUNICODEFLAG = u
60endif
61ifeq ($(WXUNIV),1)
62WXUNIVNAME = univ
63endif
b17c1746
DE
64ifeq ($(SHARED),1)
65WXDLLFLAG = dll
40ff4100 66endif
b17c1746
DE
67ifeq ($(BUILD),debug)
68__OPTIMIZEFLAG_2 = -O0
40ff4100
JS
69endif
70ifeq ($(BUILD),release)
b17c1746 71__OPTIMIZEFLAG_2 = -O2
40ff4100 72endif
b17c1746
DE
73ifeq ($(USE_EXCEPTIONS),0)
74__EXCEPTIONSFLAG_4 = -fno-rtti
40ff4100 75endif
b17c1746
DE
76ifeq ($(USE_EXCEPTIONS),1)
77__EXCEPTIONSFLAG_4 =
40ff4100 78endif
b17c1746
DE
79ifeq ($(USE_EXCEPTIONS),0)
80__EXCEPTIONSFLAG_5 = -fno-exceptions
81endif
82ifeq ($(USE_EXCEPTIONS),1)
83__EXCEPTIONSFLAG_5 =
84endif
85ifeq ($(WXUNIV),1)
86__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
40ff4100
JS
90endif
91ifeq ($(BUILD),debug)
92ifeq ($(DEBUG_FLAG),default)
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95endif
96ifeq ($(DEBUG_FLAG),1)
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98endif
99ifeq ($(BUILD),debug)
100ifeq ($(DEBUG_FLAG),default)
101__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102endif
103endif
104ifeq ($(DEBUG_FLAG),1)
105__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106endif
b17c1746
DE
107ifeq ($(UNICODE),1)
108__UNICODE_DEFINE_p = -D_UNICODE
109endif
110ifeq ($(UNICODE),1)
111__UNICODE_DEFINE_p_1 = --define _UNICODE
112endif
40ff4100
JS
113ifeq ($(SHARED),1)
114__DLLFLAG_p = -DWXUSINGDLL
115endif
116ifeq ($(SHARED),1)
117__DLLFLAG_p_1 = --define WXUSINGDLL
118endif
b17c1746 119ifeq ($(MONOLITHIC),0)
c33fae85
RN
120__WXLIB_XRC_p = \
121 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc
122endif
123ifeq ($(MONOLITHIC),0)
b17c1746 124__WXLIB_ADV_p = \
c33fae85 125 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 126endif
b17c1746
DE
127ifeq ($(MONOLITHIC),0)
128__WXLIB_HTML_p = \
c33fae85 129 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 130endif
b17c1746
DE
131ifeq ($(MONOLITHIC),0)
132__WXLIB_CORE_p = \
c33fae85 133 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 134endif
b17c1746 135ifeq ($(MONOLITHIC),0)
c33fae85
RN
136__WXLIB_XML_p = \
137 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 138endif
b17c1746 139ifeq ($(MONOLITHIC),0)
c33fae85
RN
140__WXLIB_BASE_p = \
141 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
40ff4100 142endif
b17c1746
DE
143ifeq ($(MONOLITHIC),1)
144__WXLIB_MONO_p = \
c33fae85 145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
40ff4100
JS
146endif
147ifeq ($(USE_GUI),1)
c33fae85 148__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
40ff4100 149endif
b17c1746 150ifeq ($(USE_GUI),1)
c33fae85 151__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
40ff4100 152endif
b17c1746 153ifeq ($(USE_GUI),1)
c33fae85 154__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
40ff4100
JS
155endif
156ifeq ($(MSLU),1)
157__UNICOWS_LIB_p = -lunicows
158endif
b17c1746
DE
159ifeq ($(SHARED),0)
160LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
40ff4100 161endif
b17c1746
DE
162ifeq ($(SHARED),1)
163LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
40ff4100 164endif
b17c1746
DE
165ifeq ($(BUILD),debug)
166ifeq ($(DEBUG_INFO),default)
167__DEBUGINFO = -g
40ff4100 168endif
40ff4100 169endif
b17c1746
DE
170ifeq ($(BUILD),release)
171ifeq ($(DEBUG_INFO),default)
172__DEBUGINFO =
40ff4100 173endif
40ff4100 174endif
b17c1746
DE
175ifeq ($(DEBUG_INFO),0)
176__DEBUGINFO =
40ff4100 177endif
b17c1746
DE
178ifeq ($(DEBUG_INFO),1)
179__DEBUGINFO = -g
40ff4100
JS
180endif
181
182
183all: $(OBJS)
184$(OBJS):
185 -if not exist $(OBJS) mkdir $(OBJS)
186
187### Targets: ###
188
189all: $(OBJS)\wxrcedit.exe
190
b17c1746
DE
191clean:
192 -if exist $(OBJS)\*.o del $(OBJS)\*.o
193 -if exist $(OBJS)\wxrcedit.exe del $(OBJS)\wxrcedit.exe
194
195$(OBJS)\wxrcedit.exe: $(WXRCEDIT_OBJECTS) $(OBJS)\wxrcedit_wxrcedit_rc.o
c33fae85 196 $(CXX) -o $@ $(WXRCEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XRC_p) $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746 197
40ff4100
JS
198$(OBJS)\wxrcedit_edapp.o: ./edapp.cpp
199 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
200
201$(OBJS)\wxrcedit_editor.o: ./editor.cpp
202 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
203
204$(OBJS)\wxrcedit_nodehnd.o: ./nodehnd.cpp
205 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
206
207$(OBJS)\wxrcedit_nodesdb.o: ./nodesdb.cpp
208 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
209
210$(OBJS)\wxrcedit_pe_adv.o: ./pe_adv.cpp
211 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
212
213$(OBJS)\wxrcedit_pe_basic.o: ./pe_basic.cpp
214 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
215
216$(OBJS)\wxrcedit_preview.o: ./preview.cpp
217 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
218
219$(OBJS)\wxrcedit_propedit.o: ./propedit.cpp
220 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
221
222$(OBJS)\wxrcedit_propframe.o: ./propframe.cpp
223 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
224
225$(OBJS)\wxrcedit_splittree.o: ./splittree.cpp
226 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
227
40ff4100
JS
228$(OBJS)\wxrcedit_xmlhelpr.o: ./xmlhelpr.cpp
229 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
230
b17c1746 231$(OBJS)\wxrcedit_wxrcedit_rc.o: ./wxrcedit.rc
c33fae85 232 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include
40ff4100
JS
233
234.PHONY: all clean