]> git.saurik.com Git - wxWidgets.git/blob - contrib/utils/convertrc/makefile.gcc
Unicode markup.
[wxWidgets.git] / contrib / utils / convertrc / 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 CONVERTRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
25 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \
26 $(CPPFLAGS) $(CXXFLAGS)
27 CONVERTRC_OBJECTS = \
28 $(OBJS)\convertrc_convert.o \
29 $(OBJS)\convertrc_rc2wxr.o \
30 $(OBJS)\convertrc_rc2xml.o \
31 $(OBJS)\convertrc_wxr2xml.o \
32 $(OBJS)\convertrc_wxconvert_rc.o
33
34 ### Conditionally set variables: ###
35
36 ifeq ($(GCC_VERSION),2.95)
37 GCCFLAGS = -fvtable-thunks
38 endif
39 ifeq ($(USE_GUI),0)
40 PORTNAME = base
41 endif
42 ifeq ($(USE_GUI),1)
43 PORTNAME = msw
44 endif
45 ifeq ($(BUILD),debug)
46 ifeq ($(DEBUG_FLAG),default)
47 WXDEBUGFLAG = d
48 endif
49 endif
50 ifeq ($(DEBUG_FLAG),1)
51 WXDEBUGFLAG = d
52 endif
53 ifeq ($(UNICODE),1)
54 WXUNICODEFLAG = u
55 endif
56 ifeq ($(WXUNIV),1)
57 WXUNIVNAME = univ
58 endif
59 ifeq ($(SHARED),1)
60 WXDLLFLAG = dll
61 endif
62 ifeq ($(SHARED),0)
63 LIBTYPE_SUFFIX = lib
64 endif
65 ifeq ($(SHARED),1)
66 LIBTYPE_SUFFIX = dll
67 endif
68 ifeq ($(MONOLITHIC),0)
69 EXTRALIBS_FOR_BASE =
70 endif
71 ifeq ($(MONOLITHIC),1)
72 EXTRALIBS_FOR_BASE =
73 endif
74 ifeq ($(BUILD),debug)
75 __OPTIMIZEFLAG_2 = -O0
76 endif
77 ifeq ($(BUILD),release)
78 __OPTIMIZEFLAG_2 = -O2
79 endif
80 ifeq ($(USE_EXCEPTIONS),0)
81 __EXCEPTIONSFLAG_4 = -fno-rtti
82 endif
83 ifeq ($(USE_EXCEPTIONS),1)
84 __EXCEPTIONSFLAG_4 =
85 endif
86 ifeq ($(USE_EXCEPTIONS),0)
87 __EXCEPTIONSFLAG_5 = -fno-exceptions
88 endif
89 ifeq ($(USE_EXCEPTIONS),1)
90 __EXCEPTIONSFLAG_5 =
91 endif
92 ifeq ($(WXUNIV),1)
93 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
94 endif
95 ifeq ($(WXUNIV),1)
96 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
97 endif
98 ifeq ($(BUILD),debug)
99 ifeq ($(DEBUG_FLAG),default)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 endif
102 endif
103 ifeq ($(DEBUG_FLAG),1)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 endif
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 endif
110 endif
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113 endif
114 ifeq ($(UNICODE),1)
115 __UNICODE_DEFINE_p = -D_UNICODE
116 endif
117 ifeq ($(UNICODE),1)
118 __UNICODE_DEFINE_p_1 = --define _UNICODE
119 endif
120 ifeq ($(SHARED),1)
121 __DLLFLAG_p = -DWXUSINGDLL
122 endif
123 ifeq ($(SHARED),1)
124 __DLLFLAG_p_1 = --define WXUSINGDLL
125 endif
126 ifeq ($(MONOLITHIC),0)
127 __WXLIB_CORE_p = \
128 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
129 endif
130 ifeq ($(MONOLITHIC),0)
131 __WXLIB_XML_p = \
132 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
133 endif
134 ifeq ($(MONOLITHIC),0)
135 __WXLIB_BASE_p = \
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137 endif
138 ifeq ($(MONOLITHIC),1)
139 __WXLIB_MONO_p = \
140 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
141 endif
142 ifeq ($(USE_GUI),1)
143 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
144 endif
145 ifeq ($(USE_GUI),1)
146 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
147 endif
148 ifeq ($(USE_GUI),1)
149 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
150 endif
151 ifeq ($(MSLU),1)
152 __UNICOWS_LIB_p = -lunicows
153 endif
154 ifeq ($(BUILD),debug)
155 ifeq ($(DEBUG_INFO),default)
156 __DEBUGINFO = -g
157 endif
158 endif
159 ifeq ($(BUILD),release)
160 ifeq ($(DEBUG_INFO),default)
161 __DEBUGINFO =
162 endif
163 endif
164 ifeq ($(DEBUG_INFO),0)
165 __DEBUGINFO =
166 endif
167 ifeq ($(DEBUG_INFO),1)
168 __DEBUGINFO = -g
169 endif
170
171
172 all: $(OBJS)
173 $(OBJS):
174 -if not exist $(OBJS) mkdir $(OBJS)
175
176 ### Targets: ###
177
178 all: $(OBJS)\convertrc.exe
179
180 clean:
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
182 -if exist $(OBJS)\convertrc.exe del $(OBJS)\convertrc.exe
183
184 $(OBJS)\convertrc.exe: $(CONVERTRC_OBJECTS) $(OBJS)\convertrc_wxconvert_rc.o
185 $(CXX) -o $@ $(CONVERTRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated $(__WXLIB_CORE_p) $(__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
186
187 $(OBJS)\convertrc_convert.o: ./convert.cpp
188 $(CXX) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
189
190 $(OBJS)\convertrc_rc2wxr.o: ./rc2wxr.cpp
191 $(CXX) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
192
193 $(OBJS)\convertrc_rc2xml.o: ./rc2xml.cpp
194 $(CXX) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
195
196 $(OBJS)\convertrc_wxr2xml.o: ./wxr2xml.cpp
197 $(CXX) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
198
199 $(OBJS)\convertrc_wxconvert_rc.o: ./wxconvert.rc
200 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH --include-dir ./../../include
201
202 .PHONY: all clean
203