]> git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/makefile.gcc
Fixed compile error (seen on OS/2).
[wxWidgets.git] / utils / configtool / src / makefile.gcc
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
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 WXCONFIGTOOL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) \
20 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
21 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
22 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples $(CXXFLAGS)
23 WXCONFIGTOOL_OBJECTS = \
24 $(OBJS)\wxconfigtool_sample_rc.o \
25 $(OBJS)\wxconfigtool_wxconfigtool.o \
26 $(OBJS)\wxconfigtool_appsettings.o \
27 $(OBJS)\wxconfigtool_configitem.o \
28 $(OBJS)\wxconfigtool_configitemselector.o \
29 $(OBJS)\wxconfigtool_configtooldoc.o \
30 $(OBJS)\wxconfigtool_configtoolview.o \
31 $(OBJS)\wxconfigtool_configtree.o \
32 $(OBJS)\wxconfigtool_custompropertydialog.o \
33 $(OBJS)\wxconfigtool_htmlparser.o \
34 $(OBJS)\wxconfigtool_mainframe.o \
35 $(OBJS)\wxconfigtool_propeditor.o \
36 $(OBJS)\wxconfigtool_property.o \
37 $(OBJS)\wxconfigtool_settingsdialog.o \
38 $(OBJS)\wxconfigtool_utils.o
39
40 ### Conditionally set variables: ###
41
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
44 endif
45 ifeq ($(SHARED),0)
46 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
47 endif
48 ifeq ($(SHARED),1)
49 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
50 endif
51 ifeq ($(USE_GUI),0)
52 PORTNAME = base
53 endif
54 ifeq ($(USE_GUI),1)
55 PORTNAME = msw
56 endif
57 ifeq ($(BUILD),debug)
58 ifeq ($(DEBUG_FLAG),default)
59 WXDEBUGFLAG = d
60 endif
61 endif
62 ifeq ($(DEBUG_FLAG),1)
63 WXDEBUGFLAG = d
64 endif
65 ifeq ($(SHARED),1)
66 WXDLLFLAG = dll
67 endif
68 ifeq ($(UNICODE),1)
69 WXUNICODEFLAG = u
70 endif
71 ifeq ($(WXUNIV),1)
72 WXUNIVNAME = univ
73 endif
74 ifeq ($(BUILD),debug)
75 ifeq ($(DEBUG_INFO),default)
76 __DEBUGINFO = -g
77 endif
78 endif
79 ifeq ($(BUILD),release)
80 ifeq ($(DEBUG_INFO),default)
81 __DEBUGINFO =
82 endif
83 endif
84 ifeq ($(DEBUG_INFO),0)
85 __DEBUGINFO =
86 endif
87 ifeq ($(DEBUG_INFO),1)
88 __DEBUGINFO = -g
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 ($(SHARED),1)
107 __DLLFLAG_p = -DWXUSINGDLL
108 endif
109 ifeq ($(SHARED),1)
110 __DLLFLAG_p_1 = --define WXUSINGDLL
111 endif
112 ifeq ($(USE_GUI),1)
113 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
114 endif
115 ifeq ($(USE_GUI),1)
116 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
117 endif
118 ifeq ($(USE_GUI),1)
119 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
120 endif
121 ifeq ($(BUILD),debug)
122 __OPTIMIZEFLAG_2 = -O0
123 endif
124 ifeq ($(BUILD),release)
125 __OPTIMIZEFLAG_2 = -O2
126 endif
127 ifeq ($(UNICODE),1)
128 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
129 endif
130 ifeq ($(UNICODE),1)
131 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
132 endif
133 ifeq ($(MSLU),1)
134 __UNICOWS_LIB_p = -lunicows
135 endif
136 ifeq ($(MONOLITHIC),0)
137 __WXLIB_ADV_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
139 endif
140 ifeq ($(MONOLITHIC),0)
141 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
142 endif
143 ifeq ($(MONOLITHIC),0)
144 __WXLIB_CORE_p = \
145 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
146 endif
147 ifeq ($(MONOLITHIC),0)
148 __WXLIB_HTML_p = \
149 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
150 endif
151 ifeq ($(MONOLITHIC),1)
152 __WXLIB_MONO_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
154 endif
155 ifeq ($(MONOLITHIC),0)
156 __WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
157 endif
158 ifeq ($(WXUNIV),1)
159 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 endif
161 ifeq ($(WXUNIV),1)
162 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
163 endif
164
165
166 all: $(OBJS)
167 $(OBJS):
168 -if not exist $(OBJS) mkdir $(OBJS)
169
170 ### Targets: ###
171
172 all: $(OBJS)\wxconfigtool.exe data
173
174 $(OBJS)\wxconfigtool_appsettings.o: .\appsettings.cpp
175 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
176
177 $(OBJS)\wxconfigtool_configitem.o: .\configitem.cpp
178 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
179
180 $(OBJS)\wxconfigtool_configitemselector.o: .\configitemselector.cpp
181 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
182
183 $(OBJS)\wxconfigtool_configtooldoc.o: .\configtooldoc.cpp
184 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
185
186 $(OBJS)\wxconfigtool_configtoolview.o: .\configtoolview.cpp
187 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
188
189 $(OBJS)\wxconfigtool_configtree.o: .\configtree.cpp
190 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
191
192 $(OBJS)\wxconfigtool_custompropertydialog.o: .\custompropertydialog.cpp
193 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
194
195 $(OBJS)\wxconfigtool_htmlparser.o: .\htmlparser.cpp
196 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
197
198 $(OBJS)\wxconfigtool_mainframe.o: .\mainframe.cpp
199 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
200
201 $(OBJS)\wxconfigtool_propeditor.o: .\propeditor.cpp
202 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
203
204 $(OBJS)\wxconfigtool_property.o: .\property.cpp
205 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
206
207 $(OBJS)\wxconfigtool_sample_rc.o: .\..\..\..\samples\sample.rc
208 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
209
210 $(OBJS)\wxconfigtool_settingsdialog.o: .\settingsdialog.cpp
211 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
212
213 $(OBJS)\wxconfigtool_utils.o: .\utils.cpp
214 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
215
216 $(OBJS)\wxconfigtool_wxconfigtool.o: .\wxconfigtool.cpp
217 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
218
219 clean:
220 -if exist $(OBJS)\*.o del $(OBJS)\*.o
221 -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe
222
223 data:
224 if not exist $(OBJS) mkdir $(OBJS)
225 for %%f in (wxconfigtool.pjd ../configs/wxwin250.wxs) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
226
227 $(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample_rc.o
228 $(CXX) -o $@ $(WXCONFIGTOOL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
229
230 .PHONY: all clean data