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