]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
update wxpresets for new osx_carbon and osx_cocoa names provided by the wx-config...
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
d5e7ffcf
KO
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.6 (http://www.bakefile.org)\r
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7include ../../build/msw/config.gcc\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13### Variables: ###\r
14\r
15CPPDEPS = -MT$@ -MF$@.d -MD -MP\r
16WX_RELEASE_NODOT = 29\r
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \\r
28 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \\r
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
30CONSOLE_OBJECTS = \\r
31 $(OBJS)\console_console.o\r
32\r
33### Conditionally set variables: ###\r
34\r
35ifeq ($(GCC_VERSION),2.95)\r
36GCCFLAGS = -fvtable-thunks\r
37endif\r
38ifeq ($(USE_GUI),0)\r
39PORTNAME = base\r
40endif\r
41ifeq ($(USE_GUI),1)\r
42PORTNAME = msw\r
43endif\r
44ifeq ($(BUILD),debug)\r
45WXDEBUGFLAG = d\r
46endif\r
47ifeq ($(UNICODE),1)\r
48WXUNICODEFLAG = u\r
49endif\r
50ifeq ($(WXUNIV),1)\r
51WXUNIVNAME = univ\r
52endif\r
53ifeq ($(SHARED),1)\r
54WXDLLFLAG = dll\r
55endif\r
56ifeq ($(SHARED),0)\r
57LIBTYPE_SUFFIX = lib\r
58endif\r
59ifeq ($(SHARED),1)\r
60LIBTYPE_SUFFIX = dll\r
61endif\r
62ifeq ($(MONOLITHIC),0)\r
63EXTRALIBS_FOR_BASE = \r
64endif\r
65ifeq ($(MONOLITHIC),1)\r
66EXTRALIBS_FOR_BASE = \r
67endif\r
68ifeq ($(BUILD),debug)\r
69__OPTIMIZEFLAG_2 = -O0\r
70endif\r
71ifeq ($(BUILD),release)\r
72__OPTIMIZEFLAG_2 = -O2\r
73endif\r
74ifeq ($(USE_RTTI),0)\r
75__RTTIFLAG_5 = -fno-rtti\r
76endif\r
77ifeq ($(USE_RTTI),1)\r
78__RTTIFLAG_5 = \r
79endif\r
80ifeq ($(USE_EXCEPTIONS),0)\r
81__EXCEPTIONSFLAG_6 = -fno-exceptions\r
82endif\r
83ifeq ($(USE_EXCEPTIONS),1)\r
84__EXCEPTIONSFLAG_6 = \r
85endif\r
86ifeq ($(WXUNIV),1)\r
87__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
88endif\r
89ifeq ($(DEBUG_FLAG),0)\r
90__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
91endif\r
92ifeq ($(USE_EXCEPTIONS),0)\r
93__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
94endif\r
95ifeq ($(USE_RTTI),0)\r
96__RTTI_DEFINE_p = -DwxNO_RTTI\r
97endif\r
98ifeq ($(USE_THREADS),0)\r
99__THREAD_DEFINE_p = -DwxNO_THREADS\r
100endif\r
101ifeq ($(UNICODE),0)\r
102__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
103endif\r
104ifeq ($(UNICODE),1)\r
105__UNICODE_DEFINE_p = -D_UNICODE\r
106endif\r
107ifeq ($(MSLU),1)\r
108__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
109endif\r
110ifeq ($(USE_GDIPLUS),1)\r
111__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1\r
112endif\r
113ifeq ($(SHARED),1)\r
114__DLLFLAG_p = -DWXUSINGDLL\r
115endif\r
116ifeq ($(MONOLITHIC),0)\r
117__WXLIB_NET_p = \\r
118 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
119endif\r
120ifeq ($(MONOLITHIC),0)\r
121__WXLIB_BASE_p = \\r
122 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
123endif\r
124ifeq ($(MONOLITHIC),1)\r
125__WXLIB_MONO_p = \\r
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
127endif\r
128ifeq ($(MSLU),1)\r
129__UNICOWS_LIB_p = -lunicows\r
130endif\r
131ifeq ($(USE_GDIPLUS),1)\r
132__GDIPLUS_LIB_p = -lgdiplus\r
133endif\r
134ifeq ($(BUILD),debug)\r
135ifeq ($(DEBUG_INFO),default)\r
136__DEBUGINFO = -g\r
137endif\r
138endif\r
139ifeq ($(BUILD),release)\r
140ifeq ($(DEBUG_INFO),default)\r
141__DEBUGINFO = \r
142endif\r
143endif\r
144ifeq ($(DEBUG_INFO),0)\r
145__DEBUGINFO = \r
146endif\r
147ifeq ($(DEBUG_INFO),1)\r
148__DEBUGINFO = -g\r
149endif\r
150ifeq ($(USE_THREADS),0)\r
151__THREADSFLAG = \r
152endif\r
153ifeq ($(USE_THREADS),1)\r
154__THREADSFLAG = -mthreads\r
155endif\r
156\r
157\r
158all: $(OBJS)\r
159$(OBJS):\r
160 -if not exist $(OBJS) mkdir $(OBJS)\r
161\r
162### Targets: ###\r
163\r
164all: $(OBJS)\console.exe data\r
165\r
166clean: \r
167 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
168 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
169 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe\r
170\r
171$(OBJS)\console.exe: $(CONSOLE_OBJECTS)\r
172 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(LDFLAGS) $(__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 -lwininet\r
173\r
174data: \r
175 if not exist $(OBJS) mkdir $(OBJS)\r
176 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
177\r
178$(OBJS)\console_console.o: ./console.cpp\r
179 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $(CPPDEPS) $<\r
180\r
181.PHONY: all clean data\r
182\r
183\r
184SHELL := $(COMSPEC)\r
185\r
186# Dependencies tracking:\r
187-include $(OBJS)/*.d\r