]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/isosurf/makefile.gcc
no-op methods for ownerdrawn methods in wxMenuItem
[wxWidgets.git] / samples / opengl / isosurf / makefile.gcc
CommitLineData
e93c6860
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (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
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
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)
9bfe7ad9 21ISOSURF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
e93c6860 22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
b14abf14 23 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
c33fae85 24 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
b14abf14 25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
e93c6860 26ISOSURF_OBJECTS = \
e09c7b2d
VS
27 $(OBJS)\isosurf_sample_rc.o \
28 $(OBJS)\isosurf_isosurf.o
e93c6860
VS
29
30### Conditionally set variables: ###
31
32ifeq ($(GCC_VERSION),2.95)
33GCCFLAGS = -fvtable-thunks
34endif
35ifeq ($(USE_GUI),0)
36PORTNAME = base
37endif
38ifeq ($(USE_GUI),1)
39PORTNAME = msw
40endif
41ifeq ($(BUILD),debug)
42ifeq ($(DEBUG_FLAG),default)
43WXDEBUGFLAG = d
44endif
45endif
46ifeq ($(DEBUG_FLAG),1)
47WXDEBUGFLAG = d
48endif
e93c6860
VS
49ifeq ($(UNICODE),1)
50WXUNICODEFLAG = u
51endif
52ifeq ($(WXUNIV),1)
53WXUNIVNAME = univ
54endif
b17c1746
DE
55ifeq ($(SHARED),1)
56WXDLLFLAG = dll
e93c6860 57endif
b14abf14
JS
58ifeq ($(SHARED),0)
59LIBTYPE_SUFFIX = lib
60endif
61ifeq ($(SHARED),1)
62LIBTYPE_SUFFIX = dll
63endif
dd65d8c8
RN
64ifeq ($(MONOLITHIC),0)
65EXTRALIBS_FOR_BASE =
66endif
67ifeq ($(MONOLITHIC),1)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(USE_OPENGL),1)
71__isosurf___depname = $(OBJS)\isosurf.exe
72endif
b17c1746
DE
73ifeq ($(BUILD),debug)
74__OPTIMIZEFLAG_2 = -O0
e93c6860
VS
75endif
76ifeq ($(BUILD),release)
b17c1746 77__OPTIMIZEFLAG_2 = -O2
e93c6860 78endif
b17c1746
DE
79ifeq ($(USE_EXCEPTIONS),0)
80__EXCEPTIONSFLAG_4 = -fno-rtti
e93c6860 81endif
b17c1746
DE
82ifeq ($(USE_EXCEPTIONS),1)
83__EXCEPTIONSFLAG_4 =
e93c6860 84endif
b17c1746
DE
85ifeq ($(USE_EXCEPTIONS),0)
86__EXCEPTIONSFLAG_5 = -fno-exceptions
87endif
88ifeq ($(USE_EXCEPTIONS),1)
89__EXCEPTIONSFLAG_5 =
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
e93c6860
VS
96endif
97ifeq ($(BUILD),debug)
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
b17c1746
DE
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p = -D_UNICODE
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p_1 = --define _UNICODE
118endif
e93c6860
VS
119ifeq ($(SHARED),1)
120__DLLFLAG_p = -DWXUSINGDLL
121endif
122ifeq ($(SHARED),1)
123__DLLFLAG_p_1 = --define WXUSINGDLL
124endif
b17c1746
DE
125ifeq ($(MONOLITHIC),0)
126__WXLIB_CORE_p = \
c33fae85 127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 128endif
b17c1746 129ifeq ($(MONOLITHIC),0)
c33fae85
RN
130__WXLIB_BASE_p = \
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 132endif
b17c1746
DE
133ifeq ($(MONOLITHIC),1)
134__WXLIB_MONO_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 136endif
b17c1746 137ifeq ($(USE_GUI),1)
9c2d002b 138__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 139endif
e93c6860 140ifeq ($(USE_GUI),1)
9c2d002b 141__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
e93c6860
VS
142endif
143ifeq ($(USE_GUI),1)
9c2d002b 144__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
e93c6860 145endif
b17c1746
DE
146ifeq ($(MSLU),1)
147__UNICOWS_LIB_p = -lunicows
e93c6860 148endif
b17c1746
DE
149ifeq ($(BUILD),debug)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO = -g
4e209a20 152endif
e93c6860 153endif
b17c1746
DE
154ifeq ($(BUILD),release)
155ifeq ($(DEBUG_INFO),default)
156__DEBUGINFO =
e93c6860 157endif
e93c6860 158endif
b17c1746
DE
159ifeq ($(DEBUG_INFO),0)
160__DEBUGINFO =
e93c6860 161endif
b17c1746
DE
162ifeq ($(DEBUG_INFO),1)
163__DEBUGINFO = -g
e93c6860
VS
164endif
165
166
167all: $(OBJS)
168$(OBJS):
169 -if not exist $(OBJS) mkdir $(OBJS)
170
171### Targets: ###
172
dd65d8c8 173all: $(__isosurf___depname) data
e93c6860 174
e93c6860
VS
175clean:
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
177 -if exist $(OBJS)\isosurf.exe del $(OBJS)\isosurf.exe
178
dd65d8c8 179ifeq ($(USE_OPENGL),1)
b17c1746 180$(OBJS)\isosurf.exe: $(ISOSURF_OBJECTS) $(OBJS)\isosurf_sample_rc.o
dd65d8c8
RN
181 $(CXX) -o $@ $(ISOSURF_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
182endif
b17c1746 183
e93c6860
VS
184data:
185 if not exist $(OBJS) mkdir $(OBJS)
186 for %%f in (isosurf.dat.gz) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
187
b17c1746 188$(OBJS)\isosurf_sample_rc.o: ./../../../samples/sample.rc
b14abf14 189 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
b17c1746
DE
190
191$(OBJS)\isosurf_isosurf.o: ./isosurf.cpp
192 $(CXX) -c -o $@ $(ISOSURF_CXXFLAGS) $<
e93c6860 193
fd9f42b6 194.PHONY: all clean data
b14abf14 195