]> git.saurik.com Git - wxWidgets.git/blame - utils/wxrc/makefile.gcc
wxRichTextCtrl now takes a value parameter in the constructor
[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
DE
133ifeq ($(MSLU),1)
134__UNICOWS_LIB_p = -lunicows
3f55f5b8 135endif
b17c1746
DE
136ifeq ($(BUILD),debug)
137ifeq ($(DEBUG_INFO),default)
138__DEBUGINFO = -g
cecc483e 139endif
2265a2d5 140endif
b17c1746
DE
141ifeq ($(BUILD),release)
142ifeq ($(DEBUG_INFO),default)
143__DEBUGINFO =
cecc483e 144endif
cecc483e 145endif
b17c1746
DE
146ifeq ($(DEBUG_INFO),0)
147__DEBUGINFO =
cecc483e 148endif
b17c1746
DE
149ifeq ($(DEBUG_INFO),1)
150__DEBUGINFO = -g
cecc483e 151endif
8c9f8f91
JS
152ifeq ($(USE_THREADS),0)
153__THREADSFLAG =
154endif
155ifeq ($(USE_THREADS),1)
156__THREADSFLAG = -mthreads
157endif
cecc483e
VS
158
159
160all: $(OBJS)
161$(OBJS):
162 -if not exist $(OBJS) mkdir $(OBJS)
163
164### Targets: ###
165
d2ec8d84 166all: $(__wxrc___depname)
cecc483e 167
cecc483e
VS
168clean:
169 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 170 -if exist $(OBJS)\*.d del $(OBJS)\*.d
cecc483e
VS
171 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
172
d2ec8d84 173ifeq ($(USE_XRC),1)
3f55f5b8 174$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
3b2cb431 175 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
d2ec8d84 176endif
cecc483e 177
b17c1746 178$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
0d90d6ea 179 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $(CPPDEPS) $<
b17c1746 180
cecc483e 181.PHONY: all clean
162a956b 182
8c9f8f91 183
0d90d6ea
JS
184# Dependencies tracking:
185-include $(OBJS)/*.d