]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrc/makefile.gcc
fixed indentation in case there's only one cell on line
[wxWidgets.git] / contrib / utils / wxrc / makefile.gcc
CommitLineData
cecc483e
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
cecc483e
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
cecc483e
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
3f55f5b8
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
19WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) \
22 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
23WXRC_OBJECTS = \
24 $(OBJS)\wxrc_wxrc.o
cecc483e
VS
25
26### Conditionally set variables: ###
27
28ifeq ($(GCC_VERSION),2.95)
29GCCFLAGS = -fvtable-thunks
30endif
31ifeq ($(USE_GUI),0)
32PORTNAME = base
33endif
34ifeq ($(USE_GUI),1)
35PORTNAME = msw
36endif
37ifeq ($(BUILD),debug)
3f55f5b8
VS
38ifeq ($(DEBUG_FLAG),default)
39WXDEBUGFLAG = d
40endif
41endif
42ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
43WXDEBUGFLAG = d
44endif
cecc483e
VS
45ifeq ($(UNICODE),1)
46WXUNICODEFLAG = u
47endif
48ifeq ($(WXUNIV),1)
49WXUNIVNAME = univ
50endif
b17c1746
DE
51ifeq ($(SHARED),1)
52WXDLLFLAG = dll
3f55f5b8 53endif
b17c1746
DE
54ifeq ($(BUILD),debug)
55__OPTIMIZEFLAG_2 = -O0
cecc483e
VS
56endif
57ifeq ($(BUILD),release)
b17c1746 58__OPTIMIZEFLAG_2 = -O2
3f55f5b8 59endif
b17c1746
DE
60ifeq ($(USE_EXCEPTIONS),0)
61__EXCEPTIONSFLAG_4 = -fno-rtti
3f55f5b8 62endif
b17c1746
DE
63ifeq ($(USE_EXCEPTIONS),1)
64__EXCEPTIONSFLAG_4 =
3f55f5b8 65endif
b17c1746
DE
66ifeq ($(USE_EXCEPTIONS),0)
67__EXCEPTIONSFLAG_5 = -fno-exceptions
68endif
69ifeq ($(USE_EXCEPTIONS),1)
70__EXCEPTIONSFLAG_5 =
71endif
72ifeq ($(WXUNIV),1)
73__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
cecc483e
VS
74endif
75ifeq ($(BUILD),debug)
3f55f5b8
VS
76ifeq ($(DEBUG_FLAG),default)
77__DEBUG_DEFINE_p = -D__WXDEBUG__
78endif
79endif
80ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
81__DEBUG_DEFINE_p = -D__WXDEBUG__
82endif
b17c1746
DE
83ifeq ($(UNICODE),1)
84__UNICODE_DEFINE_p = -D_UNICODE
85endif
cecc483e
VS
86ifeq ($(SHARED),1)
87__DLLFLAG_p = -DWXUSINGDLL
88endif
b17c1746
DE
89ifeq ($(MONOLITHIC),0)
90__WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
a4ad36cd 91endif
b17c1746
DE
92ifeq ($(MONOLITHIC),0)
93__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a4ad36cd 94endif
b17c1746
DE
95ifeq ($(MONOLITHIC),1)
96__WXLIB_MONO_p = \
97 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a4ad36cd 98endif
b17c1746
DE
99ifeq ($(USE_GUI),1)
100__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
a4ad36cd 101endif
3f55f5b8
VS
102ifeq ($(USE_GUI),1)
103__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
104endif
105ifeq ($(USE_GUI),1)
106__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
107endif
b17c1746
DE
108ifeq ($(MSLU),1)
109__UNICOWS_LIB_p = -lunicows
3f55f5b8 110endif
b17c1746
DE
111ifeq ($(SHARED),0)
112LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
cecc483e 113endif
b17c1746
DE
114ifeq ($(SHARED),1)
115LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
cecc483e 116endif
b17c1746
DE
117ifeq ($(BUILD),debug)
118ifeq ($(DEBUG_INFO),default)
119__DEBUGINFO = -g
cecc483e 120endif
2265a2d5 121endif
b17c1746
DE
122ifeq ($(BUILD),release)
123ifeq ($(DEBUG_INFO),default)
124__DEBUGINFO =
cecc483e 125endif
cecc483e 126endif
b17c1746
DE
127ifeq ($(DEBUG_INFO),0)
128__DEBUGINFO =
cecc483e 129endif
b17c1746
DE
130ifeq ($(DEBUG_INFO),1)
131__DEBUGINFO = -g
cecc483e
VS
132endif
133
134
135all: $(OBJS)
136$(OBJS):
137 -if not exist $(OBJS) mkdir $(OBJS)
138
139### Targets: ###
140
141all: $(OBJS)\wxrc.exe
142
cecc483e
VS
143clean:
144 -if exist $(OBJS)\*.o del $(OBJS)\*.o
145 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
146
3f55f5b8 147$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
b92ca8cf 148 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
cecc483e 149
b17c1746
DE
150$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
151 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
152
cecc483e 153.PHONY: all clean