]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
added public wxInfoMessageBox() (slightly modified patch 1828235)
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
444833b3 3# Bakefile 0.2.2 (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
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
b17c1746
DE
111ifeq ($(UNICODE),1)
112__UNICODE_DEFINE_p = -D_UNICODE
113endif
2113bc77
MW
114ifeq ($(MSLU),1)
115__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
116endif
3abcf424
RD
117ifeq ($(USE_GDIPLUS),1)
118__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
119endif
3b20263d
VS
120ifeq ($(SHARED),1)
121__DLLFLAG_p = -DWXUSINGDLL
122endif
b17c1746 123ifeq ($(MONOLITHIC),0)
c33fae85
RN
124__WXLIB_NET_p = \
125 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 126endif
b17c1746 127ifeq ($(MONOLITHIC),0)
c33fae85
RN
128__WXLIB_BASE_p = \
129 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 130endif
b17c1746
DE
131ifeq ($(MONOLITHIC),1)
132__WXLIB_MONO_p = \
c33fae85 133 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 134endif
b17c1746
DE
135ifeq ($(MSLU),1)
136__UNICOWS_LIB_p = -lunicows
3fe8bc14 137endif
3abcf424
RD
138ifeq ($(USE_GDIPLUS),1)
139__GDIPLUS_LIB_p = -lgdiplus
140endif
b17c1746
DE
141ifeq ($(BUILD),debug)
142ifeq ($(DEBUG_INFO),default)
143__DEBUGINFO = -g
4e209a20 144endif
3b20263d 145endif
b17c1746
DE
146ifeq ($(BUILD),release)
147ifeq ($(DEBUG_INFO),default)
148__DEBUGINFO =
3b20263d 149endif
651bb0c9 150endif
b17c1746
DE
151ifeq ($(DEBUG_INFO),0)
152__DEBUGINFO =
548d77c7 153endif
b17c1746
DE
154ifeq ($(DEBUG_INFO),1)
155__DEBUGINFO = -g
3b20263d 156endif
8c9f8f91
JS
157ifeq ($(USE_THREADS),0)
158__THREADSFLAG =
159endif
160ifeq ($(USE_THREADS),1)
161__THREADSFLAG = -mthreads
162endif
3b20263d
VS
163
164
165all: $(OBJS)
166$(OBJS):
167 -if not exist $(OBJS) mkdir $(OBJS)
168
169### Targets: ###
170
171all: $(OBJS)\console.exe data
172
3b20263d
VS
173clean:
174 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 175 -if exist $(OBJS)\*.d del $(OBJS)\*.d
3b20263d 176 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
3b20263d 177
25a73439 178$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
70fd78f3 179 $(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
180
181data:
182 if not exist $(OBJS) mkdir $(OBJS)
183 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
184
b17c1746 185$(OBJS)\console_console.o: ./console.cpp
0d90d6ea 186 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $(CPPDEPS) $<
b17c1746 187
fd9f42b6 188.PHONY: all clean data
b14abf14 189
8c9f8f91 190
0d90d6ea
JS
191# Dependencies tracking:
192-include $(OBJS)/*.d