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