1 ifeq "$(SOURCE_PATH)" ""
7 ifeq "$(BUILD_PATH)" ""
12 # specific stuff for mingw g++ make
16 -I. -Igenerators -Igenerators/unix \
17 -Igenerators/win32 -Igenerators/mac \
18 -I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore \
19 -I$(SOURCE_PATH)/include -I$(SOURCE_PATH)/include/QtCore \
20 -I$(BUILD_PATH)/src/corelib/global \
21 -I$(BUILD_PATH)/include/QtScript \
22 -I$(SOURCE_PATH)/mkspecs/win32-g++ \
23 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE \
24 -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP \
25 -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM
29 LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
34 OBJS = project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o \
35 option.o winmakefile.o projectgenerator.o property.o meta.o \
36 makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o \
37 borland_bmake.o msvc_nmake.o msvc_dsp.o msvc_vcproj.o \
40 ifdef QMAKE_OPENSOURCE_EDITION
41 CFLAGS += -DQMAKE_OPENSOURCE_EDITION
49 qcryptographichash.o \
59 qabstractfileengine.o \
61 qfsfileengine_iterator.o \
63 qfsfileengine_iterator_win.o \
90 qscriptecmaboolean.o \
93 qscriptecmafunction.o \
104 qscriptengineagent.o \
105 qscriptextenumeration.o \
106 qscriptextvariant.o \
108 qscriptcontextinfo.o \
114 qscriptprettypretty.o \
115 qscriptsyntaxchecker.o \
117 qscriptclasspropertyiterator.o \
121 qscriptvalueiterator.o \
122 qscriptvalueiteratorimpl.o
125 qmake.exe: $(OBJS) $(QTOBJS)
127 -copy qmake.exe $(BUILD_PATH)\bin\qmake.exe
129 Makefile: Makefile.win32-g++
130 @echo "Out of date, please rerun configure"
133 -del $(OBJS) $(QTOBJS) $(ADDCLEAN)
142 $(CXX) $(CXXFLAGS) $<
144 qconfig.o: $(BUILD_PATH)/src/corelib/global/qconfig.cpp
145 $(CXX) $(CXXFLAGS) $(BUILD_PATH)/src/corelib/global/qconfig.cpp
147 qsettings_win.o: $(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp
148 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp
150 qsettings.o: $(SOURCE_PATH)/src/corelib/io/qsettings.cpp
151 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qsettings.cpp
153 qvariant.o: $(SOURCE_PATH)/src/corelib/kernel/qvariant.cpp
154 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/kernel/qvariant.cpp
156 qurl.o: $(SOURCE_PATH)/src/corelib/io/qurl.cpp
157 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qurl.cpp
159 qtextstream.o: $(SOURCE_PATH)/src/corelib/io/qtextstream.cpp
160 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qtextstream.cpp
162 qdatastream.o: $(SOURCE_PATH)/src/corelib/io/qdatastream.cpp
163 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdatastream.cpp
165 qiodevice.o: $(SOURCE_PATH)/src/corelib/io/qiodevice.cpp
166 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qiodevice.cpp
168 qlibraryinfo.o: $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
169 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
171 qnumeric.o: $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
172 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
174 qmalloc.o: $(SOURCE_PATH)/src/corelib/global/qmalloc.cpp
175 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qmalloc.cpp
177 qglobal.o: $(SOURCE_PATH)/src/corelib/global/qglobal.cpp
178 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qglobal.cpp
180 qhash.o: $(SOURCE_PATH)/src/corelib/tools/qhash.cpp
181 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qhash.cpp
183 qbytearray.o: $(SOURCE_PATH)/src/corelib/tools/qbytearray.cpp
184 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbytearray.cpp
186 qcryptographichash.o: $(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp
187 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp
189 qvsnprintf.o: $(SOURCE_PATH)/src/corelib/tools/qvsnprintf.cpp
190 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qvsnprintf.cpp
192 qbytearraymatcher.o: $(SOURCE_PATH)/src/corelib/tools/qbytearraymatcher.cpp
193 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbytearraymatcher.cpp
195 qstring.o: $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
196 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
198 qlocale.o: $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
199 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
201 quuid.o: $(SOURCE_PATH)/src/corelib/plugin/quuid.cpp
202 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/plugin/quuid.cpp
204 qbuffer.o: $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
205 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
207 qlistdata.o: $(SOURCE_PATH)/src/corelib/tools/qlistdata.cpp
208 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlistdata.cpp
210 qlinkedlist.o: $(SOURCE_PATH)/src/corelib/tools/qlinkedlist.cpp
211 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlinkedlist.cpp
213 qfile.o: $(SOURCE_PATH)/src/corelib/io/qfile.cpp
214 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfile.cpp
216 qtemporaryfile.o: $(SOURCE_PATH)/src/corelib/io/qtemporaryfile.cpp
217 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qtemporaryfile.cpp
219 qabstractfileengine.o: $(SOURCE_PATH)/src/corelib/io/qabstractfileengine.cpp
220 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qabstractfileengine.cpp
222 qfsfileengine_win.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp
223 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp
225 qfsfileengine_iterator_win.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator_win.cpp
226 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator_win.cpp
228 qfsfileengine.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine.cpp
229 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine.cpp
231 qfsfileengine_iterator.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator.cpp
232 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator.cpp
234 qtextcodec.o: $(SOURCE_PATH)/src/codecs/qtextcodec.cpp
235 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/codecs/qtextcodec.cpp
237 qregexp.o: $(SOURCE_PATH)/src/corelib/tools/qregexp.cpp
238 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qregexp.cpp
240 qvector.o: $(SOURCE_PATH)/src/corelib/tools/qvector.cpp
241 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qvector.cpp
243 qbitarray.o: $(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp
244 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp
246 qdir.o: $(SOURCE_PATH)/src/corelib/io/qdir.cpp
247 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdir.cpp
249 qdiriterator.o: $(SOURCE_PATH)/src/corelib/io/qdiriterator.cpp
250 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdiriterator.cpp
252 qmetatype.o: $(SOURCE_PATH)/src/corelib/kernel/qmetatype.cpp
253 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/kernel/qmetatype.cpp
255 qfileinfo.o: $(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp
256 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp
258 qdatetime.o: $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp
259 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp
261 qstringlist.o: $(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp
262 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp
264 qmap.o: $(SOURCE_PATH)/src/corelib/tools/qmap.cpp
265 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qmap.cpp
267 makefile.o: $(SOURCE_PATH)/qmake/generators/makefile.cpp
268 $(CXX) $(CXXFLAGS) generators/makefile.cpp
270 unixmake.o: $(SOURCE_PATH)/qmake/generators/unix/unixmake.cpp
271 $(CXX) $(CXXFLAGS) generators/unix/unixmake.cpp
273 unixmake2.o: $(SOURCE_PATH)/qmake/generators/unix/unixmake2.cpp
274 $(CXX) $(CXXFLAGS) generators/unix/unixmake2.cpp
276 winmakefile.o: $(SOURCE_PATH)/qmake/generators/win32/winmakefile.cpp
277 $(CXX) $(CXXFLAGS) generators/win32/winmakefile.cpp
279 borland_bmake.o: $(SOURCE_PATH)/qmake/generators/win32/borland_bmake.cpp
280 $(CXX) $(CXXFLAGS) generators/win32/borland_bmake.cpp
282 mingw_make.o: $(SOURCE_PATH)/qmake/generators/win32/mingw_make.cpp
283 $(CXX) $(CXXFLAGS) generators/win32/mingw_make.cpp
285 msvc_nmake.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_nmake.cpp
286 $(CXX) $(CXXFLAGS) generators/win32/msvc_nmake.cpp
288 msvc_dsp.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_dsp.cpp
289 $(CXX) $(CXXFLAGS) generators/win32/msvc_dsp.cpp
291 msvc_vcproj.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_vcproj.cpp
292 $(CXX) $(CXXFLAGS) generators/win32/msvc_vcproj.cpp
294 msvc_objectmodel.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_objectmodel.cpp
295 $(CXX) $(CXXFLAGS) generators/win32/msvc_objectmodel.cpp
297 project.o: $(SOURCE_PATH)/qmake/project.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
298 $(CXX) $(CXXFLAGS) project.cpp
300 meta.o: $(SOURCE_PATH)/qmake/meta.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
301 $(CXX) $(CXXFLAGS) meta.cpp
303 main.o: $(SOURCE_PATH)/qmake/main.cpp $(SOURCE_PATH)/qmake/project.h
304 $(CXX) $(CXXFLAGS) main.cpp
306 option.o: $(SOURCE_PATH)/qmake/option.cpp $(SOURCE_PATH)/qmake/option.h
307 $(CXX) $(CXXFLAGS) option.cpp
309 property.o: $(SOURCE_PATH)/qmake/property.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
310 $(CXX) $(CXXFLAGS) property.cpp
312 projectgenerator.o: $(SOURCE_PATH)/qmake/generators/projectgenerator.cpp
313 $(CXX) $(CXXFLAGS) generators/projectgenerator.cpp
315 pbuilder_pbx.o: $(SOURCE_PATH)/qmake/generators/mac/pbuilder_pbx.cpp
316 $(CXX) $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp
318 makefiledeps.o: $(SOURCE_PATH)/qmake/generators/makefiledeps.cpp
319 $(CXX) $(CXXFLAGS) generators/makefiledeps.cpp
321 metamakefile.o: $(SOURCE_PATH)/qmake/generators/metamakefile.cpp
322 $(CXX) $(CXXFLAGS) generators/metamakefile.cpp
324 xmloutput.o: $(SOURCE_PATH)/qmake/generators/xmloutput.cpp
325 $(CXX) $(CXXFLAGS) generators/xmloutput.cpp
327 qscriptasm.o: $(SOURCE_PATH)\src\script\qscriptasm.cpp
328 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)\src\script\qscriptasm.cpp
330 qscriptast.o: $(SOURCE_PATH)\src\script\qscriptast.cpp
331 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)\src\script\qscriptast.cpp
333 qscriptastvisitor.o: $(SOURCE_PATH)\src\script\qscriptastvisitor.cpp
334 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)\src\script\qscriptastvisitor.cpp
336 qscriptcompiler.o: $(SOURCE_PATH)\src\script\qscriptcompiler.cpp
337 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)\src\script\qscriptcompiler.cpp
339 qscriptecmaarray.o: $(SOURCE_PATH)\src\script\qscriptecmaarray.cpp
340 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)\src\script\qscriptecmaarray.cpp
342 qscriptecmaboolean.o: $(SOURCE_PATH)/src/script/qscriptecmaboolean.cpp
343 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmaboolean.cpp
345 qscriptecmacore.o: $(SOURCE_PATH)/src/script/qscriptecmacore.cpp
346 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmacore.cpp
348 qscriptecmadate.o: $(SOURCE_PATH)/src/script/qscriptecmadate.cpp
349 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmadate.cpp
351 qscriptecmafunction.o: $(SOURCE_PATH)/src/script/qscriptecmafunction.cpp
352 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmafunction.cpp
354 qscriptecmaglobal.o: $(SOURCE_PATH)/src/script/qscriptecmaglobal.cpp
355 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmaglobal.cpp
357 qscriptecmamath.o: $(SOURCE_PATH)/src/script/qscriptecmamath.cpp
358 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmamath.cpp
360 qscriptecmanumber.o: $(SOURCE_PATH)/src/script/qscriptecmanumber.cpp
361 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmanumber.cpp
363 qscriptecmaobject.o: $(SOURCE_PATH)/src/script/qscriptecmaobject.cpp
364 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmaobject.cpp
366 qscriptecmaregexp.o: $(SOURCE_PATH)/src/script/qscriptecmaregexp.cpp
367 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmaregexp.cpp
369 qscriptecmastring.o: $(SOURCE_PATH)/src/script/qscriptecmastring.cpp
370 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmastring.cpp
372 qscriptecmaerror.o: $(SOURCE_PATH)/src/script/qscriptecmaerror.cpp
373 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptecmaerror.cpp
375 qscriptcontext_p.o: $(SOURCE_PATH)/src/script/qscriptcontext_p.cpp
376 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptcontext_p.cpp
378 qscriptengine.o: $(SOURCE_PATH)/src/script/qscriptengine.cpp
379 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptengine.cpp
381 qscriptengine_p.o: $(SOURCE_PATH)/src/script/qscriptengine_p.cpp
382 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptengine_p.cpp
384 qscriptengineagent.o: $(SOURCE_PATH)/src/script/qscriptengineagent.cpp
385 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptengineagent.cpp
387 qscriptextenumeration.o: $(SOURCE_PATH)/src/script/qscriptextenumeration.cpp
388 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptextenumeration.cpp
390 qscriptextvariant.o: $(SOURCE_PATH)/src/script/qscriptextvariant.cpp
391 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptextvariant.cpp
393 qscriptcontext.o: $(SOURCE_PATH)/src/script/qscriptcontext.cpp
394 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptcontext.cpp
396 qscriptcontextinfo.o: $(SOURCE_PATH)/src/script/qscriptcontextinfo.cpp
397 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptcontextinfo.cpp
399 qscriptfunction.o: $(SOURCE_PATH)/src/script/qscriptfunction.cpp
400 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptfunction.cpp
402 qscriptgrammar.o: $(SOURCE_PATH)/src/script/qscriptgrammar.cpp
403 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptgrammar.cpp
405 qscriptlexer.o: $(SOURCE_PATH)/src/script/qscriptlexer.cpp
406 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptlexer.cpp
408 qscriptclassdata.o: $(SOURCE_PATH)/src/script/qscriptclassdata.cpp
409 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptclassdata.cpp
411 qscriptparser.o: $(SOURCE_PATH)/src/script/qscriptparser.cpp
412 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptparser.cpp
414 qscriptprettypretty.o: $(SOURCE_PATH)/src/script/qscriptprettypretty.cpp
415 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptprettypretty.cpp
417 qscriptsyntaxchecker.o: $(SOURCE_PATH)/src/script/qscriptsyntaxchecker.cpp
418 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptsyntaxchecker.cpp
420 qscriptclass.o: $(SOURCE_PATH)/src/script/qscriptclass.cpp
421 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptclass.cpp
423 qscriptclasspropertyiterator.o: $(SOURCE_PATH)/src/script/qscriptclasspropertyiterator.cpp
424 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptclasspropertyiterator.cpp
426 qscriptstring.o: $(SOURCE_PATH)/src/script/qscriptstring.cpp
427 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptstring.cpp
429 qscriptvalue.o: $(SOURCE_PATH)/src/script/qscriptvalue.cpp
430 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptvalue.cpp
432 qscriptvalueimpl.o: $(SOURCE_PATH)/src/script/qscriptvalueimpl.cpp
433 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptvalueimpl.cpp
435 qscriptvalueiterator.o: $(SOURCE_PATH)/src/script/qscriptvalueiterator.cpp
436 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptvalueiterator.cpp
438 qscriptvalueiteratorimpl.o: $(SOURCE_PATH)/src/script/qscriptvalueiteratorimpl.cpp
439 $(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/script/qscriptvalueiteratorimpl.cpp