]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
added wxDynamicLibrary::GetSymbolAorW()
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (http://bakefile.sourceforge.net)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
25a73439
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
27 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
25a73439
VS
28WIDGETS_OBJECTS = \
29 $(OBJS)\widgets_button.o \
8941fa88 30 $(OBJS)\widgets_checkbox.o \
25a73439
VS
31 $(OBJS)\widgets_combobox.o \
32 $(OBJS)\widgets_gauge.o \
33 $(OBJS)\widgets_listbox.o \
34 $(OBJS)\widgets_notebook.o \
35 $(OBJS)\widgets_radiobox.o \
36 $(OBJS)\widgets_slider.o \
37 $(OBJS)\widgets_spinbtn.o \
38 $(OBJS)\widgets_static.o \
39 $(OBJS)\widgets_textctrl.o \
40 $(OBJS)\widgets_widgets.o \
41 $(OBJS)\widgets_widgets_rc.o
3b20263d
VS
42
43### Conditionally set variables: ###
44
250700e4
RD
45ifeq ($(GCC_VERSION),2.95)
46GCCFLAGS = -fvtable-thunks
47endif
3b20263d
VS
48ifeq ($(USE_GUI),0)
49PORTNAME = base
50endif
51ifeq ($(USE_GUI),1)
52PORTNAME = msw
53endif
54ifeq ($(BUILD),debug)
25a73439
VS
55ifeq ($(DEBUG_FLAG),default)
56WXDEBUGFLAG = d
57endif
58endif
59ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
60WXDEBUGFLAG = d
61endif
3b20263d
VS
62ifeq ($(UNICODE),1)
63WXUNICODEFLAG = u
64endif
65ifeq ($(WXUNIV),1)
66WXUNIVNAME = univ
67endif
b17c1746
DE
68ifeq ($(SHARED),1)
69WXDLLFLAG = dll
25a73439 70endif
b14abf14
JS
71ifeq ($(SHARED),0)
72LIBTYPE_SUFFIX = lib
73endif
74ifeq ($(SHARED),1)
75LIBTYPE_SUFFIX = dll
76endif
dd65d8c8
RN
77ifeq ($(MONOLITHIC),0)
78EXTRALIBS_FOR_BASE =
79endif
80ifeq ($(MONOLITHIC),1)
81EXTRALIBS_FOR_BASE =
82endif
b17c1746
DE
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG_2 = -O0
250700e4
RD
85endif
86ifeq ($(BUILD),release)
b17c1746 87__OPTIMIZEFLAG_2 = -O2
25a73439 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG_5 = -fno-rtti
25a73439 91endif
8c9f8f91
JS
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG_5 =
25a73439 94endif
b17c1746 95ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 96__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
97endif
98ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 99__EXCEPTIONSFLAG_6 =
b17c1746
DE
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
106endif
107ifeq ($(BUILD),debug)
25a73439
VS
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
25a73439
VS
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
121__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122endif
8c9f8f91
JS
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_1 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_1 = --define wxNO_THREADS
140endif
b17c1746
DE
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_1 = --define _UNICODE
146endif
3b20263d
VS
147ifeq ($(SHARED),1)
148__DLLFLAG_p = -DWXUSINGDLL
149endif
150ifeq ($(SHARED),1)
151__DLLFLAG_p_1 = --define WXUSINGDLL
152endif
b17c1746
DE
153ifeq ($(MONOLITHIC),0)
154__WXLIB_CORE_p = \
c33fae85 155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 156endif
b17c1746 157ifeq ($(MONOLITHIC),0)
c33fae85
RN
158__WXLIB_BASE_p = \
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 160endif
b17c1746
DE
161ifeq ($(MONOLITHIC),1)
162__WXLIB_MONO_p = \
c33fae85 163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 164endif
b17c1746 165ifeq ($(USE_GUI),1)
9c2d002b 166__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 167endif
25a73439 168ifeq ($(USE_GUI),1)
9c2d002b 169__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
170endif
171ifeq ($(USE_GUI),1)
9c2d002b 172__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 173endif
b17c1746
DE
174ifeq ($(MSLU),1)
175__UNICOWS_LIB_p = -lunicows
250700e4 176endif
b17c1746
DE
177ifeq ($(BUILD),debug)
178ifeq ($(DEBUG_INFO),default)
179__DEBUGINFO = -g
4e209a20 180endif
3b20263d 181endif
b17c1746
DE
182ifeq ($(BUILD),release)
183ifeq ($(DEBUG_INFO),default)
184__DEBUGINFO =
3b20263d 185endif
3b20263d 186endif
b17c1746
DE
187ifeq ($(DEBUG_INFO),0)
188__DEBUGINFO =
3b20263d 189endif
b17c1746
DE
190ifeq ($(DEBUG_INFO),1)
191__DEBUGINFO = -g
3b20263d 192endif
8c9f8f91
JS
193ifeq ($(USE_THREADS),0)
194__THREADSFLAG =
195endif
196ifeq ($(USE_THREADS),1)
197__THREADSFLAG = -mthreads
198endif
3b20263d
VS
199
200
201all: $(OBJS)
202$(OBJS):
203 -if not exist $(OBJS) mkdir $(OBJS)
204
205### Targets: ###
206
207all: $(OBJS)\widgets.exe
208
b17c1746
DE
209clean:
210 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 211 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
212 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
213
214$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets_rc.o
8c9f8f91 215 $(CXX) -o $@ $(WIDGETS_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
b17c1746 216
1c3a6972 217$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 218 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 219
8941fa88 220$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 221 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 222
1c3a6972 223$(OBJS)\widgets_combobox.o: ./combobox.cpp
0d90d6ea 224 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 225
1c3a6972 226$(OBJS)\widgets_gauge.o: ./gauge.cpp
0d90d6ea 227 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 228
1c3a6972 229$(OBJS)\widgets_listbox.o: ./listbox.cpp
0d90d6ea 230 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 231
1c3a6972 232$(OBJS)\widgets_notebook.o: ./notebook.cpp
0d90d6ea 233 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 234
1c3a6972 235$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 236 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 237
1c3a6972 238$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 239 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 240
1c3a6972 241$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 242 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 243
1c3a6972 244$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 245 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 246
1c3a6972 247$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 248 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 249
1c3a6972 250$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 251 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 252
1c3a6972 253$(OBJS)\widgets_widgets_rc.o: ./widgets.rc
8c9f8f91 254 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
3b20263d 255
250700e4 256.PHONY: all clean
b14abf14 257
8c9f8f91 258
0d90d6ea
JS
259# Dependencies tracking:
260-include $(OBJS)/*.d