]> git.saurik.com Git - wxWidgets.git/blame - utils/ifacecheck/src/makefile.gcc
Forward port of r60190 (wxMSW Cairo support) to trunk.
[wxWidgets.git] / utils / ifacecheck / src / makefile.gcc
CommitLineData
78808897
VZ
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.7 (http://www.bakefile.org)
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 -MP
16WX_RELEASE_NODOT = 29
17COMPILER_PREFIX = gcc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23IFACECHECK_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) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
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)
30IFACECHECK_OBJECTS = \
31 $(OBJS)\ifacecheck_ifacecheck.o \
32 $(OBJS)\ifacecheck_xmlparser.o
33
34### Conditionally set variables: ###
35
36ifeq ($(GCC_VERSION),2.95)
37GCCFLAGS = -fvtable-thunks
38endif
39ifeq ($(USE_GUI),0)
40PORTNAME = base
41endif
42ifeq ($(USE_GUI),1)
43PORTNAME = msw
44endif
45ifeq ($(BUILD),debug)
46WXDEBUGFLAG = d
47endif
48ifeq ($(UNICODE),1)
49WXUNICODEFLAG = u
50endif
51ifeq ($(WXUNIV),1)
52WXUNIVNAME = univ
53endif
54ifeq ($(SHARED),1)
55WXDLLFLAG = dll
56endif
57ifeq ($(SHARED),0)
58LIBTYPE_SUFFIX = lib
59endif
60ifeq ($(SHARED),1)
61LIBTYPE_SUFFIX = dll
62endif
63ifeq ($(MONOLITHIC),0)
64EXTRALIBS_FOR_BASE =
65endif
66ifeq ($(MONOLITHIC),1)
67EXTRALIBS_FOR_BASE =
68endif
69ifeq ($(BUILD),debug)
70__OPTIMIZEFLAG_2 = -O0
71endif
72ifeq ($(BUILD),release)
73__OPTIMIZEFLAG_2 = -O2
74endif
75ifeq ($(USE_RTTI),0)
76__RTTIFLAG_5 = -fno-rtti
77endif
78ifeq ($(USE_RTTI),1)
79__RTTIFLAG_5 =
80endif
81ifeq ($(USE_EXCEPTIONS),0)
82__EXCEPTIONSFLAG_6 = -fno-exceptions
83endif
84ifeq ($(USE_EXCEPTIONS),1)
85__EXCEPTIONSFLAG_6 =
86endif
87ifeq ($(WXUNIV),1)
88__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
89endif
90ifeq ($(DEBUG_FLAG),0)
91__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
92endif
93ifeq ($(USE_EXCEPTIONS),0)
94__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
95endif
96ifeq ($(USE_RTTI),0)
97__RTTI_DEFINE_p = -DwxNO_RTTI
98endif
99ifeq ($(USE_THREADS),0)
100__THREAD_DEFINE_p = -DwxNO_THREADS
101endif
102ifeq ($(UNICODE),0)
103__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
104endif
105ifeq ($(UNICODE),1)
106__UNICODE_DEFINE_p = -D_UNICODE
107endif
108ifeq ($(MSLU),1)
109__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
110endif
111ifeq ($(USE_GDIPLUS),1)
112__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
113endif
114ifeq ($(SHARED),1)
115__DLLFLAG_p = -DWXUSINGDLL
116endif
117ifeq ($(MONOLITHIC),0)
118__WXLIB_XML_p = \
119 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
120endif
121ifeq ($(MONOLITHIC),0)
122__WXLIB_BASE_p = \
123 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
124endif
125ifeq ($(MONOLITHIC),1)
126__WXLIB_MONO_p = \
127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
128endif
129ifeq ($(MSLU),1)
130__UNICOWS_LIB_p = -lunicows
131endif
132ifeq ($(USE_GDIPLUS),1)
133__GDIPLUS_LIB_p = -lgdiplus
134endif
135ifeq ($(BUILD),debug)
136ifeq ($(DEBUG_INFO),default)
137__DEBUGINFO = -g
138endif
139endif
140ifeq ($(BUILD),release)
141ifeq ($(DEBUG_INFO),default)
142__DEBUGINFO =
143endif
144endif
145ifeq ($(DEBUG_INFO),0)
146__DEBUGINFO =
147endif
148ifeq ($(DEBUG_INFO),1)
149__DEBUGINFO = -g
150endif
151ifeq ($(USE_THREADS),0)
152__THREADSFLAG =
153endif
154ifeq ($(USE_THREADS),1)
155__THREADSFLAG = -mthreads
156endif
157
158
159all: $(OBJS)
160$(OBJS):
161 -if not exist $(OBJS) mkdir $(OBJS)
162
163### Targets: ###
164
165all: $(OBJS)\ifacecheck.exe
166
167clean:
168 -if exist $(OBJS)\*.o del $(OBJS)\*.o
169 -if exist $(OBJS)\*.d del $(OBJS)\*.d
170 -if exist $(OBJS)\ifacecheck.exe del $(OBJS)\ifacecheck.exe
171
172$(OBJS)\ifacecheck.exe: $(IFACECHECK_OBJECTS)
173 $(CXX) -o $@ $(IFACECHECK_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(LDFLAGS) $(__WXLIB_XML_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
174
175$(OBJS)\ifacecheck_ifacecheck.o: ./ifacecheck.cpp
176 $(CXX) -c -o $@ $(IFACECHECK_CXXFLAGS) $(CPPDEPS) $<
177
178$(OBJS)\ifacecheck_xmlparser.o: ./xmlparser.cpp
179 $(CXX) -c -o $@ $(IFACECHECK_CXXFLAGS) $(CPPDEPS) $<
180
181.PHONY: all clean
182
183
184SHELL := $(COMSPEC)
185
186# Dependencies tracking:
187-include $(OBJS)/*.d