]> git.saurik.com Git - wxWidgets.git/blob - contrib/utils/wxrcedit/makefile.gcc
This should work on SuSE and Mandrake icon themes.
[wxWidgets.git] / contrib / utils / wxrcedit / makefile.gcc
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
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 WXRCEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include $(__EXCEPTIONSFLAG_4) \
23 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
24 WXRCEDIT_OBJECTS = \
25 $(OBJS)\wxrcedit_edapp.o \
26 $(OBJS)\wxrcedit_editor.o \
27 $(OBJS)\wxrcedit_nodehnd.o \
28 $(OBJS)\wxrcedit_nodesdb.o \
29 $(OBJS)\wxrcedit_pe_adv.o \
30 $(OBJS)\wxrcedit_pe_basic.o \
31 $(OBJS)\wxrcedit_preview.o \
32 $(OBJS)\wxrcedit_propedit.o \
33 $(OBJS)\wxrcedit_propframe.o \
34 $(OBJS)\wxrcedit_splittree.o \
35 $(OBJS)\wxrcedit_xmlhelpr.o \
36 $(OBJS)\wxrcedit_wxrcedit_rc.o
37
38 ### Conditionally set variables: ###
39
40 ifeq ($(GCC_VERSION),2.95)
41 GCCFLAGS = -fvtable-thunks
42 endif
43 ifeq ($(USE_GUI),0)
44 PORTNAME = base
45 endif
46 ifeq ($(USE_GUI),1)
47 PORTNAME = msw
48 endif
49 ifeq ($(BUILD),debug)
50 ifeq ($(DEBUG_FLAG),default)
51 WXDEBUGFLAG = d
52 endif
53 endif
54 ifeq ($(DEBUG_FLAG),1)
55 WXDEBUGFLAG = d
56 endif
57 ifeq ($(UNICODE),1)
58 WXUNICODEFLAG = u
59 endif
60 ifeq ($(WXUNIV),1)
61 WXUNIVNAME = univ
62 endif
63 ifeq ($(SHARED),1)
64 WXDLLFLAG = dll
65 endif
66 ifeq ($(BUILD),debug)
67 __OPTIMIZEFLAG_2 = -O0
68 endif
69 ifeq ($(BUILD),release)
70 __OPTIMIZEFLAG_2 = -O2
71 endif
72 ifeq ($(USE_EXCEPTIONS),0)
73 __EXCEPTIONSFLAG_4 = -fno-rtti
74 endif
75 ifeq ($(USE_EXCEPTIONS),1)
76 __EXCEPTIONSFLAG_4 =
77 endif
78 ifeq ($(USE_EXCEPTIONS),0)
79 __EXCEPTIONSFLAG_5 = -fno-exceptions
80 endif
81 ifeq ($(USE_EXCEPTIONS),1)
82 __EXCEPTIONSFLAG_5 =
83 endif
84 ifeq ($(WXUNIV),1)
85 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
86 endif
87 ifeq ($(WXUNIV),1)
88 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
89 endif
90 ifeq ($(BUILD),debug)
91 ifeq ($(DEBUG_FLAG),default)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
93 endif
94 endif
95 ifeq ($(DEBUG_FLAG),1)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 endif
98 ifeq ($(BUILD),debug)
99 ifeq ($(DEBUG_FLAG),default)
100 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
101 endif
102 endif
103 ifeq ($(DEBUG_FLAG),1)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 endif
106 ifeq ($(UNICODE),1)
107 __UNICODE_DEFINE_p = -D_UNICODE
108 endif
109 ifeq ($(UNICODE),1)
110 __UNICODE_DEFINE_p_1 = --define _UNICODE
111 endif
112 ifeq ($(SHARED),1)
113 __DLLFLAG_p = -DWXUSINGDLL
114 endif
115 ifeq ($(SHARED),1)
116 __DLLFLAG_p_1 = --define WXUSINGDLL
117 endif
118 ifeq ($(MONOLITHIC),0)
119 __WXLIB_ADV_p = \
120 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
121 endif
122 ifeq ($(MONOLITHIC),0)
123 __WXLIB_HTML_p = \
124 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
125 endif
126 ifeq ($(MONOLITHIC),0)
127 __WXLIB_CORE_p = \
128 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
129 endif
130 ifeq ($(MONOLITHIC),0)
131 __WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
132 endif
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
135 endif
136 ifeq ($(MONOLITHIC),1)
137 __WXLIB_MONO_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
142 endif
143 ifeq ($(USE_GUI),1)
144 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
145 endif
146 ifeq ($(USE_GUI),1)
147 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
148 endif
149 ifeq ($(MSLU),1)
150 __UNICOWS_LIB_p = -lunicows
151 endif
152 ifeq ($(SHARED),0)
153 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
154 endif
155 ifeq ($(SHARED),1)
156 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
157 endif
158 ifeq ($(BUILD),debug)
159 ifeq ($(DEBUG_INFO),default)
160 __DEBUGINFO = -g
161 endif
162 endif
163 ifeq ($(BUILD),release)
164 ifeq ($(DEBUG_INFO),default)
165 __DEBUGINFO =
166 endif
167 endif
168 ifeq ($(DEBUG_INFO),0)
169 __DEBUGINFO =
170 endif
171 ifeq ($(DEBUG_INFO),1)
172 __DEBUGINFO = -g
173 endif
174
175
176 all: $(OBJS)
177 $(OBJS):
178 -if not exist $(OBJS) mkdir $(OBJS)
179
180 ### Targets: ###
181
182 all: $(OBJS)\wxrcedit.exe
183
184 clean:
185 -if exist $(OBJS)\*.o del $(OBJS)\*.o
186 -if exist $(OBJS)\wxrcedit.exe del $(OBJS)\wxrcedit.exe
187
188 $(OBJS)\wxrcedit.exe: $(WXRCEDIT_OBJECTS) $(OBJS)\wxrcedit_wxrcedit_rc.o
189 $(CXX) -o $@ $(WXRCEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
190
191 $(OBJS)\wxrcedit_edapp.o: ./edapp.cpp
192 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
193
194 $(OBJS)\wxrcedit_editor.o: ./editor.cpp
195 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
196
197 $(OBJS)\wxrcedit_nodehnd.o: ./nodehnd.cpp
198 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
199
200 $(OBJS)\wxrcedit_nodesdb.o: ./nodesdb.cpp
201 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
202
203 $(OBJS)\wxrcedit_pe_adv.o: ./pe_adv.cpp
204 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
205
206 $(OBJS)\wxrcedit_pe_basic.o: ./pe_basic.cpp
207 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
208
209 $(OBJS)\wxrcedit_preview.o: ./preview.cpp
210 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
211
212 $(OBJS)\wxrcedit_propedit.o: ./propedit.cpp
213 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
214
215 $(OBJS)\wxrcedit_propframe.o: ./propframe.cpp
216 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
217
218 $(OBJS)\wxrcedit_splittree.o: ./splittree.cpp
219 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
220
221 $(OBJS)\wxrcedit_xmlhelpr.o: ./xmlhelpr.cpp
222 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
223
224 $(OBJS)\wxrcedit_wxrcedit_rc.o: ./wxrcedit.rc
225 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 --include-dir ./../../include
226
227 .PHONY: all clean