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