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