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/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 GIZMOSDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
18 -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
19 $(CXXFLAGS) $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0)
21 $(OBJS)\gizmosdll_dummy.o \
22 $(OBJS)\gizmosdll_dynamicsash.o \
23 $(OBJS)\gizmosdll_editlbox.o \
24 $(OBJS)\gizmosdll_ledctrl.o \
25 $(OBJS)\gizmosdll_multicell.o \
26 $(OBJS)\gizmosdll_splittree.o \
27 $(OBJS)\gizmosdll_statpict.o
28 GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
29 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
31 -Wall -I..\..\src\gizmos\..\..\include $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
34 $(OBJS)\gizmoslib_dummy.o \
35 $(OBJS)\gizmoslib_dynamicsash.o \
36 $(OBJS)\gizmoslib_editlbox.o \
37 $(OBJS)\gizmoslib_ledctrl.o \
38 $(OBJS)\gizmoslib_multicell.o \
39 $(OBJS)\gizmoslib_splittree.o \
40 $(OBJS)\gizmoslib_statpict.o
42 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
44 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
46 ### Conditionally set variables: ###
48 ifeq ($(GCC_VERSION),2.95)
49 GCCFLAGS = -fvtable-thunks
52 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
55 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
63 ifeq ($(OFFICIAL_BUILD),0)
64 VENDORTAG = _$(VENDOR)
66 ifeq ($(OFFICIAL_BUILD),1)
70 ifeq ($(DEBUG_FLAG),default)
74 ifeq ($(DEBUG_FLAG),1)
87 ifeq ($(DEBUG_INFO),default)
91 ifeq ($(BUILD),release)
92 ifeq ($(DEBUG_INFO),default)
96 ifeq ($(DEBUG_INFO),0)
99 ifeq ($(DEBUG_INFO),1)
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONSFLAG = -fno-rtti
113 ifeq ($(USE_EXCEPTIONS),1)
116 ifeq ($(USE_EXCEPTIONS),0)
117 __EXCEPTIONSFLAG_0 = -fno-exceptions
119 ifeq ($(USE_EXCEPTIONS),1)
123 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
126 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
129 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
131 ifeq ($(BUILD),debug)
134 ifeq ($(BUILD),release)
138 __UNICODE_DEFINE_p = -D_UNICODE
141 __UNICOWS_LIB_p = -lunicows
143 ifeq ($(MONOLITHIC),0)
144 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
146 ifeq ($(MONOLITHIC),0)
148 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
150 ifeq ($(MONOLITHIC),1)
152 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
155 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
158 __gizmosdll___depname = \
159 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
162 __gizmoslib___depname = \
163 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
169 -if not exist $(OBJS) mkdir $(OBJS)
173 all: $(__gizmosdll___depname) $(__gizmoslib___depname)
175 $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
176 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
178 $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
179 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
181 $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
182 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
184 $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
185 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
187 $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
188 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
190 $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
191 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
193 $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
194 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
196 $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
197 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
199 $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
200 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
202 $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
203 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
205 $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
206 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
208 $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
209 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
211 $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
212 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
214 $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
215 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
218 -if exist $(OBJS)\*.o del $(OBJS)\*.o
219 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
220 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
221 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
224 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
225 $(CXX) -shared -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_BASE_p) $(__WXLIB_CORE_p)
229 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a: $(GIZMOSLIB_OBJECTS)
231 ar rcu $@ $(GIZMOSLIB_OBJECTS)