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 # =========================================================================
7 include ../../build/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 DRAGIMAG_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
16 OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 ### Conditionally set variables: ###
20 ifeq ($(GCC_VERSION),2.95)
21 GCCFLAGS = -fvtable-thunks
44 ifeq ($(BUILD),release)
48 __DEBUG_DEFINE_p = -D__WXDEBUG__
51 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
54 __DLLFLAG_p = -DWXUSINGDLL
57 __DLLFLAG_p_1 = --define WXUSINGDLL
60 __OPTIMIZEFLAG_2 = -O0
62 ifeq ($(BUILD),release)
63 __OPTIMIZEFLAG_2 = -O2
66 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
69 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
71 ifeq ($(MONOLITHIC),0)
72 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
74 ifeq ($(MONOLITHIC),0)
75 __WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
77 ifeq ($(MONOLITHIC),1)
78 __WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
81 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
84 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
90 -if not exist $(OBJS) mkdir $(OBJS)
94 all: $(OBJS)\dragimag.exe data
96 $(OBJS)\dragimag_dragimag.o: .\dragimag.cpp
97 $(CXX) -c -o $@ $(DRAGIMAG_CXXFLAGS) $<
99 $(OBJS)\dragimag_dragimag_rc.o: .\dragimag.rc
100 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 ./../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_1)
103 -if exist $(OBJS)\*.o del $(OBJS)\*.o
104 -if exist $(OBJS)\dragimag.exe del $(OBJS)\dragimag.exe
107 if not exist $(OBJS) mkdir $(OBJS)
108 for %%f in (backgrnd.png shape01.png shape02.png shape03.png) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
110 $(OBJS)\dragimag.exe: $(OBJS)\dragimag_dragimag.o $(OBJS)\dragimag_dragimag_rc.o
111 $(CXX) -o $@ $(OBJS)\dragimag_dragimag.o $(OBJS)\dragimag_dragimag_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32