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