author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 01:19:32 +0300 | |
changeset 37 | 758a864f9613 |
parent 30 | 5dc02b23752f |
permissions | -rw-r--r-- |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
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-icc" |
0 | 2 |
|
3 |
!if "$(SOURCE_PATH)" == "" |
|
4 |
SOURCE_PATH = .. |
|
5 |
!endif |
|
6 |
!if "$(BUILD_PATH)" == "" |
|
7 |
BUILD_PATH = .. |
|
8 |
!endif |
|
9 |
||
10 |
# |
|
11 |
# specific stuff for NMake and ICC |
|
12 |
# |
|
13 |
!if "$(QMAKESPEC)" == "win32-icc" |
|
14 |
CXX = icl |
|
15 |
LINK = link |
|
16 |
CFLAGS = /Zc:forScope |
|
17 |
!else |
|
18 |
CXX = cl |
|
19 |
LINK = link |
|
20 |
!endif |
|
21 |
||
22 |
# |
|
23 |
# specific stuff for VS2005 |
|
24 |
# |
|
25 |
!if "$(QMAKESPEC)" == "win32-msvc2005" |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
26 |
CFLAGS_EXTRA = /Zc:wchar_t- |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
27 |
!elseif "$(QMAKESPEC)" == "win32-msvc2008" || "$(QMAKESPEC)" == "win32-msvc2010" |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
28 |
CFLAGS_EXTRA = /MP |
0 | 29 |
!endif |
30 |
||
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
31 |
CFLAGS_BARE = -c -Fo./ \ |
0 | 32 |
-W3 -nologo -O2 \ |
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
33 |
$(CFLAGS_EXTRA) \ |
0 | 34 |
-I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian \ |
35 |
-I$(BUILD_PATH)\include -I$(BUILD_PATH)\include\QtCore \ |
|
36 |
-I$(SOURCE_PATH)\include -I$(SOURCE_PATH)\include\QtCore \ |
|
37 |
-I$(BUILD_PATH)\src\corelib\global \ |
|
38 |
-I$(BUILD_PATH)\src\corelib\xml \ |
|
39 |
-I$(SOURCE_PATH)\mkspecs\$(QMAKESPEC) \ |
|
18
2f34d5167611
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
40 |
-I$(SOURCE_PATH)\tools\shared \ |
0 | 41 |
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL \ |
42 |
-DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD \ |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
43 |
-DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
44 |
CFLAGS = -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch $(CFLAGS_BARE) $(CFLAGS) |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
45 |
|
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
46 |
CXXFLAGS_BARE = $(CFLAGS_BARE) |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
47 |
CXXFLAGS = $(CFLAGS) |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
48 |
|
0 | 49 |
LFLAGS = |
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 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
53 |
|
0 | 54 |
!ELSE |
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
55 |
!ERROR Unsupported compiler for this Makefile |
0 | 56 |
!ENDIF |
57 |
||
58 |
#qmake code |
|
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 \ |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
62 |
borland_bmake.obj msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj \ |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
63 |
msvc_objectmodel.obj msbuild_objectmodel.obj symmake.obj initprojectdeploy_symbian.obj \ |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
64 |
symmake_abld.obj symmake_sbsv2.obj symbiancommon.obj registry.obj epocroot.obj |
0 | 65 |
|
66 |
!IFDEF QMAKE_OPENSOURCE_EDITION |
|
67 |
CFLAGS = $(CFLAGS) -DQMAKE_OPENSOURCE_EDITION |
|
68 |
!ENDIF |
|
69 |
||
70 |
#qt code |
|
71 |
QTOBJS= \ |
|
72 |
qbitarray.obj \ |
|
73 |
qbuffer.obj \ |
|
74 |
qcryptographichash.obj \ |
|
75 |
qfsfileengine.obj \ |
|
76 |
qfsfileengine_iterator.obj \ |
|
77 |
qbytearray.obj \ |
|
78 |
qvsnprintf.obj \ |
|
79 |
qbytearraymatcher.obj \ |
|
80 |
qdatetime.obj \ |
|
81 |
qdir.obj \ |
|
82 |
qdiriterator.obj \ |
|
83 |
qfile.obj \ |
|
84 |
qtemporaryfile.obj \ |
|
85 |
qabstractfileengine.obj \ |
|
86 |
qfsfileengine_win.obj \ |
|
87 |
qfsfileengine_iterator_win.obj \ |
|
88 |
qfileinfo.obj \ |
|
89 |
qglobal.obj \ |
|
90 |
qhash.obj \ |
|
91 |
qiodevice.obj \ |
|
92 |
qlist.obj \ |
|
93 |
qlinkedlist.obj \ |
|
94 |
qlocale.obj \ |
|
95 |
qmalloc.obj \ |
|
96 |
qmap.obj \ |
|
97 |
qregexp.obj \ |
|
98 |
qtextcodec.obj \ |
|
99 |
qutfcodec.obj \ |
|
100 |
qstring.obj \ |
|
101 |
qstringlist.obj \ |
|
102 |
qtextstream.obj \ |
|
103 |
qdatastream.obj \ |
|
104 |
quuid.obj \ |
|
105 |
qvector.obj \ |
|
106 |
qsettings.obj \ |
|
107 |
qlibraryinfo.obj \ |
|
108 |
qvariant.obj \ |
|
109 |
qurl.obj \ |
|
110 |
qsettings_win.obj \ |
|
111 |
qmetatype.obj \ |
|
112 |
qxmlstream.obj \ |
|
113 |
qxmlutils.obj \ |
|
114 |
qnumeric.obj |
|
115 |
||
116 |
||
117 |
first all: qmake.exe |
|
118 |
||
119 |
qmake.exe: $(OBJS) $(QTOBJS) |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
120 |
$(LINKQMAKE) qmake_pch.obj |
0 | 121 |
-copy qmake.exe $(BUILD_PATH)\bin\qmake.exe |
122 |
||
123 |
clean:: |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
124 |
-del $(QTOBJS) |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
125 |
-del $(OBJS) |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
126 |
-del qmake_pch.obj |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
127 |
-del qmake_pch.pch |
0 | 128 |
-del vc60.pdb |
129 |
-del vc70.pdb |
|
130 |
-del qmake.pdb |
|
131 |
-del qmake.ilk |
|
132 |
-del qmake.tds |
|
133 |
||
134 |
distclean:: clean |
|
135 |
-del qmake |
|
136 |
||
137 |
.c.obj: |
|
138 |
$(CXX) $(CFLAGS) $< |
|
139 |
||
140 |
.cpp.obj: |
|
141 |
$(CXX) $(CXXFLAGS) $< |
|
142 |
||
143 |
.cc.obj: |
|
144 |
$(CXX) $(CXXFLAGS) $< |
|
145 |
||
146 |
.cxx.obj: |
|
147 |
$(CXX) $(CXXFLAGS) $< |
|
148 |
||
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
149 |
$(OBJS): qmake_pch.obj |
0 | 150 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
151 |
$(QTOBJS): qmake_pch.obj |
0 | 152 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
153 |
qmake_pch.obj: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
154 |
$(CXX) $(CXXFLAGS_BARE) -c -Yc -Fpqmake_pch.pch -TP qmake_pch.h |
0 | 155 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
156 |
{$(SOURCE_PATH)\qmake\generators\mac}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
157 |
$(CXX) $(CXXFLAGS) $< |
0 | 158 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
159 |
{$(SOURCE_PATH)\qmake\generators\symbian}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
160 |
$(CXX) $(CXXFLAGS) $< |
0 | 161 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
162 |
{$(SOURCE_PATH)\qmake\generators\unix}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
163 |
$(CXX) $(CXXFLAGS) $< |
0 | 164 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
165 |
{$(SOURCE_PATH)\qmake\generators\win32}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
166 |
$(CXX) $(CXXFLAGS) $< |
0 | 167 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
168 |
{$(SOURCE_PATH)\qmake\generators}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
169 |
$(CXX) $(CXXFLAGS) $< |
0 | 170 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
171 |
{$(SOURCE_PATH)\qmake}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
172 |
$(CXX) $(CXXFLAGS) $< |
0 | 173 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
174 |
{$(SOURCE_PATH)\src\3rdparty\md5}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
175 |
$(CXX) $(CXXFLAGS) $< |
0 | 176 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
177 |
{$(SOURCE_PATH)\src\corelib\codecs}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
178 |
$(CXX) $(CXXFLAGS) $< |
0 | 179 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
180 |
{$(SOURCE_PATH)\src\corelib\global}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
181 |
$(CXX) $(CXXFLAGS) $< |
0 | 182 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
183 |
{$(SOURCE_PATH)\src\corelib\io}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
184 |
$(CXX) $(CXXFLAGS) $< |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
185 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
186 |
{$(SOURCE_PATH)\src\corelib\kernel}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
187 |
$(CXX) $(CXXFLAGS) $< |
0 | 188 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
189 |
{$(SOURCE_PATH)\src\corelib\plugin}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
190 |
$(CXX) $(CXXFLAGS) $< |
0 | 191 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
192 |
{$(SOURCE_PATH)\src\corelib\tools}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
193 |
$(CXX) $(CXXFLAGS) $< |
0 | 194 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
195 |
{$(SOURCE_PATH)\src\corelib\xml}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
196 |
$(CXX) $(CXXFLAGS) $< |
0 | 197 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
198 |
{$(SOURCE_PATH)\tools\shared\symbian}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
199 |
$(CXX) $(CXXFLAGS) $< |
0 | 200 |
|
37
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
201 |
{$(SOURCE_PATH)\tools\shared\windows}.cpp{}.obj:: |
758a864f9613
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
202 |
$(CXX) $(CXXFLAGS) $< |