]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
removed src/gtk/eggtrayicon.h
[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
078c7a59
VS
63ifeq ($(BUILD),debug)
64ifeq ($(UNICODE),0)
314a6446 65PLUGINSUFFIX = d
078c7a59
VS
66endif
67endif
68ifeq ($(BUILD),debug)
69ifeq ($(UNICODE),1)
314a6446 70PLUGINSUFFIX = ud
078c7a59
VS
71endif
72endif
73ifeq ($(BUILD),release)
74ifeq ($(UNICODE),0)
75PLUGINSUFFIX =
76endif
77endif
78ifeq ($(BUILD),release)
79ifeq ($(UNICODE),1)
314a6446 80PLUGINSUFFIX = u
078c7a59
VS
81endif
82endif
b17c1746
DE
83ifeq ($(WXUNIV),1)
84__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
85endif
86ifeq ($(BUILD),debug)
87ifeq ($(DEBUG_FLAG),default)
88__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
89endif
90endif
91ifeq ($(DEBUG_FLAG),1)
92__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
93endif
b17c1746
DE
94ifeq ($(UNICODE),1)
95__UNICODE_DEFINE_p_1 = --define _UNICODE
96endif
2d611b5c
VS
97ifeq ($(SHARED),1)
98__DLLFLAG_p = -DWXUSINGDLL
99endif
100ifeq ($(SHARED),1)
101__DLLFLAG_p_1 = --define WXUSINGDLL
102endif
b17c1746
DE
103ifeq ($(SHARED),1)
104__renddll___depname = \
c33fae85 105 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
b17c1746
DE
106endif
107ifeq ($(BUILD),debug)
108__OPTIMIZEFLAG = -O0
109endif
110ifeq ($(BUILD),release)
111__OPTIMIZEFLAG = -O2
112endif
b71531ad 113ifeq ($(USE_EXCEPTIONS),0)
b17c1746 114__EXCEPTIONSFLAG = -fno-rtti
b71531ad
VZ
115endif
116ifeq ($(USE_EXCEPTIONS),1)
117__EXCEPTIONSFLAG =
118endif
119ifeq ($(USE_EXCEPTIONS),0)
b17c1746 120__EXCEPTIONSFLAG_0 = -fno-exceptions
b71531ad
VZ
121endif
122ifeq ($(USE_EXCEPTIONS),1)
123__EXCEPTIONSFLAG_0 =
124endif
b17c1746
DE
125ifeq ($(WXUNIV),1)
126__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2d611b5c
VS
127endif
128ifeq ($(BUILD),debug)
b17c1746
DE
129ifeq ($(DEBUG_FLAG),default)
130__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 131endif
2d611b5c 132endif
b17c1746
DE
133ifeq ($(DEBUG_FLAG),1)
134__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c
VS
135endif
136ifeq ($(UNICODE),1)
b17c1746 137__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 138endif
b17c1746
DE
139ifeq ($(SHARED),0)
140LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
2c02ec05 141endif
b17c1746
DE
142ifeq ($(SHARED),1)
143LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
2d611b5c
VS
144endif
145ifeq ($(MONOLITHIC),0)
146__WXLIB_CORE_p = \
c33fae85 147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
2d611b5c 148endif
b17c1746 149ifeq ($(MONOLITHIC),0)
c33fae85
RN
150__WXLIB_BASE_p = \
151 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746 152endif
2d611b5c
VS
153ifeq ($(MONOLITHIC),1)
154__WXLIB_MONO_p = \
c33fae85 155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 156endif
b17c1746 157ifeq ($(USE_GUI),1)
9c2d002b 158__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 159endif
b17c1746 160ifeq ($(USE_GUI),1)
9c2d002b 161__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 162endif
b17c1746 163ifeq ($(USE_GUI),1)
9c2d002b 164__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
165endif
166ifeq ($(MSLU),1)
167__UNICOWS_LIB_p = -lunicows
168endif
169ifeq ($(BUILD),debug)
170ifeq ($(DEBUG_INFO),default)
171__DEBUGINFO = -g
172endif
173endif
174ifeq ($(BUILD),release)
175ifeq ($(DEBUG_INFO),default)
176__DEBUGINFO =
177endif
178endif
179ifeq ($(DEBUG_INFO),0)
180__DEBUGINFO =
181endif
182ifeq ($(DEBUG_INFO),1)
183__DEBUGINFO = -g
2d611b5c
VS
184endif
185
2d611b5c
VS
186
187all: $(OBJS)
188$(OBJS):
189 -if not exist $(OBJS) mkdir $(OBJS)
190
191### Targets: ###
192
193all: $(OBJS)\render.exe $(__renddll___depname)
194
2d611b5c
VS
195clean:
196 -if exist $(OBJS)\*.o del $(OBJS)\*.o
197 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
c33fae85 198 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
2d611b5c 199
b17c1746 200$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
9c2d002b 201 $(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 202
2d611b5c 203ifeq ($(SHARED),1)
c33fae85 204$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
9c2d002b 205 $(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
206endif
207
b17c1746
DE
208$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
209 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
210
211$(OBJS)\render_render.o: ./render.cpp
212 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
213
214$(OBJS)\renddll_renddll.o: ./renddll.cpp
215 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<
2d611b5c
VS
216
217.PHONY: all clean