]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
Finished initial review of [q-r] by Utensil Candel also making the enumeration lists...
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (http://www.bakefile.org)
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
ae4ccf12 16WX_RELEASE_NODOT = 29
444833b3 17COMPILER_PREFIX = gcc
b17c1746 18OBJS = \
444833b3
CE
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
23CONSOLE_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) \
3abcf424
RD
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
25a73439
VS
30CONSOLE_OBJECTS = \
31 $(OBJS)\console_console.o
3b20263d
VS
32
33### Conditionally set variables: ###
34
3fe8bc14
VS
35ifeq ($(GCC_VERSION),2.95)
36GCCFLAGS = -fvtable-thunks
37endif
3b20263d
VS
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
25a73439
VS
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
50WXDEBUGFLAG = d
51endif
3b20263d
VS
52ifeq ($(UNICODE),1)
53WXUNICODEFLAG = u
54endif
55ifeq ($(WXUNIV),1)
56WXUNIVNAME = univ
57endif
b17c1746
DE
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
25a73439 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
3fe8bc14
VS
75endif
76ifeq ($(BUILD),release)
b17c1746 77__OPTIMIZEFLAG_2 = -O2
25a73439 78endif
8c9f8f91
JS
79ifeq ($(USE_RTTI),0)
80__RTTIFLAG_5 = -fno-rtti
25a73439 81endif
8c9f8f91
JS
82ifeq ($(USE_RTTI),1)
83__RTTIFLAG_5 =
25a73439 84endif
b17c1746 85ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 86__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
87endif
88ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 89__EXCEPTIONSFLAG_6 =
b17c1746
DE
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3fe8bc14
VS
93endif
94ifeq ($(BUILD),debug)
25a73439
VS
95ifeq ($(DEBUG_FLAG),default)
96__DEBUG_DEFINE_p = -D__WXDEBUG__
97endif
98endif
99ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
100__DEBUG_DEFINE_p = -D__WXDEBUG__
101endif
8c9f8f91
JS
102ifeq ($(USE_EXCEPTIONS),0)
103__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
104endif
105ifeq ($(USE_RTTI),0)
106__RTTI_DEFINE_p = -DwxNO_RTTI
107endif
108ifeq ($(USE_THREADS),0)
109__THREAD_DEFINE_p = -DwxNO_THREADS
110endif
7379e476
VZ
111ifeq ($(UNICODE),0)
112__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
113endif
b17c1746
DE
114ifeq ($(UNICODE),1)
115__UNICODE_DEFINE_p = -D_UNICODE
116endif
2113bc77
MW
117ifeq ($(MSLU),1)
118__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
119endif
3abcf424
RD
120ifeq ($(USE_GDIPLUS),1)
121__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
122endif
3b20263d
VS
123ifeq ($(SHARED),1)
124__DLLFLAG_p = -DWXUSINGDLL
125endif
b17c1746 126ifeq ($(MONOLITHIC),0)
c33fae85
RN
127__WXLIB_NET_p = \
128 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 129endif
b17c1746 130ifeq ($(MONOLITHIC),0)
c33fae85
RN
131__WXLIB_BASE_p = \
132 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 133endif
b17c1746
DE
134ifeq ($(MONOLITHIC),1)
135__WXLIB_MONO_p = \
c33fae85 136 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 137endif
b17c1746
DE
138ifeq ($(MSLU),1)
139__UNICOWS_LIB_p = -lunicows
3fe8bc14 140endif
3abcf424
RD
141ifeq ($(USE_GDIPLUS),1)
142__GDIPLUS_LIB_p = -lgdiplus
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
0d90d6ea 178 -if exist $(OBJS)\*.d del $(OBJS)\*.d
3b20263d 179 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3b20263d 180
25a73439 181$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
70fd78f3 182 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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
3b20263d
VS
183
184data:
185 if not exist $(OBJS) mkdir $(OBJS)
186 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
187
b17c1746 188$(OBJS)\console_console.o: ./console.cpp
0d90d6ea 189 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $(CPPDEPS) $<
b17c1746 190
fd9f42b6 191.PHONY: all clean data
b14abf14 192
8c9f8f91 193
6e0fbb3d
VS
194SHELL := $(COMSPEC)
195
0d90d6ea
JS
196# Dependencies tracking:
197-include $(OBJS)/*.d