]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
Needed adv library for xrcdemo
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (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
25a73439
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
25a73439
VS
19WIDGETS_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7
VS
21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
22 -I.\..\..\samples $(CXXFLAGS)
25a73439
VS
23WIDGETS_OBJECTS = \
24 $(OBJS)\widgets_button.o \
25 $(OBJS)\widgets_combobox.o \
26 $(OBJS)\widgets_gauge.o \
27 $(OBJS)\widgets_listbox.o \
28 $(OBJS)\widgets_notebook.o \
29 $(OBJS)\widgets_radiobox.o \
30 $(OBJS)\widgets_slider.o \
31 $(OBJS)\widgets_spinbtn.o \
32 $(OBJS)\widgets_static.o \
33 $(OBJS)\widgets_textctrl.o \
34 $(OBJS)\widgets_widgets.o \
35 $(OBJS)\widgets_widgets_rc.o
3b20263d
VS
36
37### Conditionally set variables: ###
38
250700e4
RD
39ifeq ($(GCC_VERSION),2.95)
40GCCFLAGS = -fvtable-thunks
41endif
75a0a7b7
VS
42ifeq ($(SHARED),0)
43LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
44endif
45ifeq ($(SHARED),1)
46LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
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
62ifeq ($(SHARED),1)
63WXDLLFLAG = dll
64endif
65ifeq ($(UNICODE),1)
66WXUNICODEFLAG = u
67endif
68ifeq ($(WXUNIV),1)
69WXUNIVNAME = univ
70endif
71ifeq ($(BUILD),debug)
25a73439
VS
72ifeq ($(DEBUG_INFO),default)
73__DEBUGINFO = -g
74endif
250700e4
RD
75endif
76ifeq ($(BUILD),release)
25a73439
VS
77ifeq ($(DEBUG_INFO),default)
78__DEBUGINFO =
79endif
80endif
81ifeq ($(DEBUG_INFO),0)
82__DEBUGINFO =
83endif
84ifeq ($(DEBUG_INFO),1)
85__DEBUGINFO = -g
250700e4
RD
86endif
87ifeq ($(BUILD),debug)
25a73439
VS
88ifeq ($(DEBUG_FLAG),default)
89__DEBUG_DEFINE_p = -D__WXDEBUG__
90endif
91endif
92ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95ifeq ($(BUILD),debug)
25a73439
VS
96ifeq ($(DEBUG_FLAG),default)
97__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
98endif
99endif
100ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
101__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102endif
103ifeq ($(SHARED),1)
104__DLLFLAG_p = -DWXUSINGDLL
105endif
106ifeq ($(SHARED),1)
107__DLLFLAG_p_1 = --define WXUSINGDLL
108endif
25a73439
VS
109ifeq ($(USE_GUI),1)
110__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
111endif
112ifeq ($(USE_GUI),1)
113__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
114endif
115ifeq ($(USE_GUI),1)
116__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
117endif
250700e4
RD
118ifeq ($(BUILD),debug)
119__OPTIMIZEFLAG_2 = -O0
120endif
121ifeq ($(BUILD),release)
122__OPTIMIZEFLAG_2 = -O2
123endif
3b20263d
VS
124ifeq ($(UNICODE),1)
125__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
126endif
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
129endif
4e209a20
VS
130ifeq ($(MSLU),1)
131__UNICOWS_LIB_p = -lunicows
132endif
3b20263d
VS
133ifeq ($(MONOLITHIC),0)
134__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
135endif
136ifeq ($(MONOLITHIC),0)
25a73439
VS
137__WXLIB_CORE_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
3b20263d
VS
139endif
140ifeq ($(MONOLITHIC),1)
25a73439
VS
141__WXLIB_MONO_p = \
142 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d
VS
143endif
144ifeq ($(WXUNIV),1)
145__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
146endif
147ifeq ($(WXUNIV),1)
148__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
149endif
150
151
152all: $(OBJS)
153$(OBJS):
154 -if not exist $(OBJS) mkdir $(OBJS)
155
156### Targets: ###
157
158all: $(OBJS)\widgets.exe
159
1c3a6972 160$(OBJS)\widgets_button.o: ./button.cpp
3b20263d
VS
161 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
162
1c3a6972 163$(OBJS)\widgets_combobox.o: ./combobox.cpp
3b20263d
VS
164 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
165
1c3a6972 166$(OBJS)\widgets_gauge.o: ./gauge.cpp
3b20263d
VS
167 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
168
1c3a6972 169$(OBJS)\widgets_listbox.o: ./listbox.cpp
3b20263d
VS
170 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
171
1c3a6972 172$(OBJS)\widgets_notebook.o: ./notebook.cpp
3b20263d
VS
173 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
174
1c3a6972 175$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
3b20263d
VS
176 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
177
1c3a6972 178$(OBJS)\widgets_slider.o: ./slider.cpp
3b20263d
VS
179 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
180
1c3a6972 181$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
3b20263d
VS
182 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
183
1c3a6972 184$(OBJS)\widgets_static.o: ./static.cpp
3b20263d
VS
185 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
186
1c3a6972 187$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
3b20263d
VS
188 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
189
1c3a6972 190$(OBJS)\widgets_widgets.o: ./widgets.cpp
3b20263d
VS
191 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
192
1c3a6972 193$(OBJS)\widgets_widgets_rc.o: ./widgets.rc
75a0a7b7 194 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
3b20263d
VS
195
196clean:
197 -if exist $(OBJS)\*.o del $(OBJS)\*.o
198 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
199
25a73439 200$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets_rc.o
75a0a7b7 201 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d 202
250700e4 203.PHONY: all clean