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 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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)
30 $(OBJS)\penguin_penguin.o \
31 $(OBJS)\penguin_lw.o \
32 $(OBJS)\penguin_trackball.o \
33 $(OBJS)\penguin_penguin_rc.o
35 ### Conditionally set variables: ###
37 ifeq ($(GCC_VERSION),2.95)
38 GCCFLAGS = -fvtable-thunks
47 ifeq ($(DEBUG_FLAG),default)
51 ifeq ($(DEBUG_FLAG),1)
63 ifeq ($(MONOLITHIC),0)
66 ifeq ($(MONOLITHIC),1)
69 ifeq ($(USE_OPENGL),1)
70 __penguin___depname = $(OBJS)\penguin.exe
73 __OPTIMIZEFLAG_2 = -O0
75 ifeq ($(BUILD),release)
76 __OPTIMIZEFLAG_2 = -O2
78 ifeq ($(USE_EXCEPTIONS),0)
79 __EXCEPTIONSFLAG_4 = -fno-rtti
81 ifeq ($(USE_EXCEPTIONS),1)
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG_5 = -fno-exceptions
87 ifeq ($(USE_EXCEPTIONS),1)
91 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
94 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
97 ifeq ($(DEBUG_FLAG),default)
98 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 ifeq ($(DEBUG_FLAG),1)
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113 __UNICODE_DEFINE_p = -D_UNICODE
116 __UNICODE_DEFINE_p_1 = --define _UNICODE
119 __DLLFLAG_p = -DWXUSINGDLL
122 __DLLFLAG_p_1 = --define WXUSINGDLL
124 ifeq ($(MONOLITHIC),0)
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
128 ifeq ($(MONOLITHIC),0)
130 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
132 ifeq ($(MONOLITHIC),1)
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
140 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
143 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
146 __UNICOWS_LIB_p = -lunicows
149 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
152 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
154 ifeq ($(BUILD),debug)
155 ifeq ($(DEBUG_INFO),default)
159 ifeq ($(BUILD),release)
160 ifeq ($(DEBUG_INFO),default)
164 ifeq ($(DEBUG_INFO),0)
167 ifeq ($(DEBUG_INFO),1)
174 -if not exist $(OBJS) mkdir $(OBJS)
178 all: $(__penguin___depname) data
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
182 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
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
190 if not exist $(OBJS) mkdir $(OBJS)
191 for %%f in (penguin.lwo) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
193 $(OBJS)\penguin_penguin.o: ./penguin.cpp
194 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
196 $(OBJS)\penguin_lw.o: ./lw.cpp
197 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $<
199 $(OBJS)\penguin_trackball.o: ./trackball.c
200 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $<
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
205 .PHONY: all clean data