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