]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
regenerated after undoing recent HP-UX changes
[wxWidgets.git] / samples / render / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
2d611b5c
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
2113bc77
MW
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W \
26 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
28RENDER_OBJECTS = \
29 $(OBJS)\render_sample_rc.o \
30 $(OBJS)\render_render.o
8c9f8f91
JS
31RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
32 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77
MW
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
35 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
36 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
37RENDDLL_OBJECTS = \
38 $(OBJS)\renddll_renddll.o
2d611b5c
VS
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
57WXDEBUGFLAG = d
58endif
2d611b5c
VS
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
b17c1746
DE
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
2d611b5c 67endif
b14abf14
JS
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
dd65d8c8
RN
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
078c7a59
VS
80ifeq ($(BUILD),debug)
81ifeq ($(UNICODE),0)
314a6446 82PLUGINSUFFIX = d
078c7a59
VS
83endif
84endif
85ifeq ($(BUILD),debug)
86ifeq ($(UNICODE),1)
314a6446 87PLUGINSUFFIX = ud
078c7a59
VS
88endif
89endif
90ifeq ($(BUILD),release)
91ifeq ($(UNICODE),0)
92PLUGINSUFFIX =
93endif
94endif
95ifeq ($(BUILD),release)
96ifeq ($(UNICODE),1)
314a6446 97PLUGINSUFFIX = u
078c7a59
VS
98endif
99endif
b17c1746
DE
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
102endif
103ifeq ($(BUILD),debug)
104ifeq ($(DEBUG_FLAG),default)
105__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106endif
107endif
108ifeq ($(DEBUG_FLAG),1)
109__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110endif
8c9f8f91
JS
111ifeq ($(USE_EXCEPTIONS),0)
112__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
113endif
114ifeq ($(USE_RTTI),0)
115__RTTI_DEFINE_p_1 = --define wxNO_RTTI
116endif
117ifeq ($(USE_THREADS),0)
118__THREAD_DEFINE_p_1 = --define wxNO_THREADS
119endif
b17c1746
DE
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p_1 = --define _UNICODE
122endif
2113bc77
MW
123ifeq ($(MSLU),1)
124__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
125endif
2d611b5c
VS
126ifeq ($(SHARED),1)
127__DLLFLAG_p = -DWXUSINGDLL
128endif
129ifeq ($(SHARED),1)
130__DLLFLAG_p_1 = --define WXUSINGDLL
131endif
b17c1746
DE
132ifeq ($(SHARED),1)
133__renddll___depname = \
4818141b 134 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
b17c1746
DE
135endif
136ifeq ($(BUILD),debug)
137__OPTIMIZEFLAG = -O0
138endif
139ifeq ($(BUILD),release)
140__OPTIMIZEFLAG = -O2
141endif
8c9f8f91
JS
142ifeq ($(USE_RTTI),0)
143__RTTIFLAG = -fno-rtti
b71531ad 144endif
8c9f8f91
JS
145ifeq ($(USE_RTTI),1)
146__RTTIFLAG =
b71531ad
VZ
147endif
148ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 149__EXCEPTIONSFLAG = -fno-exceptions
b71531ad
VZ
150endif
151ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 152__EXCEPTIONSFLAG =
b71531ad 153endif
b17c1746
DE
154ifeq ($(WXUNIV),1)
155__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2d611b5c
VS
156endif
157ifeq ($(BUILD),debug)
b17c1746
DE
158ifeq ($(DEBUG_FLAG),default)
159__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 160endif
2d611b5c 161endif
b17c1746
DE
162ifeq ($(DEBUG_FLAG),1)
163__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 164endif
8c9f8f91
JS
165ifeq ($(USE_EXCEPTIONS),0)
166__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
167endif
168ifeq ($(USE_RTTI),0)
169__RTTI_DEFINE_p = -DwxNO_RTTI
170endif
171ifeq ($(USE_THREADS),0)
172__THREAD_DEFINE_p = -DwxNO_THREADS
173endif
2d611b5c 174ifeq ($(UNICODE),1)
b17c1746 175__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 176endif
2113bc77
MW
177ifeq ($(MSLU),1)
178__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
179endif
2d611b5c
VS
180ifeq ($(MONOLITHIC),0)
181__WXLIB_CORE_p = \
c33fae85 182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
2d611b5c 183endif
b17c1746 184ifeq ($(MONOLITHIC),0)
c33fae85
RN
185__WXLIB_BASE_p = \
186 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746 187endif
2d611b5c
VS
188ifeq ($(MONOLITHIC),1)
189__WXLIB_MONO_p = \
c33fae85 190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 191endif
b17c1746 192ifeq ($(USE_GUI),1)
9c2d002b 193__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 194endif
b17c1746 195ifeq ($(USE_GUI),1)
9c2d002b 196__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 197endif
b17c1746 198ifeq ($(USE_GUI),1)
9c2d002b 199__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
200endif
201ifeq ($(MSLU),1)
202__UNICOWS_LIB_p = -lunicows
203endif
204ifeq ($(BUILD),debug)
205ifeq ($(DEBUG_INFO),default)
206__DEBUGINFO = -g
207endif
208endif
209ifeq ($(BUILD),release)
210ifeq ($(DEBUG_INFO),default)
211__DEBUGINFO =
212endif
213endif
214ifeq ($(DEBUG_INFO),0)
215__DEBUGINFO =
216endif
217ifeq ($(DEBUG_INFO),1)
218__DEBUGINFO = -g
2d611b5c 219endif
8c9f8f91
JS
220ifeq ($(USE_THREADS),0)
221__THREADSFLAG =
222endif
223ifeq ($(USE_THREADS),1)
224__THREADSFLAG = -mthreads
225endif
2d611b5c 226
2d611b5c
VS
227
228all: $(OBJS)
229$(OBJS):
230 -if not exist $(OBJS) mkdir $(OBJS)
231
232### Targets: ###
233
234all: $(OBJS)\render.exe $(__renddll___depname)
235
2d611b5c
VS
236clean:
237 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 238 -if exist $(OBJS)\*.d del $(OBJS)\*.d
2d611b5c 239 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
4818141b 240 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
2d611b5c 241
b17c1746 242$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
8c9f8f91 243 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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 244
2d611b5c 245ifeq ($(SHARED),1)
4818141b 246$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
8c9f8f91 247 $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
248endif
249
b17c1746 250$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
2113bc77 251 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) $(__MSLU_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
b17c1746
DE
252
253$(OBJS)\render_render.o: ./render.cpp
0d90d6ea 254 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
255
256$(OBJS)\renddll_renddll.o: ./renddll.cpp
0d90d6ea 257 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
2d611b5c
VS
258
259.PHONY: all clean
b14abf14 260
8c9f8f91 261
0d90d6ea
JS
262# Dependencies tracking:
263-include $(OBJS)/*.d