]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
Corrected InsertColumnItem name
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
25a73439
VS
27CONSOLE_OBJECTS = \
28 $(OBJS)\console_console.o
3b20263d
VS
29
30### Conditionally set variables: ###
31
3fe8bc14
VS
32ifeq ($(GCC_VERSION),2.95)
33GCCFLAGS = -fvtable-thunks
34endif
3b20263d
VS
35ifeq ($(USE_GUI),0)
36PORTNAME = base
37endif
38ifeq ($(USE_GUI),1)
39PORTNAME = msw
40endif
41ifeq ($(BUILD),debug)
25a73439
VS
42ifeq ($(DEBUG_FLAG),default)
43WXDEBUGFLAG = d
44endif
45endif
46ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
47WXDEBUGFLAG = d
48endif
3b20263d
VS
49ifeq ($(UNICODE),1)
50WXUNICODEFLAG = u
51endif
52ifeq ($(WXUNIV),1)
53WXUNIVNAME = univ
54endif
b17c1746
DE
55ifeq ($(SHARED),1)
56WXDLLFLAG = dll
25a73439 57endif
b14abf14
JS
58ifeq ($(SHARED),0)
59LIBTYPE_SUFFIX = lib
60endif
61ifeq ($(SHARED),1)
62LIBTYPE_SUFFIX = dll
63endif
dd65d8c8
RN
64ifeq ($(MONOLITHIC),0)
65EXTRALIBS_FOR_BASE =
66endif
67ifeq ($(MONOLITHIC),1)
68EXTRALIBS_FOR_BASE =
69endif
b17c1746
DE
70ifeq ($(BUILD),debug)
71__OPTIMIZEFLAG_2 = -O0
3fe8bc14
VS
72endif
73ifeq ($(BUILD),release)
b17c1746 74__OPTIMIZEFLAG_2 = -O2
25a73439 75endif
8c9f8f91
JS
76ifeq ($(USE_RTTI),0)
77__RTTIFLAG_5 = -fno-rtti
25a73439 78endif
8c9f8f91
JS
79ifeq ($(USE_RTTI),1)
80__RTTIFLAG_5 =
25a73439 81endif
b17c1746 82ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 83__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
84endif
85ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 86__EXCEPTIONSFLAG_6 =
b17c1746
DE
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3fe8bc14
VS
90endif
91ifeq ($(BUILD),debug)
25a73439
VS
92ifeq ($(DEBUG_FLAG),default)
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95endif
96ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98endif
8c9f8f91
JS
99ifeq ($(USE_EXCEPTIONS),0)
100__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
101endif
102ifeq ($(USE_RTTI),0)
103__RTTI_DEFINE_p = -DwxNO_RTTI
104endif
105ifeq ($(USE_THREADS),0)
106__THREAD_DEFINE_p = -DwxNO_THREADS
107endif
b17c1746
DE
108ifeq ($(UNICODE),1)
109__UNICODE_DEFINE_p = -D_UNICODE
110endif
3b20263d
VS
111ifeq ($(SHARED),1)
112__DLLFLAG_p = -DWXUSINGDLL
113endif
b17c1746 114ifeq ($(MONOLITHIC),0)
c33fae85
RN
115__WXLIB_NET_p = \
116 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 117endif
b17c1746 118ifeq ($(MONOLITHIC),0)
b92ca05a 119ifeq ($(USE_ODBC),1)
c33fae85
RN
120__WXLIB_ODBC_p = \
121 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
b71531ad 122endif
b92ca05a 123endif
b17c1746 124ifeq ($(MONOLITHIC),0)
c33fae85
RN
125__WXLIB_BASE_p = \
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 127endif
b17c1746
DE
128ifeq ($(MONOLITHIC),1)
129__WXLIB_MONO_p = \
c33fae85 130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 131endif
25a73439 132ifeq ($(USE_GUI),1)
9c2d002b 133__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
25a73439
VS
134endif
135ifeq ($(USE_GUI),1)
9c2d002b 136__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
137endif
138ifeq ($(USE_GUI),1)
9c2d002b 139__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 140endif
b17c1746
DE
141ifeq ($(MSLU),1)
142__UNICOWS_LIB_p = -lunicows
3fe8bc14 143endif
b17c1746
DE
144ifeq ($(BUILD),debug)
145ifeq ($(DEBUG_INFO),default)
146__DEBUGINFO = -g
4e209a20 147endif
3b20263d 148endif
b17c1746
DE
149ifeq ($(BUILD),release)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO =
3b20263d 152endif
651bb0c9 153endif
b17c1746
DE
154ifeq ($(DEBUG_INFO),0)
155__DEBUGINFO =
548d77c7 156endif
b17c1746
DE
157ifeq ($(DEBUG_INFO),1)
158__DEBUGINFO = -g
3b20263d 159endif
8c9f8f91
JS
160ifeq ($(USE_THREADS),0)
161__THREADSFLAG =
162endif
163ifeq ($(USE_THREADS),1)
164__THREADSFLAG = -mthreads
165endif
3b20263d
VS
166
167
168all: $(OBJS)
169$(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172### Targets: ###
173
174all: $(OBJS)\console.exe data
175
3b20263d
VS
176clean:
177 -if exist $(OBJS)\*.o del $(OBJS)\*.o
178 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3b20263d 179
25a73439 180$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
8c9f8f91 181 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_NET_p) $(__WXLIB_ODBC_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
3b20263d
VS
182
183data:
184 if not exist $(OBJS) mkdir $(OBJS)
185 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
186
b17c1746
DE
187$(OBJS)\console_console.o: ./console.cpp
188 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
189
fd9f42b6 190.PHONY: all clean data
b14abf14 191
8c9f8f91 192