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