]> git.saurik.com Git - wxWidgets.git/blame - utils/ifacecheck/src/makefile.gcc
Make TOOLKIT variable constant in MSW makefiles.
[wxWidgets.git] / utils / ifacecheck / src / makefile.gcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
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
14b682f7
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24IFACECHECK_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
22a3b6e4 25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
00fb97de
KO
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include \\r
f82b7036 29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
22a3b6e4
VZ
30 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
31 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
f82b7036
KO
32IFACECHECK_OBJECTS = \\r
33 $(OBJS)\ifacecheck_ifacecheck.o \\r
34 $(OBJS)\ifacecheck_xmlparser.o\r
35\r
36### Conditionally set variables: ###\r
37\r
22a3b6e4
VZ
38ifeq ($(TOOLKIT),GTK)
39WIN32_TOOLKIT_LOWERCASE = gtk
40endif
41ifeq ($(TOOLKIT),MSW)
42WIN32_TOOLKIT_LOWERCASE = msw
43endif
f82b7036
KO
44ifeq ($(GCC_VERSION),2.95)\r
45GCCFLAGS = -fvtable-thunks\r
46endif\r
47ifeq ($(USE_GUI),0)\r
48PORTNAME = base\r
49endif\r
50ifeq ($(USE_GUI),1)\r
22a3b6e4
VZ
51PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
52endif
53ifeq ($(TOOLKIT),MAC)
54WXBASEPORT = _carbon
55endif
14b682f7
VZ
56ifeq ($(OFFICIAL_BUILD),1)
57COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 58endif\r
f82b7036
KO
59ifeq ($(BUILD),debug)\r
60WXDEBUGFLAG = d\r
61endif\r
62ifeq ($(UNICODE),1)\r
63WXUNICODEFLAG = u\r
64endif\r
65ifeq ($(WXUNIV),1)\r
66WXUNIVNAME = univ\r
67endif\r
68ifeq ($(SHARED),1)\r
69WXDLLFLAG = dll\r
70endif\r
71ifeq ($(SHARED),0)\r
72LIBTYPE_SUFFIX = lib\r
73endif\r
74ifeq ($(SHARED),1)\r
75LIBTYPE_SUFFIX = dll\r
76endif\r
77ifeq ($(MONOLITHIC),0)\r
78EXTRALIBS_FOR_BASE = \r
79endif\r
80ifeq ($(MONOLITHIC),1)\r
51ec29ea 81EXTRALIBS_FOR_BASE = \r
f82b7036 82endif\r
22a3b6e4
VZ
83ifeq ($(TOOLKIT),GTK)
84CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
85endif
f82b7036
KO
86ifeq ($(BUILD),debug)\r
87__OPTIMIZEFLAG_2 = -O0\r
88endif\r
89ifeq ($(BUILD),release)\r
90__OPTIMIZEFLAG_2 = -O2\r
91endif\r
92ifeq ($(USE_RTTI),0)\r
93__RTTIFLAG_5 = -fno-rtti\r
94endif\r
95ifeq ($(USE_RTTI),1)\r
96__RTTIFLAG_5 = \r
97endif\r
98ifeq ($(USE_EXCEPTIONS),0)\r
99__EXCEPTIONSFLAG_6 = -fno-exceptions\r
100endif\r
101ifeq ($(USE_EXCEPTIONS),1)\r
102__EXCEPTIONSFLAG_6 = \r
103endif\r
104ifeq ($(WXUNIV),1)\r
105__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
106endif\r
107ifeq ($(DEBUG_FLAG),0)\r
108__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
109endif\r
00fb97de
KO
110ifeq ($(BUILD),release)\r
111__NDEBUG_DEFINE_p = -DNDEBUG\r
112endif\r
f82b7036
KO
113ifeq ($(USE_EXCEPTIONS),0)\r
114__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
115endif\r
116ifeq ($(USE_RTTI),0)\r
117__RTTI_DEFINE_p = -DwxNO_RTTI\r
118endif\r
119ifeq ($(USE_THREADS),0)\r
120__THREAD_DEFINE_p = -DwxNO_THREADS\r
121endif\r
122ifeq ($(UNICODE),0)\r
123__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
124endif\r
125ifeq ($(UNICODE),1)\r
126__UNICODE_DEFINE_p = -D_UNICODE\r
127endif\r
128ifeq ($(MSLU),1)\r
129__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
130endif\r
f82b7036
KO
131ifeq ($(USE_CAIRO),1)\r
132____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
133endif\r
134ifeq ($(SHARED),1)\r
135__DLLFLAG_p = -DWXUSINGDLL\r
136endif\r
137ifeq ($(MONOLITHIC),0)\r
138__WXLIB_XML_p = \\r
22a3b6e4 139 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
f82b7036
KO
140endif\r
141ifeq ($(MONOLITHIC),0)\r
142__WXLIB_BASE_p = \\r
22a3b6e4 143 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f82b7036
KO
144endif\r
145ifeq ($(MONOLITHIC),1)\r
146__WXLIB_MONO_p = \\r
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
148endif\r
57c74474
VZ
149ifeq ($(MONOLITHIC),1)\r
150__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
151endif\r
152ifeq ($(USE_GUI),1)\r
153__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
154endif\r
f82b7036
KO
155ifeq ($(MSLU),1)\r
156__UNICOWS_LIB_p = -lunicows\r
157endif\r
f82b7036
KO
158ifeq ($(USE_CAIRO),1)\r
159__CAIRO_LIB_p = -lcairo\r
160endif\r
161ifeq ($(USE_CAIRO),1)\r
162____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
163endif\r
164ifeq ($(BUILD),debug)\r
165ifeq ($(DEBUG_INFO),default)\r
166__DEBUGINFO = -g\r
167endif\r
168endif\r
169ifeq ($(BUILD),release)\r
170ifeq ($(DEBUG_INFO),default)\r
171__DEBUGINFO = \r
172endif\r
173endif\r
174ifeq ($(DEBUG_INFO),0)\r
175__DEBUGINFO = \r
176endif\r
177ifeq ($(DEBUG_INFO),1)\r
178__DEBUGINFO = -g\r
179endif\r
180ifeq ($(USE_THREADS),0)\r
181__THREADSFLAG = \r
182endif\r
183ifeq ($(USE_THREADS),1)\r
184__THREADSFLAG = -mthreads\r
185endif\r
186\r
187\r
188all: $(OBJS)\r
189$(OBJS):\r
190 -if not exist $(OBJS) mkdir $(OBJS)\r
191\r
192### Targets: ###\r
193\r
194all: $(OBJS)\ifacecheck.exe\r
195\r
196clean: \r
197 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
198 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
199 -if exist $(OBJS)\ifacecheck.exe del $(OBJS)\ifacecheck.exe\r
200\r
201$(OBJS)\ifacecheck.exe: $(IFACECHECK_OBJECTS)\r
57c74474 202 $(CXX) -o $@ $(IFACECHECK_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
f82b7036
KO
203\r
204$(OBJS)\ifacecheck_ifacecheck.o: ./ifacecheck.cpp\r
205 $(CXX) -c -o $@ $(IFACECHECK_CXXFLAGS) $(CPPDEPS) $<\r
206\r
207$(OBJS)\ifacecheck_xmlparser.o: ./xmlparser.cpp\r
208 $(CXX) -c -o $@ $(IFACECHECK_CXXFLAGS) $(CPPDEPS) $<\r
209\r
210.PHONY: all clean\r
211\r
212\r
213SHELL := $(COMSPEC)\r
214\r
215# Dependencies tracking:\r
216-include $(OBJS)/*.d\r