]> git.saurik.com Git - wxWidgets.git/blob - utils/wxrc/makefile.gcc
Fixes for WinCE toolbar
[wxWidgets.git] / utils / wxrc / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
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)
26 WXRC_OBJECTS = \
27 $(OBJS)\wxrc_wxrc.o
28
29 ### Conditionally set variables: ###
30
31 ifeq ($(GCC_VERSION),2.95)
32 GCCFLAGS = -fvtable-thunks
33 endif
34 ifeq ($(USE_GUI),0)
35 PORTNAME = base
36 endif
37 ifeq ($(USE_GUI),1)
38 PORTNAME = msw
39 endif
40 ifeq ($(BUILD),debug)
41 ifeq ($(DEBUG_FLAG),default)
42 WXDEBUGFLAG = d
43 endif
44 endif
45 ifeq ($(DEBUG_FLAG),1)
46 WXDEBUGFLAG = d
47 endif
48 ifeq ($(UNICODE),1)
49 WXUNICODEFLAG = u
50 endif
51 ifeq ($(WXUNIV),1)
52 WXUNIVNAME = univ
53 endif
54 ifeq ($(SHARED),1)
55 WXDLLFLAG = dll
56 endif
57 ifeq ($(SHARED),0)
58 LIBTYPE_SUFFIX = lib
59 endif
60 ifeq ($(SHARED),1)
61 LIBTYPE_SUFFIX = dll
62 endif
63 ifeq ($(MONOLITHIC),0)
64 EXTRALIBS_FOR_BASE =
65 endif
66 ifeq ($(MONOLITHIC),1)
67 EXTRALIBS_FOR_BASE =
68 endif
69 ifeq ($(USE_XRC),1)
70 __wxrc___depname = $(OBJS)\wxrc.exe
71 endif
72 ifeq ($(BUILD),debug)
73 __OPTIMIZEFLAG_2 = -O0
74 endif
75 ifeq ($(BUILD),release)
76 __OPTIMIZEFLAG_2 = -O2
77 endif
78 ifeq ($(USE_EXCEPTIONS),0)
79 __EXCEPTIONSFLAG_4 = -fno-rtti
80 endif
81 ifeq ($(USE_EXCEPTIONS),1)
82 __EXCEPTIONSFLAG_4 =
83 endif
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG_5 = -fno-exceptions
86 endif
87 ifeq ($(USE_EXCEPTIONS),1)
88 __EXCEPTIONSFLAG_5 =
89 endif
90 ifeq ($(WXUNIV),1)
91 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
92 endif
93 ifeq ($(BUILD),debug)
94 ifeq ($(DEBUG_FLAG),default)
95 __DEBUG_DEFINE_p = -D__WXDEBUG__
96 endif
97 endif
98 ifeq ($(DEBUG_FLAG),1)
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 endif
101 ifeq ($(UNICODE),1)
102 __UNICODE_DEFINE_p = -D_UNICODE
103 endif
104 ifeq ($(SHARED),1)
105 __DLLFLAG_p = -DWXUSINGDLL
106 endif
107 ifeq ($(MONOLITHIC),0)
108 __WXLIB_XML_p = \
109 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
110 endif
111 ifeq ($(MONOLITHIC),0)
112 __WXLIB_BASE_p = \
113 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
114 endif
115 ifeq ($(MONOLITHIC),1)
116 __WXLIB_MONO_p = \
117 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
118 endif
119 ifeq ($(USE_GUI),1)
120 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
121 endif
122 ifeq ($(USE_GUI),1)
123 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
124 endif
125 ifeq ($(USE_GUI),1)
126 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
127 endif
128 ifeq ($(MSLU),1)
129 __UNICOWS_LIB_p = -lunicows
130 endif
131 ifeq ($(BUILD),debug)
132 ifeq ($(DEBUG_INFO),default)
133 __DEBUGINFO = -g
134 endif
135 endif
136 ifeq ($(BUILD),release)
137 ifeq ($(DEBUG_INFO),default)
138 __DEBUGINFO =
139 endif
140 endif
141 ifeq ($(DEBUG_INFO),0)
142 __DEBUGINFO =
143 endif
144 ifeq ($(DEBUG_INFO),1)
145 __DEBUGINFO = -g
146 endif
147
148
149 all: $(OBJS)
150 $(OBJS):
151 -if not exist $(OBJS) mkdir $(OBJS)
152
153 ### Targets: ###
154
155 all: $(__wxrc___depname)
156
157 clean:
158 -if exist $(OBJS)\*.o del $(OBJS)\*.o
159 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
160
161 ifeq ($(USE_XRC),1)
162 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
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
164 endif
165
166 $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
167 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<
168
169 .PHONY: all clean
170