]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/wxrc/makefile.gcc
Oops, forgot to return a value
[wxWidgets.git] / utils / wxrc / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.3 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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)
23WXRC_OBJECTS = \
24 $(OBJS)\wxrc_wxrc.o
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)
38ifeq ($(DEBUG_FLAG),default)
39WXDEBUGFLAG = d
40endif
41endif
42ifeq ($(DEBUG_FLAG),1)
43WXDEBUGFLAG = d
44endif
45ifeq ($(UNICODE),1)
46WXUNICODEFLAG = u
47endif
48ifeq ($(WXUNIV),1)
49WXUNIVNAME = univ
50endif
51ifeq ($(SHARED),1)
52WXDLLFLAG = dll
53endif
54ifeq ($(BUILD),debug)
55__OPTIMIZEFLAG_2 = -O0
56endif
57ifeq ($(BUILD),release)
58__OPTIMIZEFLAG_2 = -O2
59endif
60ifeq ($(USE_EXCEPTIONS),0)
61__EXCEPTIONSFLAG_4 = -fno-rtti
62endif
63ifeq ($(USE_EXCEPTIONS),1)
64__EXCEPTIONSFLAG_4 =
65endif
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__
74endif
75ifeq ($(BUILD),debug)
76ifeq ($(DEBUG_FLAG),default)
77__DEBUG_DEFINE_p = -D__WXDEBUG__
78endif
79endif
80ifeq ($(DEBUG_FLAG),1)
81__DEBUG_DEFINE_p = -D__WXDEBUG__
82endif
83ifeq ($(UNICODE),1)
84__UNICODE_DEFINE_p = -D_UNICODE
85endif
86ifeq ($(SHARED),1)
87__DLLFLAG_p = -DWXUSINGDLL
88endif
89ifeq ($(MONOLITHIC),0)
90__WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
91endif
92ifeq ($(MONOLITHIC),0)
93__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
94endif
95ifeq ($(MONOLITHIC),1)
96__WXLIB_MONO_p = \
97 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
98endif
99ifeq ($(USE_GUI),1)
100__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
101endif
102ifeq ($(USE_GUI),1)
103__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
104endif
105ifeq ($(USE_GUI),1)
106__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
107endif
108ifeq ($(MSLU),1)
109__UNICOWS_LIB_p = -lunicows
110endif
111ifeq ($(SHARED),0)
112LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
113endif
114ifeq ($(SHARED),1)
115LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
116endif
117ifeq ($(BUILD),debug)
118ifeq ($(DEBUG_INFO),default)
119__DEBUGINFO = -g
120endif
121endif
122ifeq ($(BUILD),release)
123ifeq ($(DEBUG_INFO),default)
124__DEBUGINFO =
125endif
126endif
127ifeq ($(DEBUG_INFO),0)
128__DEBUGINFO =
129endif
130ifeq ($(DEBUG_INFO),1)
131__DEBUGINFO = -g
132endif
133
134
135all: $(OBJS)
136$(OBJS):
137 -if not exist $(OBJS) mkdir $(OBJS)
138
139### Targets: ###
140
141all: $(OBJS)\wxrc.exe
142
143clean:
144 -if exist $(OBJS)\*.o del $(OBJS)\*.o
145 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
146
147$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
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
149
150$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
151 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
152
153.PHONY: all clean