]> git.saurik.com Git - wxWidgets.git/blame - samples/stc/makefile.gcc
Change wxBoxSizer::AddSpacer() to only add space in sizer direction.
[wxWidgets.git] / samples / stc / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
54429bb3 7include ../../build/msw/config.gcc
2d611b5c
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
8ece421c 15CPPDEPS = -MT$@ -MF$@.d -MD -MP
ae4ccf12 16WX_RELEASE_NODOT = 29
444833b3 17COMPILER_PREFIX = gcc
2d611b5c 18OBJS = \
444833b3
CE
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
19c35fa5
VS
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
23STCTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
54429bb3
RD
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
2d611b5c 30STCTEST_OBJECTS = \
88a8b04e
RD
31 $(OBJS)\stctest_stctest.o \
32 $(OBJS)\stctest_edit.o \
54429bb3
RD
33 $(OBJS)\stctest_prefs.o \
34 $(OBJS)\stctest_sample_rc.o
2d611b5c
VS
35
36### Conditionally set variables: ###
37
38ifeq ($(GCC_VERSION),2.95)
39GCCFLAGS = -fvtable-thunks
40endif
41ifeq ($(USE_GUI),0)
42PORTNAME = base
43endif
44ifeq ($(USE_GUI),1)
45PORTNAME = msw
46endif
47ifeq ($(BUILD),debug)
2d611b5c
VS
48WXDEBUGFLAG = d
49endif
2d611b5c
VS
50ifeq ($(UNICODE),1)
51WXUNICODEFLAG = u
52endif
53ifeq ($(WXUNIV),1)
54WXUNIVNAME = univ
55endif
b17c1746
DE
56ifeq ($(SHARED),1)
57WXDLLFLAG = dll
2d611b5c 58endif
b14abf14
JS
59ifeq ($(SHARED),0)
60LIBTYPE_SUFFIX = lib
61endif
62ifeq ($(SHARED),1)
63LIBTYPE_SUFFIX = dll
64endif
dd65d8c8
RN
65ifeq ($(MONOLITHIC),0)
66EXTRALIBS_FOR_BASE =
67endif
68ifeq ($(MONOLITHIC),1)
69EXTRALIBS_FOR_BASE =
70endif
b17c1746
DE
71ifeq ($(BUILD),debug)
72__OPTIMIZEFLAG_2 = -O0
2d611b5c
VS
73endif
74ifeq ($(BUILD),release)
b17c1746 75__OPTIMIZEFLAG_2 = -O2
2d611b5c 76endif
8c9f8f91
JS
77ifeq ($(USE_RTTI),0)
78__RTTIFLAG_5 = -fno-rtti
2d611b5c 79endif
8c9f8f91
JS
80ifeq ($(USE_RTTI),1)
81__RTTIFLAG_5 =
2d611b5c 82endif
b17c1746 83ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 84__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
85endif
86ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 87__EXCEPTIONSFLAG_6 =
b17c1746
DE
88endif
89ifeq ($(WXUNIV),1)
90__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
91endif
92ifeq ($(WXUNIV),1)
93__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c 94endif
d12d9eda
VZ
95ifeq ($(DEBUG_FLAG),0)
96__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
2d611b5c 97endif
d12d9eda
VZ
98ifeq ($(DEBUG_FLAG),0)
99__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
2d611b5c 100endif
8c9f8f91
JS
101ifeq ($(USE_EXCEPTIONS),0)
102__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
103endif
104ifeq ($(USE_EXCEPTIONS),0)
105__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
106endif
107ifeq ($(USE_RTTI),0)
108__RTTI_DEFINE_p = -DwxNO_RTTI
109endif
110ifeq ($(USE_RTTI),0)
111__RTTI_DEFINE_p_1 = --define wxNO_RTTI
112endif
113ifeq ($(USE_THREADS),0)
114__THREAD_DEFINE_p = -DwxNO_THREADS
115endif
116ifeq ($(USE_THREADS),0)
117__THREAD_DEFINE_p_1 = --define wxNO_THREADS
118endif
7379e476
VZ
119ifeq ($(UNICODE),0)
120__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
121endif
b17c1746
DE
122ifeq ($(UNICODE),1)
123__UNICODE_DEFINE_p = -D_UNICODE
124endif
7379e476
VZ
125ifeq ($(UNICODE),0)
126__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
127endif
b17c1746
DE
128ifeq ($(UNICODE),1)
129__UNICODE_DEFINE_p_1 = --define _UNICODE
130endif
2113bc77
MW
131ifeq ($(MSLU),1)
132__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
133endif
134ifeq ($(MSLU),1)
135__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
136endif
3abcf424
RD
137ifeq ($(USE_GDIPLUS),1)
138__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
139endif
140ifeq ($(USE_GDIPLUS),1)
141__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
142endif
2d611b5c
VS
143ifeq ($(SHARED),1)
144__DLLFLAG_p = -DWXUSINGDLL
145endif
146ifeq ($(SHARED),1)
147__DLLFLAG_p_1 = --define WXUSINGDLL
148endif
b17c1746 149ifeq ($(MONOLITHIC),0)
54429bb3
RD
150__WXLIB_STC_p = \
151 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc
152endif
153ifeq ($(MONOLITHIC),0)
b17c1746 154__WXLIB_CORE_p = \
c33fae85 155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
1e545382 156endif
b17c1746 157ifeq ($(MONOLITHIC),0)
c33fae85
RN
158__WXLIB_BASE_p = \
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
1e545382 160endif
b17c1746
DE
161ifeq ($(MONOLITHIC),1)
162__WXLIB_MONO_p = \
c33fae85 163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
1e545382 164endif
b17c1746 165ifeq ($(USE_GUI),1)
9c2d002b 166__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
1e545382 167endif
2d611b5c 168ifeq ($(USE_GUI),1)
9c2d002b 169__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c
VS
170endif
171ifeq ($(USE_GUI),1)
9c2d002b 172__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
2d611b5c 173endif
b17c1746
DE
174ifeq ($(MSLU),1)
175__UNICOWS_LIB_p = -lunicows
2d611b5c 176endif
3abcf424
RD
177ifeq ($(USE_GDIPLUS),1)
178__GDIPLUS_LIB_p = -lgdiplus
179endif
b17c1746
DE
180ifeq ($(BUILD),debug)
181ifeq ($(DEBUG_INFO),default)
182__DEBUGINFO = -g
19c35fa5 183endif
2d611b5c 184endif
b17c1746
DE
185ifeq ($(BUILD),release)
186ifeq ($(DEBUG_INFO),default)
187__DEBUGINFO =
2d611b5c 188endif
2d611b5c 189endif
b17c1746
DE
190ifeq ($(DEBUG_INFO),0)
191__DEBUGINFO =
2d611b5c 192endif
b17c1746
DE
193ifeq ($(DEBUG_INFO),1)
194__DEBUGINFO = -g
2d611b5c 195endif
8c9f8f91
JS
196ifeq ($(USE_THREADS),0)
197__THREADSFLAG =
198endif
199ifeq ($(USE_THREADS),1)
200__THREADSFLAG = -mthreads
201endif
2d611b5c 202
2d611b5c
VS
203
204all: $(OBJS)
205$(OBJS):
206 -if not exist $(OBJS) mkdir $(OBJS)
207
208### Targets: ###
209
1e545382 210all: $(OBJS)\stctest.exe data
88a8b04e 211
b17c1746
DE
212clean:
213 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 214 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746 215 -if exist $(OBJS)\stctest.exe del $(OBJS)\stctest.exe
88a8b04e 216
b17c1746 217$(OBJS)\stctest.exe: $(STCTEST_OBJECTS) $(OBJS)\stctest_sample_rc.o
b44f5137 218 $(CXX) -o $@ $(STCTEST_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_STC_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) -lwxscintilla$(WXDEBUGFLAG) $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
b17c1746
DE
219
220data:
221 if not exist $(OBJS) mkdir $(OBJS)
222 for %%f in (stctest.cpp) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
2d611b5c 223
1c3a6972 224$(OBJS)\stctest_stctest.o: ./stctest.cpp
0d90d6ea 225 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 226
b17c1746 227$(OBJS)\stctest_edit.o: ./edit.cpp
0d90d6ea 228 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $(CPPDEPS) $<
1e545382 229
b17c1746 230$(OBJS)\stctest_prefs.o: ./prefs.cpp
0d90d6ea 231 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 232
54429bb3
RD
233$(OBJS)\stctest_sample_rc.o: ./../sample.rc
234 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
235
1e545382 236.PHONY: all clean data
b14abf14 237
8c9f8f91 238
6e0fbb3d
VS
239SHELL := $(COMSPEC)
240
0d90d6ea
JS
241# Dependencies tracking:
242-include $(OBJS)/*.d