2013-07-02 11:48:08 +00:00
|
|
|
!IF "$(QMAKESPEC)" == "win32-msvc" || "$(QMAKESPEC)" == "win32-msvc.net" || "$(QMAKESPEC)" == "win32-msvc2002" || "$(QMAKESPEC)" == "win32-msvc2003" || "$(QMAKESPEC)" == "win32-msvc2005" || "$(QMAKESPEC)" == "win32-msvc2008" || "$(QMAKESPEC)" == "win32-msvc2010" || "$(QMAKESPEC)" == "win32-msvc2012" || "$(QMAKESPEC)" == "win32-msvc2013" || "$(QMAKESPEC)" == "win32-icc"
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
!if "$(SOURCE_PATH)" == ""
|
|
|
|
SOURCE_PATH = ..
|
|
|
|
!endif
|
|
|
|
!if "$(BUILD_PATH)" == ""
|
|
|
|
BUILD_PATH = ..
|
|
|
|
!endif
|
|
|
|
|
2012-03-09 09:50:23 +00:00
|
|
|
QMKSRC = $(SOURCE_PATH)\qmake
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#
|
|
|
|
# specific stuff for NMake and ICC
|
|
|
|
#
|
|
|
|
!if "$(QMAKESPEC)" == "win32-icc"
|
|
|
|
CXX = icl
|
2012-12-04 11:36:56 +00:00
|
|
|
LINKER = link
|
2011-04-27 10:05:43 +00:00
|
|
|
CFLAGS = /Zc:forScope
|
|
|
|
!else
|
|
|
|
CXX = cl
|
2012-12-04 11:36:56 +00:00
|
|
|
LINKER = link
|
2011-04-27 10:05:43 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# specific stuff for VS2005
|
|
|
|
#
|
|
|
|
!if "$(QMAKESPEC)" == "win32-msvc2005"
|
|
|
|
CFLAGS_EXTRA = /Zc:wchar_t-
|
2013-07-02 11:48:08 +00:00
|
|
|
!elseif "$(QMAKESPEC)" == "win32-msvc2008" || "$(QMAKESPEC)" == "win32-msvc2010" || "$(QMAKESPEC)" == "win32-msvc2012" || "$(QMAKESPEC)" == "win32-msvc2013"
|
2011-04-27 10:05:43 +00:00
|
|
|
CFLAGS_EXTRA = /MP
|
|
|
|
!endif
|
|
|
|
|
2013-11-21 13:33:01 +00:00
|
|
|
CFLAGS_BARE = -c -Fo./ -Fdqmake.pdb \
|
2012-02-07 16:47:30 +00:00
|
|
|
-W3 -nologo -O1 \
|
2011-04-27 10:05:43 +00:00
|
|
|
$(CFLAGS_EXTRA) \
|
2012-09-06 10:21:38 +00:00
|
|
|
-I$(QMKSRC) -I$(QMKSRC)\library -I$(QMKSRC)\generators -I$(QMKSRC)\generators\unix -I$(QMKSRC)\generators\win32 -I$(QMKSRC)\generators\mac -I$(QMKSRC)\generators\integrity \
|
2013-05-28 19:34:05 +00:00
|
|
|
-I$(INC_PATH) -I$(INC_PATH)\QtCore -I$(INC_PATH)\QtCore\$(QT_VERSION) -I$(INC_PATH)\QtCore\$(QT_VERSION)\QtCore \
|
2012-08-21 16:02:35 +00:00
|
|
|
-I$(BUILD_PATH)\src\corelib\global -DHAVE_QCONFIG_CPP \
|
2011-04-27 10:05:43 +00:00
|
|
|
-I$(SOURCE_PATH)\mkspecs\$(QMAKESPEC) \
|
|
|
|
-I$(SOURCE_PATH)\tools\shared \
|
2012-08-28 17:24:30 +00:00
|
|
|
-DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL \
|
2012-08-21 16:02:35 +00:00
|
|
|
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS \
|
|
|
|
-DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
|
2013-09-05 05:55:49 +00:00
|
|
|
-DUNICODE -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY
|
2013-02-02 12:31:53 +00:00
|
|
|
CFLAGS = -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch $(CFLAGS_BARE) $(CFLAGS) $(EXTRA_CPPFLAGS)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
CXXFLAGS_BARE = $(CFLAGS_BARE)
|
|
|
|
CXXFLAGS = $(CFLAGS)
|
|
|
|
|
|
|
|
LFLAGS =
|
2013-12-12 14:11:36 +00:00
|
|
|
LIBS = ole32.lib advapi32.lib shell32.lib
|
2012-12-04 11:36:56 +00:00
|
|
|
LINKQMAKE = $(LINKER) $(LFLAGS) -OUT:qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
|
2013-11-21 13:33:01 +00:00
|
|
|
ADDCLEAN = qmake.pdb qmake.ilk
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
!ELSE
|
|
|
|
!ERROR Unsupported compiler for this Makefile
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#qmake code
|
2013-05-29 18:18:51 +00:00
|
|
|
OBJS = project.obj main.obj ioutils.obj proitems.obj qmakevfs.obj \
|
2012-09-05 16:29:19 +00:00
|
|
|
qmakeglobals.obj qmakeparser.obj qmakeevaluator.obj qmakebuiltins.obj \
|
|
|
|
makefile.obj unixmake.obj unixmake2.obj mingw_make.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
option.obj winmakefile.obj projectgenerator.obj property.obj meta.obj \
|
|
|
|
makefiledeps.obj metamakefile.obj xmloutput.obj pbuilder_pbx.obj \
|
2012-04-25 15:12:53 +00:00
|
|
|
msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj \
|
2011-11-04 12:51:20 +00:00
|
|
|
msvc_objectmodel.obj msbuild_objectmodel.obj registry.obj \
|
2012-05-11 08:24:28 +00:00
|
|
|
gbuild.obj cesdkhandler.obj
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#qt code
|
|
|
|
QTOBJS= \
|
|
|
|
qbitarray.obj \
|
|
|
|
qbuffer.obj \
|
|
|
|
qcryptographichash.obj \
|
|
|
|
qfilesystementry.obj \
|
|
|
|
qfilesystemengine.obj \
|
|
|
|
qfilesystemengine_win.obj \
|
|
|
|
qfilesystemiterator_win.obj \
|
|
|
|
qfsfileengine.obj \
|
|
|
|
qfsfileengine_iterator.obj \
|
2012-03-27 09:21:27 +00:00
|
|
|
qarraydata.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qbytearray.obj \
|
|
|
|
qvsnprintf.obj \
|
|
|
|
qbytearraymatcher.obj \
|
|
|
|
qdatetime.obj \
|
|
|
|
qdir.obj \
|
|
|
|
qdiriterator.obj \
|
2012-02-26 09:05:39 +00:00
|
|
|
qfiledevice.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qfile.obj \
|
|
|
|
qtemporaryfile.obj \
|
|
|
|
qabstractfileengine.obj \
|
|
|
|
qfsfileengine_win.obj \
|
|
|
|
qsystemlibrary.obj \
|
|
|
|
qfileinfo.obj \
|
|
|
|
qglobal.obj \
|
|
|
|
qhash.obj \
|
|
|
|
qiodevice.obj \
|
|
|
|
qlist.obj \
|
|
|
|
qlinkedlist.obj \
|
|
|
|
qlocale.obj \
|
|
|
|
qlocale_tools.obj \
|
|
|
|
qlocale_win.obj \
|
|
|
|
qmalloc.obj \
|
|
|
|
qmap.obj \
|
|
|
|
qregexp.obj \
|
|
|
|
qtextcodec.obj \
|
|
|
|
qutfcodec.obj \
|
|
|
|
qstring.obj \
|
2013-10-09 19:14:01 +00:00
|
|
|
qstring_compat.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qstringlist.obj \
|
2012-02-26 14:20:24 +00:00
|
|
|
qstringbuilder.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qsystemerror.obj \
|
|
|
|
qtextstream.obj \
|
|
|
|
qdatastream.obj \
|
|
|
|
quuid.obj \
|
|
|
|
qvector.obj \
|
|
|
|
qsettings.obj \
|
|
|
|
qlibraryinfo.obj \
|
|
|
|
qvariant.obj \
|
|
|
|
qsettings_win.obj \
|
|
|
|
qmetatype.obj \
|
|
|
|
qxmlstream.obj \
|
|
|
|
qxmlutils.obj \
|
2012-02-03 08:35:22 +00:00
|
|
|
qnumeric.obj \
|
2013-09-05 05:55:49 +00:00
|
|
|
qlogging.obj \
|
|
|
|
qjson.obj \
|
|
|
|
qjsondocument.obj \
|
|
|
|
qjsonparser.obj \
|
|
|
|
qjsonarray.obj \
|
|
|
|
qjsonobject.obj \
|
|
|
|
qjsonvalue.obj
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
first all: qmake.exe
|
|
|
|
|
|
|
|
qmake.exe: $(OBJS) $(QTOBJS)
|
|
|
|
$(LINKQMAKE) qmake_pch.obj
|
|
|
|
-copy qmake.exe $(BUILD_PATH)\bin\qmake.exe
|
|
|
|
|
|
|
|
clean::
|
|
|
|
-del $(QTOBJS)
|
|
|
|
-del $(OBJS)
|
|
|
|
-del qmake_pch.obj
|
|
|
|
-del qmake_pch.pch
|
|
|
|
-del qsystemlibrary.obj
|
|
|
|
-del qmake.pdb
|
|
|
|
-del qmake.ilk
|
|
|
|
-del qmake.tds
|
|
|
|
|
|
|
|
distclean:: clean
|
|
|
|
-del qmake
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
$(CXX) $(CFLAGS) $<
|
|
|
|
|
|
|
|
.cpp.obj:
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
.cc.obj:
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
.cxx.obj:
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
$(OBJS): qmake_pch.obj
|
|
|
|
|
|
|
|
$(QTOBJS): qmake_pch.obj
|
|
|
|
|
2013-11-21 13:48:37 +00:00
|
|
|
qlibraryinfo.obj: $(BUILD_PATH)\src\corelib\global\qconfig.cpp
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
qmake_pch.obj:
|
2012-03-16 17:59:09 +00:00
|
|
|
$(CXX) $(CXXFLAGS_BARE) -c -Yc -Fpqmake_pch.pch -TP $(QMKSRC)\qmake_pch.h
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-09-05 16:29:19 +00:00
|
|
|
{$(SOURCE_PATH)\qmake\library}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
{$(SOURCE_PATH)\qmake\generators\mac}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators\integrity}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators\unix}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators\win32}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\3rdparty\md5}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\codecs}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\global}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\io}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\kernel}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\plugin}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\tools}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\xml}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2013-09-05 05:55:49 +00:00
|
|
|
{$(SOURCE_PATH)\src\corelib\json}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
{$(SOURCE_PATH)\tools\shared\windows}.cpp{}.obj::
|
2011-11-11 15:38:16 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $<
|