1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 SPLASH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\splash_splash.o \
28 $(OBJS)\splash_sample_rc.o
30 ### Conditionally set variables: ###
32 ifeq ($(GCC_VERSION),2.95)
33 GCCFLAGS = -fvtable-thunks
42 ifeq ($(DEBUG_FLAG),default)
46 ifeq ($(DEBUG_FLAG),1)
64 ifeq ($(MONOLITHIC),0)
67 ifeq ($(MONOLITHIC),1)
71 __OPTIMIZEFLAG_2 = -O0
73 ifeq ($(BUILD),release)
74 __OPTIMIZEFLAG_2 = -O2
76 ifeq ($(USE_EXCEPTIONS),0)
77 __EXCEPTIONSFLAG_4 = -fno-rtti
79 ifeq ($(USE_EXCEPTIONS),1)
82 ifeq ($(USE_EXCEPTIONS),0)
83 __EXCEPTIONSFLAG_5 = -fno-exceptions
85 ifeq ($(USE_EXCEPTIONS),1)
89 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
92 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
95 ifeq ($(DEBUG_FLAG),default)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
99 ifeq ($(DEBUG_FLAG),1)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 __UNICODE_DEFINE_p = -D_UNICODE
114 __UNICODE_DEFINE_p_1 = --define _UNICODE
117 __DLLFLAG_p = -DWXUSINGDLL
120 __DLLFLAG_p_1 = --define WXUSINGDLL
122 ifeq ($(MONOLITHIC),0)
124 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
126 ifeq ($(MONOLITHIC),0)
128 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
130 ifeq ($(MONOLITHIC),0)
132 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
134 ifeq ($(MONOLITHIC),0)
136 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_media
138 ifeq ($(MONOLITHIC),1)
140 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
143 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
146 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
149 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
152 __UNICOWS_LIB_p = -lunicows
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: $(OBJS)\splash.exe data
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
182 -if exist $(OBJS)\splash.exe del $(OBJS)\splash.exe
184 $(OBJS)\splash.exe: $(SPLASH_OBJECTS) $(OBJS)\splash_sample_rc.o
185 $(CXX) -o $@ $(SPLASH_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MEDIA_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
188 if not exist $(OBJS) mkdir $(OBJS)
189 for %%f in (splash.png press.mpg) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
191 $(OBJS)\splash_splash.o: ./splash.cpp
192 $(CXX) -c -o $@ $(SPLASH_CXXFLAGS) $<
194 $(OBJS)\splash_sample_rc.o: ./../sample.rc
195 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
197 .PHONY: all clean data