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