]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
wxMac uses wxStandardPathsCF to mean wxStandardPaths in its wxBase
[wxWidgets.git] / samples / render / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
2d611b5c
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
c33fae85 15WX_RELEASE_NODOT = 25
ab921f5f 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
2d611b5c
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
21RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
c33fae85 24 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
25RENDER_OBJECTS = \
26 $(OBJS)\render_sample_rc.o \
27 $(OBJS)\render_render.o
b17c1746
DE
28RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
29 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 -I.\..\..\include -I$(SETUPHDIR) -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
31 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
32RENDDLL_OBJECTS = \
33 $(OBJS)\renddll_renddll.o
2d611b5c
VS
34
35### Conditionally set variables: ###
36
37ifeq ($(GCC_VERSION),2.95)
38GCCFLAGS = -fvtable-thunks
39endif
40ifeq ($(USE_GUI),0)
41PORTNAME = base
42endif
43ifeq ($(USE_GUI),1)
44PORTNAME = msw
45endif
46ifeq ($(BUILD),debug)
47ifeq ($(DEBUG_FLAG),default)
48WXDEBUGFLAG = d
49endif
50endif
51ifeq ($(DEBUG_FLAG),1)
52WXDEBUGFLAG = d
53endif
2d611b5c
VS
54ifeq ($(UNICODE),1)
55WXUNICODEFLAG = u
56endif
57ifeq ($(WXUNIV),1)
58WXUNIVNAME = univ
59endif
b17c1746
DE
60ifeq ($(SHARED),1)
61WXDLLFLAG = dll
2d611b5c 62endif
dd65d8c8
RN
63ifeq ($(MONOLITHIC),0)
64EXTRALIBS_FOR_BASE =
65endif
66ifeq ($(MONOLITHIC),1)
67EXTRALIBS_FOR_BASE =
68endif
078c7a59
VS
69ifeq ($(BUILD),debug)
70ifeq ($(UNICODE),0)
314a6446 71PLUGINSUFFIX = d
078c7a59
VS
72endif
73endif
74ifeq ($(BUILD),debug)
75ifeq ($(UNICODE),1)
314a6446 76PLUGINSUFFIX = ud
078c7a59
VS
77endif
78endif
79ifeq ($(BUILD),release)
80ifeq ($(UNICODE),0)
81PLUGINSUFFIX =
82endif
83endif
84ifeq ($(BUILD),release)
85ifeq ($(UNICODE),1)
314a6446 86PLUGINSUFFIX = u
078c7a59
VS
87endif
88endif
b17c1746
DE
89ifeq ($(WXUNIV),1)
90__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
91endif
92ifeq ($(BUILD),debug)
93ifeq ($(DEBUG_FLAG),default)
94__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
95endif
96endif
97ifeq ($(DEBUG_FLAG),1)
98__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
99endif
b17c1746
DE
100ifeq ($(UNICODE),1)
101__UNICODE_DEFINE_p_1 = --define _UNICODE
102endif
2d611b5c
VS
103ifeq ($(SHARED),1)
104__DLLFLAG_p = -DWXUSINGDLL
105endif
106ifeq ($(SHARED),1)
107__DLLFLAG_p_1 = --define WXUSINGDLL
108endif
b17c1746
DE
109ifeq ($(SHARED),1)
110__renddll___depname = \
c33fae85 111 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
b17c1746
DE
112endif
113ifeq ($(BUILD),debug)
114__OPTIMIZEFLAG = -O0
115endif
116ifeq ($(BUILD),release)
117__OPTIMIZEFLAG = -O2
118endif
b71531ad 119ifeq ($(USE_EXCEPTIONS),0)
b17c1746 120__EXCEPTIONSFLAG = -fno-rtti
b71531ad
VZ
121endif
122ifeq ($(USE_EXCEPTIONS),1)
123__EXCEPTIONSFLAG =
124endif
125ifeq ($(USE_EXCEPTIONS),0)
b17c1746 126__EXCEPTIONSFLAG_0 = -fno-exceptions
b71531ad
VZ
127endif
128ifeq ($(USE_EXCEPTIONS),1)
129__EXCEPTIONSFLAG_0 =
130endif
b17c1746
DE
131ifeq ($(WXUNIV),1)
132__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2d611b5c
VS
133endif
134ifeq ($(BUILD),debug)
b17c1746
DE
135ifeq ($(DEBUG_FLAG),default)
136__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 137endif
2d611b5c 138endif
b17c1746
DE
139ifeq ($(DEBUG_FLAG),1)
140__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c
VS
141endif
142ifeq ($(UNICODE),1)
b17c1746 143__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 144endif
b17c1746
DE
145ifeq ($(SHARED),0)
146LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
2c02ec05 147endif
b17c1746
DE
148ifeq ($(SHARED),1)
149LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
2d611b5c
VS
150endif
151ifeq ($(MONOLITHIC),0)
152__WXLIB_CORE_p = \
c33fae85 153 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
2d611b5c 154endif
b17c1746 155ifeq ($(MONOLITHIC),0)
c33fae85
RN
156__WXLIB_BASE_p = \
157 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746 158endif
2d611b5c
VS
159ifeq ($(MONOLITHIC),1)
160__WXLIB_MONO_p = \
c33fae85 161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 162endif
b17c1746 163ifeq ($(USE_GUI),1)
9c2d002b 164__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 165endif
b17c1746 166ifeq ($(USE_GUI),1)
9c2d002b 167__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 168endif
b17c1746 169ifeq ($(USE_GUI),1)
9c2d002b 170__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
171endif
172ifeq ($(MSLU),1)
173__UNICOWS_LIB_p = -lunicows
174endif
175ifeq ($(BUILD),debug)
176ifeq ($(DEBUG_INFO),default)
177__DEBUGINFO = -g
178endif
179endif
180ifeq ($(BUILD),release)
181ifeq ($(DEBUG_INFO),default)
182__DEBUGINFO =
183endif
184endif
185ifeq ($(DEBUG_INFO),0)
186__DEBUGINFO =
187endif
188ifeq ($(DEBUG_INFO),1)
189__DEBUGINFO = -g
2d611b5c
VS
190endif
191
2d611b5c
VS
192
193all: $(OBJS)
194$(OBJS):
195 -if not exist $(OBJS) mkdir $(OBJS)
196
197### Targets: ###
198
199all: $(OBJS)\render.exe $(__renddll___depname)
200
2d611b5c
VS
201clean:
202 -if exist $(OBJS)\*.o del $(OBJS)\*.o
203 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
c33fae85 204 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
2d611b5c 205
b17c1746 206$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
dd65d8c8 207 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 208
2d611b5c 209ifeq ($(SHARED),1)
c33fae85 210$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
dd65d8c8 211 $(CXX) -shared -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__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
2d611b5c
VS
212endif
213
b17c1746
DE
214$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
215 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
216
217$(OBJS)\render_render.o: ./render.cpp
218 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
219
220$(OBJS)\renddll_renddll.o: ./renddll.cpp
221 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<
2d611b5c
VS
222
223.PHONY: all clean