]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrcedit/makefile.gcc
use default position, not 0, 0
[wxWidgets.git] / contrib / utils / wxrcedit / makefile.gcc
CommitLineData
40ff4100
JS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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)
b14abf14 18LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
40ff4100
JS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21WXRCEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
25 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
26 -I.\..\..\include $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
40ff4100
JS
28WXRCEDIT_OBJECTS = \
29 $(OBJS)\wxrcedit_edapp.o \
30 $(OBJS)\wxrcedit_editor.o \
31 $(OBJS)\wxrcedit_nodehnd.o \
32 $(OBJS)\wxrcedit_nodesdb.o \
33 $(OBJS)\wxrcedit_pe_adv.o \
34 $(OBJS)\wxrcedit_pe_basic.o \
35 $(OBJS)\wxrcedit_preview.o \
36 $(OBJS)\wxrcedit_propedit.o \
37 $(OBJS)\wxrcedit_propframe.o \
38 $(OBJS)\wxrcedit_splittree.o \
39 $(OBJS)\wxrcedit_xmlhelpr.o \
40 $(OBJS)\wxrcedit_wxrcedit_rc.o
41
42### Conditionally set variables: ###
43
44ifeq ($(GCC_VERSION),2.95)
45GCCFLAGS = -fvtable-thunks
46endif
40ff4100
JS
47ifeq ($(USE_GUI),0)
48PORTNAME = base
49endif
50ifeq ($(USE_GUI),1)
51PORTNAME = msw
52endif
53ifeq ($(BUILD),debug)
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
59WXDEBUGFLAG = d
60endif
40ff4100
JS
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
b17c1746
DE
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
40ff4100 69endif
b14abf14
JS
70ifeq ($(SHARED),0)
71LIBTYPE_SUFFIX = lib
72endif
73ifeq ($(SHARED),1)
74LIBTYPE_SUFFIX = dll
75endif
dd65d8c8
RN
76ifeq ($(MONOLITHIC),0)
77EXTRALIBS_FOR_BASE =
78endif
79ifeq ($(MONOLITHIC),1)
80EXTRALIBS_FOR_BASE =
81endif
b17c1746
DE
82ifeq ($(BUILD),debug)
83__OPTIMIZEFLAG_2 = -O0
40ff4100
JS
84endif
85ifeq ($(BUILD),release)
b17c1746 86__OPTIMIZEFLAG_2 = -O2
40ff4100 87endif
8c9f8f91
JS
88ifeq ($(USE_RTTI),0)
89__RTTIFLAG_5 = -fno-rtti
40ff4100 90endif
8c9f8f91
JS
91ifeq ($(USE_RTTI),1)
92__RTTIFLAG_5 =
40ff4100 93endif
b17c1746 94ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 95__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
96endif
97ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 98__EXCEPTIONSFLAG_6 =
b17c1746
DE
99endif
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
40ff4100
JS
105endif
106ifeq ($(BUILD),debug)
107ifeq ($(DEBUG_FLAG),default)
108__DEBUG_DEFINE_p = -D__WXDEBUG__
109endif
110endif
111ifeq ($(DEBUG_FLAG),1)
112__DEBUG_DEFINE_p = -D__WXDEBUG__
113endif
114ifeq ($(BUILD),debug)
115ifeq ($(DEBUG_FLAG),default)
116__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117endif
118endif
119ifeq ($(DEBUG_FLAG),1)
120__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121endif
8c9f8f91
JS
122ifeq ($(USE_EXCEPTIONS),0)
123__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
124endif
125ifeq ($(USE_EXCEPTIONS),0)
126__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
127endif
128ifeq ($(USE_RTTI),0)
129__RTTI_DEFINE_p = -DwxNO_RTTI
130endif
131ifeq ($(USE_RTTI),0)
132__RTTI_DEFINE_p_1 = --define wxNO_RTTI
133endif
134ifeq ($(USE_THREADS),0)
135__THREAD_DEFINE_p = -DwxNO_THREADS
136endif
137ifeq ($(USE_THREADS),0)
138__THREAD_DEFINE_p_1 = --define wxNO_THREADS
139endif
b17c1746
DE
140ifeq ($(UNICODE),1)
141__UNICODE_DEFINE_p = -D_UNICODE
142endif
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p_1 = --define _UNICODE
145endif
40ff4100
JS
146ifeq ($(SHARED),1)
147__DLLFLAG_p = -DWXUSINGDLL
148endif
149ifeq ($(SHARED),1)
150__DLLFLAG_p_1 = --define WXUSINGDLL
151endif
b17c1746 152ifeq ($(MONOLITHIC),0)
c33fae85
RN
153__WXLIB_XRC_p = \
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc
155endif
156ifeq ($(MONOLITHIC),0)
b17c1746 157__WXLIB_ADV_p = \
c33fae85 158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 159endif
b17c1746
DE
160ifeq ($(MONOLITHIC),0)
161__WXLIB_HTML_p = \
c33fae85 162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 163endif
b17c1746
DE
164ifeq ($(MONOLITHIC),0)
165__WXLIB_CORE_p = \
c33fae85 166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 167endif
b17c1746 168ifeq ($(MONOLITHIC),0)
c33fae85
RN
169__WXLIB_XML_p = \
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 171endif
b17c1746 172ifeq ($(MONOLITHIC),0)
c33fae85
RN
173__WXLIB_BASE_p = \
174 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
40ff4100 175endif
b17c1746
DE
176ifeq ($(MONOLITHIC),1)
177__WXLIB_MONO_p = \
c33fae85 178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
40ff4100
JS
179endif
180ifeq ($(USE_GUI),1)
9c2d002b 181__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
40ff4100 182endif
b17c1746 183ifeq ($(USE_GUI),1)
9c2d002b 184__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
40ff4100 185endif
b17c1746 186ifeq ($(USE_GUI),1)
9c2d002b 187__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
40ff4100
JS
188endif
189ifeq ($(MSLU),1)
190__UNICOWS_LIB_p = -lunicows
191endif
b17c1746
DE
192ifeq ($(BUILD),debug)
193ifeq ($(DEBUG_INFO),default)
194__DEBUGINFO = -g
40ff4100 195endif
40ff4100 196endif
b17c1746
DE
197ifeq ($(BUILD),release)
198ifeq ($(DEBUG_INFO),default)
199__DEBUGINFO =
40ff4100 200endif
40ff4100 201endif
b17c1746
DE
202ifeq ($(DEBUG_INFO),0)
203__DEBUGINFO =
40ff4100 204endif
b17c1746
DE
205ifeq ($(DEBUG_INFO),1)
206__DEBUGINFO = -g
40ff4100 207endif
8c9f8f91
JS
208ifeq ($(USE_THREADS),0)
209__THREADSFLAG =
210endif
211ifeq ($(USE_THREADS),1)
212__THREADSFLAG = -mthreads
213endif
40ff4100
JS
214
215
216all: $(OBJS)
217$(OBJS):
218 -if not exist $(OBJS) mkdir $(OBJS)
219
220### Targets: ###
221
222all: $(OBJS)\wxrcedit.exe
223
b17c1746
DE
224clean:
225 -if exist $(OBJS)\*.o del $(OBJS)\*.o
226 -if exist $(OBJS)\wxrcedit.exe del $(OBJS)\wxrcedit.exe
227
228$(OBJS)\wxrcedit.exe: $(WXRCEDIT_OBJECTS) $(OBJS)\wxrcedit_wxrcedit_rc.o
8c9f8f91 229 $(CXX) -o $@ $(WXRCEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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) -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 230
40ff4100
JS
231$(OBJS)\wxrcedit_edapp.o: ./edapp.cpp
232 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
233
234$(OBJS)\wxrcedit_editor.o: ./editor.cpp
235 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
236
237$(OBJS)\wxrcedit_nodehnd.o: ./nodehnd.cpp
238 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
239
240$(OBJS)\wxrcedit_nodesdb.o: ./nodesdb.cpp
241 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
242
243$(OBJS)\wxrcedit_pe_adv.o: ./pe_adv.cpp
244 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
245
246$(OBJS)\wxrcedit_pe_basic.o: ./pe_basic.cpp
247 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
248
249$(OBJS)\wxrcedit_preview.o: ./preview.cpp
250 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
251
252$(OBJS)\wxrcedit_propedit.o: ./propedit.cpp
253 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
254
255$(OBJS)\wxrcedit_propframe.o: ./propframe.cpp
256 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
257
258$(OBJS)\wxrcedit_splittree.o: ./splittree.cpp
259 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
260
40ff4100
JS
261$(OBJS)\wxrcedit_xmlhelpr.o: ./xmlhelpr.cpp
262 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
263
b17c1746 264$(OBJS)\wxrcedit_wxrcedit_rc.o: ./wxrcedit.rc
8c9f8f91 265 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_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
266
267.PHONY: all clean
b14abf14 268
8c9f8f91 269