]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/makefile.gcc
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / samples / opengl / penguin / makefile.gcc
CommitLineData
e93c6860
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
e93c6860
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
e93c6860
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
4818141b 15WX_RELEASE_NODOT = 26
e93c6860
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21PENGUIN_CFLAGS = $(__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 $(CPPFLAGS) $(CFLAGS)
27PENGUIN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
28 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
30 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
31 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
32 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
33 $(CXXFLAGS)
e93c6860
VS
34PENGUIN_OBJECTS = \
35 $(OBJS)\penguin_penguin.o \
36 $(OBJS)\penguin_lw.o \
37 $(OBJS)\penguin_trackball.o \
38 $(OBJS)\penguin_penguin_rc.o
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
e93c6860
VS
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
b17c1746
DE
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
e93c6860 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
80ifeq ($(USE_OPENGL),1)
81__penguin___depname = $(OBJS)\penguin.exe
82endif
b17c1746
DE
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG_2 = -O0
e93c6860
VS
85endif
86ifeq ($(BUILD),release)
b17c1746 87__OPTIMIZEFLAG_2 = -O2
e93c6860 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG_5 = -fno-rtti
e93c6860 91endif
8c9f8f91
JS
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG_5 =
e93c6860 94endif
b17c1746 95ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 96__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
97endif
98ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 99__EXCEPTIONSFLAG_6 =
b17c1746
DE
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
e93c6860
VS
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
121__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122endif
8c9f8f91
JS
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_1 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_1 = --define wxNO_THREADS
140endif
b17c1746
DE
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_1 = --define _UNICODE
146endif
e93c6860
VS
147ifeq ($(SHARED),1)
148__DLLFLAG_p = -DWXUSINGDLL
149endif
150ifeq ($(SHARED),1)
151__DLLFLAG_p_1 = --define WXUSINGDLL
152endif
b17c1746
DE
153ifeq ($(MONOLITHIC),0)
154__WXLIB_CORE_p = \
c33fae85 155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 156endif
b17c1746 157ifeq ($(MONOLITHIC),0)
c33fae85
RN
158__WXLIB_BASE_p = \
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 160endif
b17c1746
DE
161ifeq ($(MONOLITHIC),1)
162__WXLIB_MONO_p = \
c33fae85 163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 164endif
b17c1746 165ifeq ($(USE_GUI),1)
9c2d002b 166__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 167endif
e93c6860 168ifeq ($(USE_GUI),1)
9c2d002b 169__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
e93c6860
VS
170endif
171ifeq ($(USE_GUI),1)
9c2d002b 172__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
e93c6860 173endif
b17c1746
DE
174ifeq ($(MSLU),1)
175__UNICOWS_LIB_p = -lunicows
e93c6860 176endif
b17c1746
DE
177ifeq ($(BUILD),debug)
178ifeq ($(DEBUG_INFO),default)
179__DEBUGINFO = -g
4e209a20 180endif
e93c6860 181endif
b17c1746
DE
182ifeq ($(BUILD),release)
183ifeq ($(DEBUG_INFO),default)
184__DEBUGINFO =
e93c6860 185endif
e93c6860 186endif
b17c1746
DE
187ifeq ($(DEBUG_INFO),0)
188__DEBUGINFO =
e93c6860 189endif
b17c1746
DE
190ifeq ($(DEBUG_INFO),1)
191__DEBUGINFO = -g
e93c6860 192endif
8c9f8f91
JS
193ifeq ($(USE_THREADS),0)
194__THREADSFLAG =
195endif
196ifeq ($(USE_THREADS),1)
197__THREADSFLAG = -mthreads
198endif
e93c6860
VS
199
200
201all: $(OBJS)
202$(OBJS):
203 -if not exist $(OBJS) mkdir $(OBJS)
204
205### Targets: ###
206
dd65d8c8 207all: $(__penguin___depname) data
e93c6860 208
e93c6860
VS
209clean:
210 -if exist $(OBJS)\*.o del $(OBJS)\*.o
211 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
212
dd65d8c8 213ifeq ($(USE_OPENGL),1)
b17c1746 214$(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin_rc.o
8c9f8f91 215 $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl -lopengl32 -lglu32 $(__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
dd65d8c8 216endif
b17c1746 217
e93c6860
VS
218data:
219 if not exist $(OBJS) mkdir $(OBJS)
220 for %%f in (penguin.lwo) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
221
b17c1746
DE
222$(OBJS)\penguin_penguin.o: ./penguin.cpp
223 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
224
225$(OBJS)\penguin_lw.o: ./lw.cpp
226 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
227
228$(OBJS)\penguin_trackball.o: ./trackball.c
229 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $<
230
231$(OBJS)\penguin_penguin_rc.o: ./penguin.rc
8c9f8f91 232 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
e93c6860 233
fd9f42b6 234.PHONY: all clean data
b14abf14 235
8c9f8f91 236