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