]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/console/makefile.gcc
Version 2.6 in the readme.txt
[wxWidgets.git] / samples / console / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15WX_RELEASE_NODOT = 25
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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)
27CONSOLE_OBJECTS = \
28 $(OBJS)\console_console.o
29
30### Conditionally set variables: ###
31
32ifeq ($(GCC_VERSION),2.95)
33GCCFLAGS = -fvtable-thunks
34endif
35ifeq ($(USE_GUI),0)
36PORTNAME = base
37endif
38ifeq ($(USE_GUI),1)
39PORTNAME = msw
40endif
41ifeq ($(BUILD),debug)
42ifeq ($(DEBUG_FLAG),default)
43WXDEBUGFLAG = d
44endif
45endif
46ifeq ($(DEBUG_FLAG),1)
47WXDEBUGFLAG = d
48endif
49ifeq ($(UNICODE),1)
50WXUNICODEFLAG = u
51endif
52ifeq ($(WXUNIV),1)
53WXUNIVNAME = univ
54endif
55ifeq ($(SHARED),1)
56WXDLLFLAG = dll
57endif
58ifeq ($(SHARED),0)
59LIBTYPE_SUFFIX = lib
60endif
61ifeq ($(SHARED),1)
62LIBTYPE_SUFFIX = dll
63endif
64ifeq ($(MONOLITHIC),0)
65EXTRALIBS_FOR_BASE =
66endif
67ifeq ($(MONOLITHIC),1)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(BUILD),debug)
71__OPTIMIZEFLAG_2 = -O0
72endif
73ifeq ($(BUILD),release)
74__OPTIMIZEFLAG_2 = -O2
75endif
76ifeq ($(USE_RTTI),0)
77__RTTIFLAG_5 = -fno-rtti
78endif
79ifeq ($(USE_RTTI),1)
80__RTTIFLAG_5 =
81endif
82ifeq ($(USE_EXCEPTIONS),0)
83__EXCEPTIONSFLAG_6 = -fno-exceptions
84endif
85ifeq ($(USE_EXCEPTIONS),1)
86__EXCEPTIONSFLAG_6 =
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
90endif
91ifeq ($(BUILD),debug)
92ifeq ($(DEBUG_FLAG),default)
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95endif
96ifeq ($(DEBUG_FLAG),1)
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98endif
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
108ifeq ($(UNICODE),1)
109__UNICODE_DEFINE_p = -D_UNICODE
110endif
111ifeq ($(SHARED),1)
112__DLLFLAG_p = -DWXUSINGDLL
113endif
114ifeq ($(MONOLITHIC),0)
115__WXLIB_NET_p = \
116 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
117endif
118ifeq ($(MONOLITHIC),0)
119ifeq ($(USE_ODBC),1)
120__WXLIB_ODBC_p = \
121 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
122endif
123endif
124ifeq ($(MONOLITHIC),0)
125__WXLIB_BASE_p = \
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
127endif
128ifeq ($(MONOLITHIC),1)
129__WXLIB_MONO_p = \
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
131endif
132ifeq ($(USE_GUI),1)
133__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
134endif
135ifeq ($(USE_GUI),1)
136__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
137endif
138ifeq ($(USE_GUI),1)
139__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
140endif
141ifeq ($(MSLU),1)
142__UNICOWS_LIB_p = -lunicows
143endif
144ifeq ($(BUILD),debug)
145ifeq ($(DEBUG_INFO),default)
146__DEBUGINFO = -g
147endif
148endif
149ifeq ($(BUILD),release)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO =
152endif
153endif
154ifeq ($(DEBUG_INFO),0)
155__DEBUGINFO =
156endif
157ifeq ($(DEBUG_INFO),1)
158__DEBUGINFO = -g
159endif
160ifeq ($(USE_THREADS),0)
161__THREADSFLAG =
162endif
163ifeq ($(USE_THREADS),1)
164__THREADSFLAG = -mthreads
165endif
166
167
168all: $(OBJS)
169$(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172### Targets: ###
173
174all: $(OBJS)\console.exe data
175
176clean:
177 -if exist $(OBJS)\*.o del $(OBJS)\*.o
178 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
179
180$(OBJS)\console.exe: $(CONSOLE_OBJECTS)
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
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
187$(OBJS)\console_console.o: ./console.cpp
188 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
189
190.PHONY: all clean data
191
192