]> git.saurik.com Git - wxWidgets.git/blame - utils/wxrc/makefile.gcc
silence compiler warnings
[wxWidgets.git] / utils / wxrc / makefile.gcc
CommitLineData
cecc483e
VS
1# =========================================================================
2# This makefile was generated by
7379e476 3# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
cecc483e
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
c33fae85 7include ../../build/msw/config.gcc
cecc483e
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
ae4ccf12 16WX_RELEASE_NODOT = 29
7379e476 17COMPILER_PREFIX = gcc
3f55f5b8 18OBJS = \
7379e476
VZ
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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) \
3abcf424
RD
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)
3f55f5b8
VS
30WXRC_OBJECTS = \
31 $(OBJS)\wxrc_wxrc.o
cecc483e
VS
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)
3f55f5b8
VS
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
50WXDEBUGFLAG = d
51endif
cecc483e
VS
52ifeq ($(UNICODE),1)
53WXUNICODEFLAG = u
54endif
55ifeq ($(WXUNIV),1)
56WXUNIVNAME = univ
57endif
b17c1746
DE
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
3f55f5b8 60endif
162a956b
JS
61ifeq ($(SHARED),0)
62LIBTYPE_SUFFIX = lib
63endif
64ifeq ($(SHARED),1)
65LIBTYPE_SUFFIX = dll
66endif
dd65d8c8
RN
67ifeq ($(MONOLITHIC),0)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(MONOLITHIC),1)
71EXTRALIBS_FOR_BASE =
72endif
d2ec8d84
VS
73ifeq ($(USE_XRC),1)
74__wxrc___depname = $(OBJS)\wxrc.exe
75endif
b17c1746
DE
76ifeq ($(BUILD),debug)
77__OPTIMIZEFLAG_2 = -O0
cecc483e
VS
78endif
79ifeq ($(BUILD),release)
b17c1746 80__OPTIMIZEFLAG_2 = -O2
3f55f5b8 81endif
8c9f8f91
JS
82ifeq ($(USE_RTTI),0)
83__RTTIFLAG_5 = -fno-rtti
3f55f5b8 84endif
8c9f8f91
JS
85ifeq ($(USE_RTTI),1)
86__RTTIFLAG_5 =
3f55f5b8 87endif
b17c1746 88ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 89__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
90endif
91ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 92__EXCEPTIONSFLAG_6 =
b17c1746
DE
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
cecc483e
VS
96endif
97ifeq ($(BUILD),debug)
3f55f5b8
VS
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
8c9f8f91
JS
105ifeq ($(USE_EXCEPTIONS),0)
106__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
107endif
108ifeq ($(USE_RTTI),0)
109__RTTI_DEFINE_p = -DwxNO_RTTI
110endif
111ifeq ($(USE_THREADS),0)
112__THREAD_DEFINE_p = -DwxNO_THREADS
113endif
7379e476
VZ
114ifeq ($(UNICODE),0)
115__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
116endif
b17c1746
DE
117ifeq ($(UNICODE),1)
118__UNICODE_DEFINE_p = -D_UNICODE
119endif
2113bc77
MW
120ifeq ($(MSLU),1)
121__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
122endif
3abcf424
RD
123ifeq ($(USE_GDIPLUS),1)
124__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
125endif
cecc483e
VS
126ifeq ($(SHARED),1)
127__DLLFLAG_p = -DWXUSINGDLL
128endif
b17c1746 129ifeq ($(MONOLITHIC),0)
c33fae85
RN
130__WXLIB_XML_p = \
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 132endif
b17c1746 133ifeq ($(MONOLITHIC),0)
c33fae85
RN
134__WXLIB_BASE_p = \
135 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 136endif
b17c1746
DE
137ifeq ($(MONOLITHIC),1)
138__WXLIB_MONO_p = \
c33fae85 139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 140endif
b17c1746
DE
141ifeq ($(MSLU),1)
142__UNICOWS_LIB_p = -lunicows
3f55f5b8 143endif
3abcf424
RD
144ifeq ($(USE_GDIPLUS),1)
145__GDIPLUS_LIB_p = -lgdiplus
146endif
b17c1746
DE
147ifeq ($(BUILD),debug)
148ifeq ($(DEBUG_INFO),default)
149__DEBUGINFO = -g
cecc483e 150endif
2265a2d5 151endif
b17c1746
DE
152ifeq ($(BUILD),release)
153ifeq ($(DEBUG_INFO),default)
154__DEBUGINFO =
cecc483e 155endif
cecc483e 156endif
b17c1746
DE
157ifeq ($(DEBUG_INFO),0)
158__DEBUGINFO =
cecc483e 159endif
b17c1746
DE
160ifeq ($(DEBUG_INFO),1)
161__DEBUGINFO = -g
cecc483e 162endif
8c9f8f91
JS
163ifeq ($(USE_THREADS),0)
164__THREADSFLAG =
165endif
166ifeq ($(USE_THREADS),1)
167__THREADSFLAG = -mthreads
168endif
cecc483e
VS
169
170
171all: $(OBJS)
172$(OBJS):
173 -if not exist $(OBJS) mkdir $(OBJS)
174
175### Targets: ###
176
d2ec8d84 177all: $(__wxrc___depname)
cecc483e 178
cecc483e
VS
179clean:
180 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 181 -if exist $(OBJS)\*.d del $(OBJS)\*.d
cecc483e
VS
182 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
183
d2ec8d84 184ifeq ($(USE_XRC),1)
3f55f5b8 185$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
7379e476 186 $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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
d2ec8d84 187endif
cecc483e 188
b17c1746 189$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
0d90d6ea 190 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $(CPPDEPS) $<
b17c1746 191
cecc483e 192.PHONY: all clean
162a956b 193
8c9f8f91 194
0d90d6ea
JS
195# Dependencies tracking:
196-include $(OBJS)/*.d