]> git.saurik.com Git - wxWidgets.git/blame - utils/wxrc/makefile.gcc
recognize bitmap2 tag as containing a bitmap (used for disabled toolbar buttons)
[wxWidgets.git] / utils / wxrc / makefile.gcc
CommitLineData
cecc483e
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (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
4cbcfb73 16WX_RELEASE_NODOT = 27
3f55f5b8
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
cf9b63b3 25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W \
2113bc77 26 -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
8c9f8f91 27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
28WXRC_OBJECTS = \
29 $(OBJS)\wxrc_wxrc.o
cecc483e
VS
30
31### Conditionally set variables: ###
32
33ifeq ($(GCC_VERSION),2.95)
34GCCFLAGS = -fvtable-thunks
35endif
36ifeq ($(USE_GUI),0)
37PORTNAME = base
38endif
39ifeq ($(USE_GUI),1)
40PORTNAME = msw
41endif
42ifeq ($(BUILD),debug)
3f55f5b8
VS
43ifeq ($(DEBUG_FLAG),default)
44WXDEBUGFLAG = d
45endif
46endif
47ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
48WXDEBUGFLAG = d
49endif
cecc483e
VS
50ifeq ($(UNICODE),1)
51WXUNICODEFLAG = u
52endif
53ifeq ($(WXUNIV),1)
54WXUNIVNAME = univ
55endif
b17c1746
DE
56ifeq ($(SHARED),1)
57WXDLLFLAG = dll
3f55f5b8 58endif
162a956b
JS
59ifeq ($(SHARED),0)
60LIBTYPE_SUFFIX = lib
61endif
62ifeq ($(SHARED),1)
63LIBTYPE_SUFFIX = dll
64endif
dd65d8c8
RN
65ifeq ($(MONOLITHIC),0)
66EXTRALIBS_FOR_BASE =
67endif
68ifeq ($(MONOLITHIC),1)
69EXTRALIBS_FOR_BASE =
70endif
d2ec8d84
VS
71ifeq ($(USE_XRC),1)
72__wxrc___depname = $(OBJS)\wxrc.exe
73endif
b17c1746
DE
74ifeq ($(BUILD),debug)
75__OPTIMIZEFLAG_2 = -O0
cecc483e
VS
76endif
77ifeq ($(BUILD),release)
b17c1746 78__OPTIMIZEFLAG_2 = -O2
3f55f5b8 79endif
8c9f8f91
JS
80ifeq ($(USE_RTTI),0)
81__RTTIFLAG_5 = -fno-rtti
3f55f5b8 82endif
8c9f8f91
JS
83ifeq ($(USE_RTTI),1)
84__RTTIFLAG_5 =
3f55f5b8 85endif
b17c1746 86ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 87__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
88endif
89ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 90__EXCEPTIONSFLAG_6 =
b17c1746
DE
91endif
92ifeq ($(WXUNIV),1)
93__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
cecc483e
VS
94endif
95ifeq ($(BUILD),debug)
3f55f5b8
VS
96ifeq ($(DEBUG_FLAG),default)
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98endif
99endif
100ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
101__DEBUG_DEFINE_p = -D__WXDEBUG__
102endif
8c9f8f91
JS
103ifeq ($(USE_EXCEPTIONS),0)
104__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
105endif
106ifeq ($(USE_RTTI),0)
107__RTTI_DEFINE_p = -DwxNO_RTTI
108endif
109ifeq ($(USE_THREADS),0)
110__THREAD_DEFINE_p = -DwxNO_THREADS
111endif
b17c1746
DE
112ifeq ($(UNICODE),1)
113__UNICODE_DEFINE_p = -D_UNICODE
114endif
2113bc77
MW
115ifeq ($(MSLU),1)
116__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
117endif
cecc483e
VS
118ifeq ($(SHARED),1)
119__DLLFLAG_p = -DWXUSINGDLL
120endif
b17c1746 121ifeq ($(MONOLITHIC),0)
c33fae85
RN
122__WXLIB_XML_p = \
123 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 124endif
b17c1746 125ifeq ($(MONOLITHIC),0)
c33fae85
RN
126__WXLIB_BASE_p = \
127 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 128endif
b17c1746
DE
129ifeq ($(MONOLITHIC),1)
130__WXLIB_MONO_p = \
c33fae85 131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 132endif
b17c1746 133ifeq ($(USE_GUI),1)
9c2d002b 134__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
a4ad36cd 135endif
3f55f5b8 136ifeq ($(USE_GUI),1)
9c2d002b 137__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
3f55f5b8
VS
138endif
139ifeq ($(USE_GUI),1)
9c2d002b 140__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
3f55f5b8 141endif
b17c1746
DE
142ifeq ($(MSLU),1)
143__UNICOWS_LIB_p = -lunicows
3f55f5b8 144endif
b17c1746
DE
145ifeq ($(BUILD),debug)
146ifeq ($(DEBUG_INFO),default)
147__DEBUGINFO = -g
cecc483e 148endif
2265a2d5 149endif
b17c1746
DE
150ifeq ($(BUILD),release)
151ifeq ($(DEBUG_INFO),default)
152__DEBUGINFO =
cecc483e 153endif
cecc483e 154endif
b17c1746
DE
155ifeq ($(DEBUG_INFO),0)
156__DEBUGINFO =
cecc483e 157endif
b17c1746
DE
158ifeq ($(DEBUG_INFO),1)
159__DEBUGINFO = -g
cecc483e 160endif
8c9f8f91
JS
161ifeq ($(USE_THREADS),0)
162__THREADSFLAG =
163endif
164ifeq ($(USE_THREADS),1)
165__THREADSFLAG = -mthreads
166endif
cecc483e
VS
167
168
169all: $(OBJS)
170$(OBJS):
171 -if not exist $(OBJS) mkdir $(OBJS)
172
173### Targets: ###
174
d2ec8d84 175all: $(__wxrc___depname)
cecc483e 176
cecc483e
VS
177clean:
178 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 179 -if exist $(OBJS)\*.d del $(OBJS)\*.d
cecc483e
VS
180 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
181
d2ec8d84 182ifeq ($(USE_XRC),1)
3f55f5b8 183$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
8c9f8f91 184 $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
d2ec8d84 185endif
cecc483e 186
b17c1746 187$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
0d90d6ea 188 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $(CPPDEPS) $<
b17c1746 189
cecc483e 190.PHONY: all clean
162a956b 191
8c9f8f91 192
0d90d6ea
JS
193# Dependencies tracking:
194-include $(OBJS)/*.d