1 !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-msvc11" || "$(QMAKESPEC)" == "win32-icc"
3 !if "$(SOURCE_PATH)" == ""
6 !if "$(BUILD_PATH)" == ""
10 QMKSRC = $(SOURCE_PATH)\qmake
13 # specific stuff for NMake and ICC
15 !if "$(QMAKESPEC)" == "win32-icc"
25 # specific stuff for VS2005
27 !if "$(QMAKESPEC)" == "win32-msvc2005"
28 CFLAGS_EXTRA = /Zc:wchar_t-
29 !elseif "$(QMAKESPEC)" == "win32-msvc2008" || "$(QMAKESPEC)" == "win32-msvc2010" || "$(QMAKESPEC)" == "win32-msvc11"
33 CFLAGS_BARE = -c -Fo./ \
36 -I$(QMKSRC) -I$(QMKSRC)\generators -I$(QMKSRC)\generators\unix -I$(QMKSRC)\generators\win32 -I$(QMKSRC)\generators\mac -I$(QMKSRC)\generators\integrity \
37 -I$(BUILD_PATH)\include -I$(BUILD_PATH)\include\QtCore -I$(BUILD_PATH)\include\QtCore\$(QT_VERSION) -I$(BUILD_PATH)\include\QtCore\$(QT_VERSION)\QtCore \
38 -I$(BUILD_PATH)\src\corelib\global \
39 -I$(SOURCE_PATH)\mkspecs\$(QMAKESPEC) \
40 -I$(SOURCE_PATH)\tools\shared \
41 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT \
42 -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD \
43 -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED
44 CFLAGS = -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch $(CFLAGS_BARE) $(CFLAGS)
46 CXXFLAGS_BARE = $(CFLAGS_BARE)
50 LIBS = ole32.lib advapi32.lib
51 LINKQMAKE = $(LINK) $(LFLAGS) -OUT:qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
52 ADDCLEAN = vc60.pdb vc70.pdb qmake.pdb qmake.ilk
55 !ERROR Unsupported compiler for this Makefile
59 OBJS = project.obj main.obj makefile.obj unixmake.obj unixmake2.obj mingw_make.obj \
60 option.obj winmakefile.obj projectgenerator.obj property.obj meta.obj \
61 makefiledeps.obj metamakefile.obj xmloutput.obj pbuilder_pbx.obj \
62 borland_bmake.obj msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj \
63 msvc_objectmodel.obj msbuild_objectmodel.obj registry.obj \
64 gbuild.obj cesdkhandler.obj
66 !IFDEF QMAKE_OPENSOURCE_EDITION
67 CFLAGS = $(CFLAGS) -DQMAKE_OPENSOURCE_EDITION
74 qcryptographichash.obj \
75 qfilesystementry.obj \
76 qfilesystemengine.obj \
77 qfilesystemengine_win.obj \
78 qfilesystemiterator_win.obj \
80 qfsfileengine_iterator.obj \
84 qbytearraymatcher.obj \
91 qabstractfileengine.obj \
92 qfsfileengine_win.obj \
128 qmake.exe: $(OBJS) $(QTOBJS)
129 $(LINKQMAKE) qmake_pch.obj
130 -copy qmake.exe $(BUILD_PATH)\bin\qmake.exe
137 -del qsystemlibrary.obj
151 $(CXX) $(CXXFLAGS) $<
154 $(CXX) $(CXXFLAGS) $<
157 $(CXX) $(CXXFLAGS) $<
159 $(OBJS): qmake_pch.obj
161 $(QTOBJS): qmake_pch.obj
164 $(CXX) $(CXXFLAGS_BARE) -c -Yc -Fpqmake_pch.pch -TP $(QMKSRC)\qmake_pch.h
166 {$(SOURCE_PATH)\qmake\generators\mac}.cpp{}.obj::
167 $(CXX) $(CXXFLAGS) $<
169 {$(SOURCE_PATH)\qmake\generators\integrity}.cpp{}.obj::
170 $(CXX) $(CXXFLAGS) $<
172 {$(SOURCE_PATH)\qmake\generators\unix}.cpp{}.obj::
173 $(CXX) $(CXXFLAGS) $<
175 {$(SOURCE_PATH)\qmake\generators\win32}.cpp{}.obj::
176 $(CXX) $(CXXFLAGS) $<
178 {$(SOURCE_PATH)\qmake\generators}.cpp{}.obj::
179 $(CXX) $(CXXFLAGS) $<
181 {$(SOURCE_PATH)\qmake}.cpp{}.obj::
182 $(CXX) $(CXXFLAGS) $<
184 {$(SOURCE_PATH)\src\3rdparty\md5}.cpp{}.obj::
185 $(CXX) $(CXXFLAGS) $<
187 {$(SOURCE_PATH)\src\corelib\codecs}.cpp{}.obj::
188 $(CXX) $(CXXFLAGS) $<
190 {$(SOURCE_PATH)\src\corelib\global}.cpp{}.obj::
191 $(CXX) $(CXXFLAGS) $<
193 {$(SOURCE_PATH)\src\corelib\io}.cpp{}.obj::
194 $(CXX) $(CXXFLAGS) $<
196 {$(SOURCE_PATH)\src\corelib\kernel}.cpp{}.obj::
197 $(CXX) $(CXXFLAGS) $<
199 {$(SOURCE_PATH)\src\corelib\plugin}.cpp{}.obj::
200 $(CXX) $(CXXFLAGS) $<
202 {$(SOURCE_PATH)\src\corelib\tools}.cpp{}.obj::
203 $(CXX) $(CXXFLAGS) $<
205 {$(SOURCE_PATH)\src\corelib\xml}.cpp{}.obj::
206 $(CXX) $(CXXFLAGS) $<
208 {$(SOURCE_PATH)\tools\shared\windows}.cpp{}.obj::
209 $(CXX) $(CXXFLAGS) $<