]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.gcc
final sweep over docs - replace & with \&
[wxWidgets.git] / samples / opengl / penguin / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 PENGUIN_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
21 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
22 -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) \
23 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CFLAGS)
24 PENGUIN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
28 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
29 PENGUIN_OBJECTS = \
30 $(OBJS)\penguin_penguin.o \
31 $(OBJS)\penguin_lw.o \
32 $(OBJS)\penguin_trackball.o \
33 $(OBJS)\penguin_penguin_rc.o
34
35 ### Conditionally set variables: ###
36
37 ifeq ($(GCC_VERSION),2.95)
38 GCCFLAGS = -fvtable-thunks
39 endif
40 ifeq ($(USE_GUI),0)
41 PORTNAME = base
42 endif
43 ifeq ($(USE_GUI),1)
44 PORTNAME = msw
45 endif
46 ifeq ($(BUILD),debug)
47 ifeq ($(DEBUG_FLAG),default)
48 WXDEBUGFLAG = d
49 endif
50 endif
51 ifeq ($(DEBUG_FLAG),1)
52 WXDEBUGFLAG = d
53 endif
54 ifeq ($(UNICODE),1)
55 WXUNICODEFLAG = u
56 endif
57 ifeq ($(WXUNIV),1)
58 WXUNIVNAME = univ
59 endif
60 ifeq ($(SHARED),1)
61 WXDLLFLAG = dll
62 endif
63 ifeq ($(MONOLITHIC),0)
64 EXTRALIBS_FOR_BASE =
65 endif
66 ifeq ($(MONOLITHIC),1)
67 EXTRALIBS_FOR_BASE =
68 endif
69 ifeq ($(USE_OPENGL),1)
70 __penguin___depname = $(OBJS)\penguin.exe
71 endif
72 ifeq ($(BUILD),debug)
73 __OPTIMIZEFLAG_2 = -O0
74 endif
75 ifeq ($(BUILD),release)
76 __OPTIMIZEFLAG_2 = -O2
77 endif
78 ifeq ($(USE_EXCEPTIONS),0)
79 __EXCEPTIONSFLAG_4 = -fno-rtti
80 endif
81 ifeq ($(USE_EXCEPTIONS),1)
82 __EXCEPTIONSFLAG_4 =
83 endif
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG_5 = -fno-exceptions
86 endif
87 ifeq ($(USE_EXCEPTIONS),1)
88 __EXCEPTIONSFLAG_5 =
89 endif
90 ifeq ($(WXUNIV),1)
91 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
92 endif
93 ifeq ($(WXUNIV),1)
94 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
95 endif
96 ifeq ($(BUILD),debug)
97 ifeq ($(DEBUG_FLAG),default)
98 __DEBUG_DEFINE_p = -D__WXDEBUG__
99 endif
100 endif
101 ifeq ($(DEBUG_FLAG),1)
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 endif
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
107 endif
108 endif
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 endif
112 ifeq ($(UNICODE),1)
113 __UNICODE_DEFINE_p = -D_UNICODE
114 endif
115 ifeq ($(UNICODE),1)
116 __UNICODE_DEFINE_p_1 = --define _UNICODE
117 endif
118 ifeq ($(SHARED),1)
119 __DLLFLAG_p = -DWXUSINGDLL
120 endif
121 ifeq ($(SHARED),1)
122 __DLLFLAG_p_1 = --define WXUSINGDLL
123 endif
124 ifeq ($(MONOLITHIC),0)
125 __WXLIB_CORE_p = \
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
127 endif
128 ifeq ($(MONOLITHIC),0)
129 __WXLIB_BASE_p = \
130 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
131 endif
132 ifeq ($(MONOLITHIC),1)
133 __WXLIB_MONO_p = \
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
135 endif
136 ifeq ($(USE_GUI),1)
137 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
138 endif
139 ifeq ($(USE_GUI),1)
140 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
141 endif
142 ifeq ($(USE_GUI),1)
143 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
144 endif
145 ifeq ($(MSLU),1)
146 __UNICOWS_LIB_p = -lunicows
147 endif
148 ifeq ($(SHARED),0)
149 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
150 endif
151 ifeq ($(SHARED),1)
152 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
153 endif
154 ifeq ($(BUILD),debug)
155 ifeq ($(DEBUG_INFO),default)
156 __DEBUGINFO = -g
157 endif
158 endif
159 ifeq ($(BUILD),release)
160 ifeq ($(DEBUG_INFO),default)
161 __DEBUGINFO =
162 endif
163 endif
164 ifeq ($(DEBUG_INFO),0)
165 __DEBUGINFO =
166 endif
167 ifeq ($(DEBUG_INFO),1)
168 __DEBUGINFO = -g
169 endif
170
171
172 all: $(OBJS)
173 $(OBJS):
174 -if not exist $(OBJS) mkdir $(OBJS)
175
176 ### Targets: ###
177
178 all: $(__penguin___depname) data
179
180 clean:
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
182 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
183
184 ifeq ($(USE_OPENGL),1)
185 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin_rc.o
186 $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
187 endif
188
189 data:
190 if not exist $(OBJS) mkdir $(OBJS)
191 for %%f in (penguin.lwo) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
192
193 $(OBJS)\penguin_penguin.o: ./penguin.cpp
194 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
195
196 $(OBJS)\penguin_lw.o: ./lw.cpp
197 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
198
199 $(OBJS)\penguin_trackball.o: ./trackball.c
200 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $<
201
202 $(OBJS)\penguin_penguin_rc.o: ./penguin.rc
203 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 --define NOPCH
204
205 .PHONY: all clean data