]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/makefile.gcc
link against oleacc.lib (needed by wxUSE_ACCESSIBILITY)
[wxWidgets.git] / samples / opengl / penguin / makefile.gcc
CommitLineData
e93c6860
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
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
e93c6860
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17PENGUIN_CFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
18 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22cef566
VS
19 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
20 $(__DLLFLAG_p) -I.\..\..\..\samples $(CFLAGS)
e93c6860
VS
21PENGUIN_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22cef566
VS
23 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\..\samples $(CXXFLAGS)
e93c6860
VS
25PENGUIN_OBJECTS = \
26 $(OBJS)\penguin_penguin.o \
27 $(OBJS)\penguin_lw.o \
28 $(OBJS)\penguin_trackball.o \
29 $(OBJS)\penguin_penguin_rc.o
75a0a7b7
VS
30SETUPHDIR = \
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
e93c6860
VS
32
33### Conditionally set variables: ###
34
35ifeq ($(GCC_VERSION),2.95)
36GCCFLAGS = -fvtable-thunks
37endif
75a0a7b7
VS
38ifeq ($(SHARED),0)
39LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
40endif
41ifeq ($(SHARED),1)
42LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
43endif
e93c6860
VS
44ifeq ($(USE_GUI),0)
45PORTNAME = base
46endif
47ifeq ($(USE_GUI),1)
48PORTNAME = msw
49endif
50ifeq ($(BUILD),debug)
51ifeq ($(DEBUG_FLAG),default)
52WXDEBUGFLAG = d
53endif
54endif
55ifeq ($(DEBUG_FLAG),1)
56WXDEBUGFLAG = d
57endif
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
60endif
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
67ifeq ($(BUILD),debug)
68ifeq ($(DEBUG_INFO),default)
69__DEBUGINFO = -g
70endif
71endif
72ifeq ($(BUILD),release)
73ifeq ($(DEBUG_INFO),default)
74__DEBUGINFO =
75endif
76endif
77ifeq ($(DEBUG_INFO),0)
78__DEBUGINFO =
79endif
80ifeq ($(DEBUG_INFO),1)
81__DEBUGINFO = -g
82endif
83ifeq ($(BUILD),debug)
84ifeq ($(DEBUG_FLAG),default)
85__DEBUG_DEFINE_p = -D__WXDEBUG__
86endif
87endif
88ifeq ($(DEBUG_FLAG),1)
89__DEBUG_DEFINE_p = -D__WXDEBUG__
90endif
91ifeq ($(BUILD),debug)
92ifeq ($(DEBUG_FLAG),default)
93__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
94endif
95endif
96ifeq ($(DEBUG_FLAG),1)
97__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
98endif
99ifeq ($(SHARED),1)
100__DLLFLAG_p = -DWXUSINGDLL
101endif
102ifeq ($(SHARED),1)
103__DLLFLAG_p_1 = --define WXUSINGDLL
104endif
105ifeq ($(USE_GUI),1)
106__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
107endif
108ifeq ($(USE_GUI),1)
109__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
110endif
111ifeq ($(USE_GUI),1)
112__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
113endif
114ifeq ($(BUILD),debug)
115__OPTIMIZEFLAG_2 = -O0
116endif
117ifeq ($(BUILD),release)
118__OPTIMIZEFLAG_2 = -O2
119endif
120ifeq ($(UNICODE),1)
22cef566 121__UNICODE_DEFINE_p = -D_UNICODE
e93c6860
VS
122endif
123ifeq ($(UNICODE),1)
22cef566 124__UNICODE_DEFINE_p_1 = --define _UNICODE
e93c6860 125endif
4e209a20
VS
126ifeq ($(MSLU),1)
127__UNICOWS_LIB_p = -lunicows
128endif
e93c6860
VS
129ifeq ($(MONOLITHIC),0)
130__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
131endif
132ifeq ($(MONOLITHIC),0)
133__WXLIB_CORE_p = \
134 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
135endif
136ifeq ($(MONOLITHIC),1)
137__WXLIB_MONO_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
139endif
140ifeq ($(WXUNIV),1)
141__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
142endif
143ifeq ($(WXUNIV),1)
144__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
145endif
146
147
148all: $(OBJS)
149$(OBJS):
150 -if not exist $(OBJS) mkdir $(OBJS)
151
152### Targets: ###
153
154all: $(OBJS)\penguin.exe data
155
1c3a6972 156$(OBJS)\penguin_lw.o: ./lw.cpp
e93c6860
VS
157 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
158
1c3a6972 159$(OBJS)\penguin_penguin.o: ./penguin.cpp
e93c6860
VS
160 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
161
1c3a6972 162$(OBJS)\penguin_penguin_rc.o: ./penguin.rc
75a0a7b7 163 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
e93c6860 164
1c3a6972 165$(OBJS)\penguin_trackball.o: ./trackball.c
e93c6860
VS
166 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $<
167
168clean:
169 -if exist $(OBJS)\*.o del $(OBJS)\*.o
170 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
171
172data:
173 if not exist $(OBJS) mkdir $(OBJS)
174 for %%f in (penguin.lwo) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
175
176$(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin_rc.o
22cef566 177 $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gl -lopengl32 -lglu32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
e93c6860 178
fd9f42b6 179.PHONY: all clean data