]> git.saurik.com Git - wxWidgets.git/blame - utils/wxrc/makefile.gcc
fix for previous commit
[wxWidgets.git] / utils / wxrc / makefile.gcc
CommitLineData
cecc483e
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
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)
3f55f5b8
VS
19WXRC_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
a4ad36cd 22 $(__DLLFLAG_p) $(CXXFLAGS) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5)
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
75a0a7b7
VS
31ifeq ($(SHARED),0)
32LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
33endif
34ifeq ($(SHARED),1)
35LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
36endif
cecc483e
VS
37ifeq ($(USE_GUI),0)
38PORTNAME = base
39endif
40ifeq ($(USE_GUI),1)
41PORTNAME = msw
42endif
43ifeq ($(BUILD),debug)
3f55f5b8
VS
44ifeq ($(DEBUG_FLAG),default)
45WXDEBUGFLAG = d
46endif
47endif
48ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
49WXDEBUGFLAG = d
50endif
51ifeq ($(SHARED),1)
52WXDLLFLAG = dll
53endif
54ifeq ($(UNICODE),1)
55WXUNICODEFLAG = u
56endif
57ifeq ($(WXUNIV),1)
58WXUNIVNAME = univ
59endif
60ifeq ($(BUILD),debug)
3f55f5b8
VS
61ifeq ($(DEBUG_INFO),default)
62__DEBUGINFO = -g
63endif
cecc483e
VS
64endif
65ifeq ($(BUILD),release)
3f55f5b8
VS
66ifeq ($(DEBUG_INFO),default)
67__DEBUGINFO =
68endif
69endif
70ifeq ($(DEBUG_INFO),0)
71__DEBUGINFO =
72endif
73ifeq ($(DEBUG_INFO),1)
74__DEBUGINFO = -g
cecc483e
VS
75endif
76ifeq ($(BUILD),debug)
3f55f5b8
VS
77ifeq ($(DEBUG_FLAG),default)
78__DEBUG_DEFINE_p = -D__WXDEBUG__
79endif
80endif
81ifeq ($(DEBUG_FLAG),1)
cecc483e
VS
82__DEBUG_DEFINE_p = -D__WXDEBUG__
83endif
84ifeq ($(SHARED),1)
85__DLLFLAG_p = -DWXUSINGDLL
86endif
a4ad36cd
VS
87ifeq ($(USE_EXCEPTIONS),0)
88__EXCEPTIONSFLAG_4 = -fno-rtti
89endif
90ifeq ($(USE_EXCEPTIONS),1)
91__EXCEPTIONSFLAG_4 =
92endif
93ifeq ($(USE_EXCEPTIONS),0)
94__EXCEPTIONSFLAG_5 = -fno-exceptions
95endif
96ifeq ($(USE_EXCEPTIONS),1)
97__EXCEPTIONSFLAG_5 =
98endif
3f55f5b8
VS
99ifeq ($(USE_GUI),1)
100__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
101endif
102ifeq ($(USE_GUI),1)
103__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
104endif
105ifeq ($(USE_GUI),1)
106__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
107endif
cecc483e
VS
108ifeq ($(BUILD),debug)
109__OPTIMIZEFLAG_2 = -O0
110endif
111ifeq ($(BUILD),release)
112__OPTIMIZEFLAG_2 = -O2
113endif
114ifeq ($(UNICODE),1)
ec08d395 115__UNICODE_DEFINE_p = -D_UNICODE
cecc483e 116endif
2265a2d5
VS
117ifeq ($(MSLU),1)
118__UNICOWS_LIB_p = -lunicows
119endif
cecc483e
VS
120ifeq ($(MONOLITHIC),0)
121__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
122endif
123ifeq ($(MONOLITHIC),1)
3f55f5b8
VS
124__WXLIB_MONO_p = \
125 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
cecc483e
VS
126endif
127ifeq ($(MONOLITHIC),0)
128__WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
129endif
130ifeq ($(WXUNIV),1)
131__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
132endif
133
134
135all: $(OBJS)
136$(OBJS):
137 -if not exist $(OBJS) mkdir $(OBJS)
138
139### Targets: ###
140
141all: $(OBJS)\wxrc.exe
142
1c3a6972 143$(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
cecc483e
VS
144 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
145
146clean:
147 -if exist $(OBJS)\*.o del $(OBJS)\*.o
148 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
149
3f55f5b8 150$(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
ec08d395 151 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
cecc483e
VS
152
153.PHONY: all clean