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