0
|
1 |
ifeq "$(SOURCE_PATH)" ""
|
|
2 |
SOURCE_PATH = ..
|
|
3 |
endif
|
|
4 |
|
|
5 |
#sh version
|
|
6 |
|
|
7 |
ifeq "$(BUILD_PATH)" ""
|
|
8 |
BUILD_PATH = ..
|
|
9 |
endif
|
|
10 |
|
|
11 |
#
|
|
12 |
# specific stuff for mingw g++ make
|
|
13 |
#
|
|
14 |
CXX = g++
|
|
15 |
CFLAGS = -c -o$@ -O \
|
|
16 |
-I. -Igenerators -Igenerators/unix \
|
|
17 |
-Igenerators/win32 -Igenerators/mac \
|
|
18 |
-Igenerators/symbian \
|
|
19 |
-I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore \
|
|
20 |
-I$(SOURCE_PATH)/include -I$(SOURCE_PATH)/include/QtCore \
|
|
21 |
-I$(BUILD_PATH)/src/corelib/global \
|
|
22 |
-I$(BUILD_PATH)/src/corelib/xml \
|
|
23 |
-I$(SOURCE_PATH)/mkspecs/win32-g++ \
|
|
24 |
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE \
|
|
25 |
-DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP \
|
|
26 |
-DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
|
|
27 |
-DQT_BOOTSTRAPPED
|
|
28 |
CXXFLAGS = $(CFLAGS)
|
|
29 |
LFLAGS =
|
|
30 |
LIBS = -lole32 -luuid
|
|
31 |
LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
|
|
32 |
ADDCLEAN =
|
|
33 |
|
|
34 |
|
|
35 |
#qmake code
|
|
36 |
OBJS = project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o \
|
|
37 |
option.o winmakefile.o projectgenerator.o property.o meta.o \
|
|
38 |
makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o \
|
|
39 |
borland_bmake.o msvc_nmake.o msvc_dsp.o msvc_vcproj.o \
|
|
40 |
msvc_objectmodel.o symmake.o initprojectdeploy_symbian.o \
|
|
41 |
symmake_abld.o symmake_sbsv2.o
|
|
42 |
|
|
43 |
ifdef QMAKE_OPENSOURCE_EDITION
|
|
44 |
CFLAGS += -DQMAKE_OPENSOURCE_EDITION
|
|
45 |
endif
|
|
46 |
|
|
47 |
#qt code
|
|
48 |
QTOBJS= \
|
|
49 |
qbitarray.o \
|
|
50 |
qbuffer.o \
|
|
51 |
qbytearray.o \
|
|
52 |
qcryptographichash.o \
|
|
53 |
qvsnprintf.o \
|
|
54 |
qbytearraymatcher.o \
|
|
55 |
qconfig.o \
|
|
56 |
qdatetime.o \
|
|
57 |
qdir.o \
|
|
58 |
qdiriterator.o \
|
|
59 |
qfile.o \
|
|
60 |
qtemporaryfile.o \
|
|
61 |
qfileinfo.o \
|
|
62 |
qabstractfileengine.o \
|
|
63 |
qfsfileengine.o \
|
|
64 |
qfsfileengine_iterator.o \
|
|
65 |
qfsfileengine_win.o \
|
|
66 |
qfsfileengine_iterator_win.o \
|
|
67 |
qglobal.o \
|
|
68 |
qhash.o \
|
|
69 |
qiodevice.o \
|
|
70 |
qlibraryinfo.o \
|
|
71 |
qlist.o \
|
|
72 |
qlinkedlist.o \
|
|
73 |
qlocale.o \
|
|
74 |
qmalloc.o \
|
|
75 |
qmap.o \
|
|
76 |
qregexp.o \
|
|
77 |
qtextcodec.o \
|
|
78 |
qutfcodec.o \
|
|
79 |
qstring.o \
|
|
80 |
qstringlist.o \
|
|
81 |
qtextstream.o \
|
|
82 |
quuid.o \
|
|
83 |
qvector.o \
|
|
84 |
qurl.o \
|
|
85 |
qsettings.o \
|
|
86 |
qsettings_win.o \
|
|
87 |
qvariant.o \
|
|
88 |
qmetatype.o \
|
|
89 |
qxmlstream.o \
|
|
90 |
qxmlutils.o \
|
|
91 |
qnumeric.o
|
|
92 |
|
|
93 |
qmake.exe: $(OBJS) $(QTOBJS)
|
|
94 |
$(LINKQMAKE)
|
|
95 |
-cp qmake.exe $(BUILD_PATH)/bin/qmake.exe
|
|
96 |
|
|
97 |
Makefile: Makefile.win32-g++-sh
|
|
98 |
@echo "Out of date, please rerun configure"
|
|
99 |
|
|
100 |
clean::
|
|
101 |
-del $(OBJS) $(QTOBJS) $(ADDCLEAN)
|
|
102 |
|
|
103 |
distclean:: clean
|
|
104 |
-del qmake
|
|
105 |
|
|
106 |
.c.o:
|
|
107 |
$(CXX) $(CFLAGS) $<
|
|
108 |
|
|
109 |
.cpp.o:
|
|
110 |
$(CXX) $(CXXFLAGS) $<
|
|
111 |
|
|
112 |
qconfig.o: $(BUILD_PATH)/src/corelib/global/qconfig.cpp
|
|
113 |
$(CXX) $(CXXFLAGS) $(BUILD_PATH)/src/corelib/global/qconfig.cpp
|
|
114 |
|
|
115 |
qsettings_win.o: $(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp
|
|
116 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp
|
|
117 |
|
|
118 |
qsettings.o: $(SOURCE_PATH)/src/corelib/io/qsettings.cpp
|
|
119 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qsettings.cpp
|
|
120 |
|
|
121 |
qvariant.o: $(SOURCE_PATH)/src/corelib/kernel/qvariant.cpp
|
|
122 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/kernel/qvariant.cpp
|
|
123 |
|
|
124 |
qurl.o: $(SOURCE_PATH)/src/corelib/io/qurl.cpp
|
|
125 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qurl.cpp
|
|
126 |
|
|
127 |
qtextstream.o: $(SOURCE_PATH)/src/corelib/io/qtextstream.cpp
|
|
128 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qtextstream.cpp
|
|
129 |
|
|
130 |
qdatastream.o: $(SOURCE_PATH)/src/corelib/io/qdatastream.cpp
|
|
131 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdatastream.cpp
|
|
132 |
|
|
133 |
qiodevice.o: $(SOURCE_PATH)/src/corelib/io/qiodevice.cpp
|
|
134 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qiodevice.cpp
|
|
135 |
|
|
136 |
qlibraryinfo.o: $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
|
|
137 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
|
|
138 |
|
|
139 |
qnumeric.o: $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
|
|
140 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
|
|
141 |
|
|
142 |
qmalloc.o: $(SOURCE_PATH)/src/corelib/global/qmalloc.cpp
|
|
143 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qmalloc.cpp
|
|
144 |
|
|
145 |
qglobal.o: $(SOURCE_PATH)/src/corelib/global/qglobal.cpp
|
|
146 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qglobal.cpp
|
|
147 |
|
|
148 |
qhash.o: $(SOURCE_PATH)/src/corelib/tools/qhash.cpp
|
|
149 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qhash.cpp
|
|
150 |
|
|
151 |
qbytearray.o: $(SOURCE_PATH)/src/corelib/tools/qbytearray.cpp
|
|
152 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbytearray.cpp
|
|
153 |
|
|
154 |
qcryptographichash.o: $(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp
|
|
155 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp
|
|
156 |
|
|
157 |
qvsnprintf.o: $(SOURCE_PATH)/src/corelib/tools/qvsnprintf.cpp
|
|
158 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qvsnprintf.cpp
|
|
159 |
|
|
160 |
qbytearraymatcher.o: $(SOURCE_PATH)/src/corelib/tools/qbytearraymatcher.cpp
|
|
161 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbytearraymatcher.cpp
|
|
162 |
|
|
163 |
qutfcodec.o: $(SOURCE_PATH)/src/corelib/codecs/qutfcodec.cpp
|
|
164 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/codecs/qutfcodec.cpp
|
|
165 |
|
|
166 |
qstring.o: $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
|
|
167 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
|
|
168 |
|
|
169 |
qlocale.o: $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
|
|
170 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
|
|
171 |
|
|
172 |
quuid.o: $(SOURCE_PATH)/src/corelib/plugin/quuid.cpp
|
|
173 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/plugin/quuid.cpp
|
|
174 |
|
|
175 |
qbuffer.o: $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
|
|
176 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
|
|
177 |
|
|
178 |
qlist.o: $(SOURCE_PATH)/src/corelib/tools/qlist.cpp
|
|
179 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlist.cpp
|
|
180 |
|
|
181 |
qlinkedlist.o: $(SOURCE_PATH)/src/corelib/tools/qlinkedlist.cpp
|
|
182 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlinkedlist.cpp
|
|
183 |
|
|
184 |
qfile.o: $(SOURCE_PATH)/src/corelib/io/qfile.cpp
|
|
185 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfile.cpp
|
|
186 |
|
|
187 |
qtemporaryfile.o: $(SOURCE_PATH)/src/corelib/io/qtemporaryfile.cpp
|
|
188 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qtemporaryfile.cpp
|
|
189 |
|
|
190 |
qabstractfileengine.o: $(SOURCE_PATH)/src/corelib/io/qabstractfileengine.cpp
|
|
191 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qabstractfileengine.cpp
|
|
192 |
|
|
193 |
qfsfileengine_win.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp
|
|
194 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp
|
|
195 |
|
|
196 |
qfsfileengine_iterator_win.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator_win.cpp
|
|
197 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator_win.cpp
|
|
198 |
|
|
199 |
qfsfileengine.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine.cpp
|
|
200 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine.cpp
|
|
201 |
|
|
202 |
qfsfileengine_iterator.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator.cpp
|
|
203 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator.cpp
|
|
204 |
|
|
205 |
qtextcodec.o: $(SOURCE_PATH)/src/corelib/codecs/qtextcodec.cpp
|
|
206 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/codecs/qtextcodec.cpp
|
|
207 |
|
|
208 |
qregexp.o: $(SOURCE_PATH)/src/corelib/tools/qregexp.cpp
|
|
209 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qregexp.cpp
|
|
210 |
|
|
211 |
qvector.o: $(SOURCE_PATH)/src/corelib/tools/qvector.cpp
|
|
212 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qvector.cpp
|
|
213 |
|
|
214 |
qbitarray.o: $(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp
|
|
215 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp
|
|
216 |
|
|
217 |
qdir.o: $(SOURCE_PATH)/src/corelib/io/qdir.cpp
|
|
218 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdir.cpp
|
|
219 |
|
|
220 |
qdiriterator.o: $(SOURCE_PATH)/src/corelib/io/qdiriterator.cpp
|
|
221 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdiriterator.cpp
|
|
222 |
|
|
223 |
qmetatype.o: $(SOURCE_PATH)/src/corelib/kernel/qmetatype.cpp
|
|
224 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/kernel/qmetatype.cpp
|
|
225 |
|
|
226 |
qfileinfo.o: $(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp
|
|
227 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp
|
|
228 |
|
|
229 |
qdatetime.o: $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp
|
|
230 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp
|
|
231 |
|
|
232 |
qstringlist.o: $(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp
|
|
233 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp
|
|
234 |
|
|
235 |
qmap.o: $(SOURCE_PATH)/src/corelib/tools/qmap.cpp
|
|
236 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qmap.cpp
|
|
237 |
|
|
238 |
makefile.o: $(SOURCE_PATH)/qmake/generators/makefile.cpp
|
|
239 |
$(CXX) $(CXXFLAGS) generators/makefile.cpp
|
|
240 |
|
|
241 |
unixmake.o: $(SOURCE_PATH)/qmake/generators/unix/unixmake.cpp
|
|
242 |
$(CXX) $(CXXFLAGS) generators/unix/unixmake.cpp
|
|
243 |
|
|
244 |
unixmake2.o: $(SOURCE_PATH)/qmake/generators/unix/unixmake2.cpp
|
|
245 |
$(CXX) $(CXXFLAGS) generators/unix/unixmake2.cpp
|
|
246 |
|
|
247 |
winmakefile.o: $(SOURCE_PATH)/qmake/generators/win32/winmakefile.cpp
|
|
248 |
$(CXX) $(CXXFLAGS) generators/win32/winmakefile.cpp
|
|
249 |
|
|
250 |
borland_bmake.o: $(SOURCE_PATH)/qmake/generators/win32/borland_bmake.cpp
|
|
251 |
$(CXX) $(CXXFLAGS) generators/win32/borland_bmake.cpp
|
|
252 |
|
|
253 |
mingw_make.o: $(SOURCE_PATH)/qmake/generators/win32/mingw_make.cpp
|
|
254 |
$(CXX) $(CXXFLAGS) generators/win32/mingw_make.cpp
|
|
255 |
|
|
256 |
msvc_nmake.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_nmake.cpp
|
|
257 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_nmake.cpp
|
|
258 |
|
|
259 |
msvc_dsp.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_dsp.cpp
|
|
260 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_dsp.cpp
|
|
261 |
|
|
262 |
msvc_vcproj.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_vcproj.cpp
|
|
263 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_vcproj.cpp
|
|
264 |
|
|
265 |
msvc_objectmodel.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_objectmodel.cpp
|
|
266 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_objectmodel.cpp
|
|
267 |
|
|
268 |
symmake.o: $(SOURCE_PATH)/qmake/generators/symbian/symmake.cpp
|
|
269 |
$(CXX) $(CXXFLAGS) generators/symbian/symmake.cpp
|
|
270 |
|
|
271 |
symmake_abld.o: $(SOURCE_PATH)/qmake/generators/symbian/symmake_abld.cpp
|
|
272 |
$(CXX) $(CXXFLAGS) generators/symbian/symmake_abld.cpp
|
|
273 |
|
|
274 |
symmake_sbsv2.o: $(SOURCE_PATH)/qmake/generators/symbian/symmake_sbsv2.cpp
|
|
275 |
$(CXX) $(CXXFLAGS) generators/symbian/symmake_sbsv2.cpp
|
|
276 |
|
|
277 |
initprojectdeploy_symbian.o: $(SOURCE_PATH)/qmake/generators/symbian/initprojectdeploy_symbian.cpp
|
|
278 |
$(CXX) $(CXXFLAGS) generators/symbian/initprojectdeploy_symbian.cpp
|
|
279 |
|
|
280 |
project.o: $(SOURCE_PATH)/qmake/project.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
|
|
281 |
$(CXX) $(CXXFLAGS) project.cpp
|
|
282 |
|
|
283 |
meta.o: $(SOURCE_PATH)/qmake/meta.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
|
|
284 |
$(CXX) $(CXXFLAGS) meta.cpp
|
|
285 |
|
|
286 |
main.o: $(SOURCE_PATH)/qmake/main.cpp $(SOURCE_PATH)/qmake/project.h
|
|
287 |
$(CXX) $(CXXFLAGS) main.cpp
|
|
288 |
|
|
289 |
option.o: $(SOURCE_PATH)/qmake/option.cpp $(SOURCE_PATH)/qmake/option.h
|
|
290 |
$(CXX) $(CXXFLAGS) option.cpp
|
|
291 |
|
|
292 |
property.o: $(SOURCE_PATH)/qmake/property.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
|
|
293 |
$(CXX) $(CXXFLAGS) property.cpp
|
|
294 |
|
|
295 |
projectgenerator.o: $(SOURCE_PATH)/qmake/generators/projectgenerator.cpp
|
|
296 |
$(CXX) $(CXXFLAGS) generators/projectgenerator.cpp
|
|
297 |
|
|
298 |
pbuilder_pbx.o: $(SOURCE_PATH)/qmake/generators/mac/pbuilder_pbx.cpp
|
|
299 |
$(CXX) $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp
|
|
300 |
|
|
301 |
makefiledeps.o: $(SOURCE_PATH)/qmake/generators/makefiledeps.cpp
|
|
302 |
$(CXX) $(CXXFLAGS) generators/makefiledeps.cpp
|
|
303 |
|
|
304 |
metamakefile.o: $(SOURCE_PATH)/qmake/generators/metamakefile.cpp
|
|
305 |
$(CXX) $(CXXFLAGS) generators/metamakefile.cpp
|
|
306 |
|
|
307 |
xmloutput.o: $(SOURCE_PATH)/qmake/generators/xmloutput.cpp
|
|
308 |
$(CXX) $(CXXFLAGS) generators/xmloutput.cpp
|
|
309 |
|
|
310 |
qxmlstream.o: $(SOURCE_PATH)/src/corelib/xml/qxmlstream.cpp
|
|
311 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/xml/qxmlstream.cpp
|
|
312 |
|
|
313 |
qxmlutils.o: $(SOURCE_PATH)/src/corelib/xml/qxmlutils.cpp
|
|
314 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/xml/qxmlutils.cpp
|