]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/stc/makefile.gcc
Removed ambiguity between deprecated and new constructor.
[wxWidgets.git] / contrib / samples / stc / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
2d611b5c
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19c35fa5
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 21STCTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
2d611b5c 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 -I.\..\..\include \
b14abf14
JS
25 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \
26 $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
27STCTEST_OBJECTS = \
28 $(OBJS)\stctest_sample_rc.o \
88a8b04e
RD
29 $(OBJS)\stctest_stctest.o \
30 $(OBJS)\stctest_edit.o \
31 $(OBJS)\stctest_prefs.o
2d611b5c
VS
32
33### Conditionally set variables: ###
34
35ifeq ($(GCC_VERSION),2.95)
36GCCFLAGS = -fvtable-thunks
37endif
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
50WXDEBUGFLAG = d
51endif
2d611b5c
VS
52ifeq ($(UNICODE),1)
53WXUNICODEFLAG = u
54endif
55ifeq ($(WXUNIV),1)
56WXUNIVNAME = univ
57endif
b17c1746
DE
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
2d611b5c 60endif
b14abf14
JS
61ifeq ($(SHARED),0)
62LIBTYPE_SUFFIX = lib
63endif
64ifeq ($(SHARED),1)
65LIBTYPE_SUFFIX = dll
66endif
dd65d8c8
RN
67ifeq ($(MONOLITHIC),0)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(MONOLITHIC),1)
71EXTRALIBS_FOR_BASE =
72endif
b17c1746
DE
73ifeq ($(BUILD),debug)
74__OPTIMIZEFLAG_2 = -O0
2d611b5c
VS
75endif
76ifeq ($(BUILD),release)
b17c1746 77__OPTIMIZEFLAG_2 = -O2
2d611b5c 78endif
b17c1746
DE
79ifeq ($(USE_EXCEPTIONS),0)
80__EXCEPTIONSFLAG_4 = -fno-rtti
2d611b5c 81endif
b17c1746
DE
82ifeq ($(USE_EXCEPTIONS),1)
83__EXCEPTIONSFLAG_4 =
2d611b5c 84endif
b17c1746
DE
85ifeq ($(USE_EXCEPTIONS),0)
86__EXCEPTIONSFLAG_5 = -fno-exceptions
87endif
88ifeq ($(USE_EXCEPTIONS),1)
89__EXCEPTIONSFLAG_5 =
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
96endif
97ifeq ($(BUILD),debug)
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
b17c1746
DE
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p = -D_UNICODE
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p_1 = --define _UNICODE
118endif
2d611b5c
VS
119ifeq ($(SHARED),1)
120__DLLFLAG_p = -DWXUSINGDLL
121endif
122ifeq ($(SHARED),1)
123__DLLFLAG_p_1 = --define WXUSINGDLL
124endif
b17c1746
DE
125ifeq ($(MONOLITHIC),0)
126__WXLIB_CORE_p = \
c33fae85 127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
1e545382 128endif
b17c1746 129ifeq ($(MONOLITHIC),0)
c33fae85
RN
130__WXLIB_BASE_p = \
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
1e545382 132endif
b17c1746
DE
133ifeq ($(MONOLITHIC),1)
134__WXLIB_MONO_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
1e545382 136endif
b17c1746 137ifeq ($(USE_GUI),1)
9c2d002b 138__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
1e545382 139endif
2d611b5c 140ifeq ($(USE_GUI),1)
9c2d002b 141__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c
VS
142endif
143ifeq ($(USE_GUI),1)
9c2d002b 144__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
2d611b5c 145endif
b17c1746
DE
146ifeq ($(MSLU),1)
147__UNICOWS_LIB_p = -lunicows
2d611b5c 148endif
b17c1746
DE
149ifeq ($(BUILD),debug)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO = -g
19c35fa5 152endif
2d611b5c 153endif
b17c1746
DE
154ifeq ($(BUILD),release)
155ifeq ($(DEBUG_INFO),default)
156__DEBUGINFO =
2d611b5c 157endif
2d611b5c 158endif
b17c1746
DE
159ifeq ($(DEBUG_INFO),0)
160__DEBUGINFO =
2d611b5c 161endif
b17c1746
DE
162ifeq ($(DEBUG_INFO),1)
163__DEBUGINFO = -g
2d611b5c
VS
164endif
165
2d611b5c
VS
166
167all: $(OBJS)
168$(OBJS):
169 -if not exist $(OBJS) mkdir $(OBJS)
170
171### Targets: ###
172
1e545382 173all: $(OBJS)\stctest.exe data
88a8b04e 174
b17c1746
DE
175clean:
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
177 -if exist $(OBJS)\stctest.exe del $(OBJS)\stctest.exe
88a8b04e 178
b17c1746 179$(OBJS)\stctest.exe: $(STCTEST_OBJECTS) $(OBJS)\stctest_sample_rc.o
dd65d8c8 180 $(CXX) -o $@ $(STCTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc $(__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
DE
181
182data:
183 if not exist $(OBJS) mkdir $(OBJS)
184 for %%f in (stctest.cpp) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
2d611b5c 185
1c3a6972 186$(OBJS)\stctest_sample_rc.o: ./../../../samples/sample.rc
b14abf14 187 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
2d611b5c 188
1c3a6972 189$(OBJS)\stctest_stctest.o: ./stctest.cpp
2d611b5c
VS
190 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $<
191
b17c1746
DE
192$(OBJS)\stctest_edit.o: ./edit.cpp
193 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $<
1e545382 194
b17c1746
DE
195$(OBJS)\stctest_prefs.o: ./prefs.cpp
196 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $<
2d611b5c 197
1e545382 198.PHONY: all clean data
b14abf14 199