]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.gcc
Applied patch [ 795491 ] Multimon sample compatibility with various conditions
[wxWidgets.git] / contrib / build / gizmos / makefile.gcc
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 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
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 -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
19 $(CXXFLAGS)
20 GIZMOSDLL_OBJECTS = \
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 -I..\..\src\gizmos\..\..\include $(CXXFLAGS)
32 GIZMOSLIB_OBJECTS = \
33 $(OBJS)\gizmoslib_dummy.o \
34 $(OBJS)\gizmoslib_dynamicsash.o \
35 $(OBJS)\gizmoslib_editlbox.o \
36 $(OBJS)\gizmoslib_ledctrl.o \
37 $(OBJS)\gizmoslib_multicell.o \
38 $(OBJS)\gizmoslib_splittree.o \
39 $(OBJS)\gizmoslib_statpict.o
40 OBJS = \
41 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
42 SETUPHDIR = \
43 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
44
45 ### Conditionally set variables: ###
46
47 ifeq ($(GCC_VERSION),2.95)
48 GCCFLAGS = -fvtable-thunks
49 endif
50 ifeq ($(SHARED),0)
51 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
52 endif
53 ifeq ($(SHARED),1)
54 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
55 endif
56 ifeq ($(USE_GUI),0)
57 PORTNAME = base
58 endif
59 ifeq ($(USE_GUI),1)
60 PORTNAME = msw
61 endif
62 ifeq ($(OFFICIAL_BUILD),0)
63 VENDORTAG = _$(VENDOR)
64 endif
65 ifeq ($(OFFICIAL_BUILD),1)
66 VENDORTAG =
67 endif
68 ifeq ($(BUILD),debug)
69 ifeq ($(DEBUG_FLAG),default)
70 WXDEBUGFLAG = d
71 endif
72 endif
73 ifeq ($(DEBUG_FLAG),1)
74 WXDEBUGFLAG = d
75 endif
76 ifeq ($(SHARED),1)
77 WXDLLFLAG = dll
78 endif
79 ifeq ($(UNICODE),1)
80 WXUNICODEFLAG = u
81 endif
82 ifeq ($(WXUNIV),1)
83 WXUNIVNAME = univ
84 endif
85 ifeq ($(BUILD),debug)
86 ifeq ($(DEBUG_INFO),default)
87 __DEBUGINFO = -g
88 endif
89 endif
90 ifeq ($(BUILD),release)
91 ifeq ($(DEBUG_INFO),default)
92 __DEBUGINFO =
93 endif
94 endif
95 ifeq ($(DEBUG_INFO),0)
96 __DEBUGINFO =
97 endif
98 ifeq ($(DEBUG_INFO),1)
99 __DEBUGINFO = -g
100 endif
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_FLAG),default)
103 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 endif
105 endif
106 ifeq ($(DEBUG_FLAG),1)
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 endif
109 ifeq ($(USE_GUI),1)
110 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
111 endif
112 ifeq ($(USE_GUI),1)
113 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
114 endif
115 ifeq ($(USE_GUI),1)
116 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
117 endif
118 ifeq ($(BUILD),debug)
119 __OPTIMIZEFLAG = -O0
120 endif
121 ifeq ($(BUILD),release)
122 __OPTIMIZEFLAG = -O2
123 endif
124 ifeq ($(UNICODE),1)
125 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
126 endif
127 ifeq ($(MSLU),1)
128 __UNICOWS_LIB_p = -lunicows
129 endif
130 ifeq ($(MONOLITHIC),0)
131 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
132 endif
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_CORE_p = \
135 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
136 endif
137 ifeq ($(MONOLITHIC),1)
138 __WXLIB_MONO_p = \
139 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
140 endif
141 ifeq ($(WXUNIV),1)
142 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
143 endif
144 ifeq ($(SHARED),1)
145 __gizmosdll___depname = \
146 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
147 endif
148 ifeq ($(SHARED),0)
149 __gizmoslib___depname = \
150 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
151 endif
152
153
154 all: $(OBJS)
155 $(OBJS):
156 -if not exist $(OBJS) mkdir $(OBJS)
157
158 ### Targets: ###
159
160 all: $(__gizmosdll___depname) $(__gizmoslib___depname)
161
162 $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
163 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
164
165 $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
166 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
167
168 $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
169 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
170
171 $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
172 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
173
174 $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
175 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
176
177 $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
178 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
179
180 $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
181 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
182
183 $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
184 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
185
186 $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
187 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
188
189 $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
190 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
191
192 $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
193 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
194
195 $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
196 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
197
198 $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
199 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
200
201 $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
202 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
203
204 clean:
205 -if exist $(OBJS)\*.o del $(OBJS)\*.o
206 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
207 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
208 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
209
210 ifeq ($(SHARED),1)
211 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
212 $(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)
213 endif
214
215 ifeq ($(SHARED),0)
216 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a: $(GIZMOSLIB_OBJECTS)
217 if exist $@ del $@
218 ar rcu $@ $(GIZMOSLIB_OBJECTS)
219 ranlib $@
220 endif
221
222 .PHONY: all clean