1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 DND_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
25 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 ### Conditionally set variables: ###
33 ifeq ($(GCC_VERSION),2.95)
34 GCCFLAGS = -fvtable-thunks
43 ifeq ($(DEBUG_FLAG),default)
47 ifeq ($(DEBUG_FLAG),1)
65 ifeq ($(MONOLITHIC),0)
68 ifeq ($(MONOLITHIC),1)
72 __OPTIMIZEFLAG_2 = -O0
74 ifeq ($(BUILD),release)
75 __OPTIMIZEFLAG_2 = -O2
78 __RTTIFLAG_5 = -fno-rtti
83 ifeq ($(USE_EXCEPTIONS),0)
84 __EXCEPTIONSFLAG_6 = -fno-exceptions
86 ifeq ($(USE_EXCEPTIONS),1)
90 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
114 ifeq ($(USE_EXCEPTIONS),0)
115 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
118 __RTTI_DEFINE_p = -DwxNO_RTTI
121 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
123 ifeq ($(USE_THREADS),0)
124 __THREAD_DEFINE_p = -DwxNO_THREADS
126 ifeq ($(USE_THREADS),0)
127 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
130 __UNICODE_DEFINE_p = -D_UNICODE
133 __UNICODE_DEFINE_p_1 = --define _UNICODE
136 __DLLFLAG_p = -DWXUSINGDLL
139 __DLLFLAG_p_1 = --define WXUSINGDLL
141 ifeq ($(MONOLITHIC),0)
143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
145 ifeq ($(MONOLITHIC),0)
147 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
149 ifeq ($(MONOLITHIC),1)
151 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
154 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
157 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
160 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
163 __UNICOWS_LIB_p = -lunicows
165 ifeq ($(BUILD),debug)
166 ifeq ($(DEBUG_INFO),default)
170 ifeq ($(BUILD),release)
171 ifeq ($(DEBUG_INFO),default)
175 ifeq ($(DEBUG_INFO),0)
178 ifeq ($(DEBUG_INFO),1)
181 ifeq ($(USE_THREADS),0)
184 ifeq ($(USE_THREADS),1)
185 __THREADSFLAG = -mthreads
191 -if not exist $(OBJS) mkdir $(OBJS)
195 all: $(OBJS)\dnd.exe data
198 -if exist $(OBJS)\*.o del $(OBJS)\*.o
199 -if exist $(OBJS)\dnd.exe del $(OBJS)\dnd.exe
201 $(OBJS)\dnd.exe: $(DND_OBJECTS) $(OBJS)\dnd_dnd_rc.o
202 $(CXX) -o $@ $(DND_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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
205 if not exist $(OBJS) mkdir $(OBJS)
206 for %%f in (wxwin.png) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
208 $(OBJS)\dnd_dnd.o: ./dnd.cpp
209 $(CXX) -c -o $@ $(DND_CXXFLAGS) $<
211 $(OBJS)\dnd_dnd_rc.o: ./dnd.rc
212 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
214 .PHONY: all clean data