0
|
1 |
ifeq "$(SOURCE_PATH)" ""
|
|
2 |
SOURCE_PATH = ..
|
|
3 |
endif
|
|
4 |
|
|
5 |
#cmd 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 |
|
|
94 |
qmake.exe: $(OBJS) $(QTOBJS)
|
|
95 |
$(LINKQMAKE)
|
|
96 |
-copy qmake.exe $(BUILD_PATH)\bin\qmake.exe
|
|
97 |
|
|
98 |
Makefile: Makefile.win32-g++
|
|
99 |
@echo "Out of date, please rerun configure"
|
|
100 |
|
|
101 |
clean::
|
|
102 |
-del $(OBJS) $(QTOBJS) $(ADDCLEAN)
|
|
103 |
|
|
104 |
distclean:: clean
|
|
105 |
-del qmake
|
|
106 |
|
|
107 |
.c.o:
|
|
108 |
$(CXX) $(CFLAGS) $<
|
|
109 |
|
|
110 |
.cpp.o:
|
|
111 |
$(CXX) $(CXXFLAGS) $<
|
|
112 |
|
|
113 |
qconfig.o: $(BUILD_PATH)/src/corelib/global/qconfig.cpp
|
|
114 |
$(CXX) $(CXXFLAGS) $(BUILD_PATH)/src/corelib/global/qconfig.cpp
|
|
115 |
|
|
116 |
qsettings_win.o: $(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp
|
|
117 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qsettings_win.cpp
|
|
118 |
|
|
119 |
qsettings.o: $(SOURCE_PATH)/src/corelib/io/qsettings.cpp
|
|
120 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qsettings.cpp
|
|
121 |
|
|
122 |
qvariant.o: $(SOURCE_PATH)/src/corelib/kernel/qvariant.cpp
|
|
123 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/kernel/qvariant.cpp
|
|
124 |
|
|
125 |
qurl.o: $(SOURCE_PATH)/src/corelib/io/qurl.cpp
|
|
126 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qurl.cpp
|
|
127 |
|
|
128 |
qtextstream.o: $(SOURCE_PATH)/src/corelib/io/qtextstream.cpp
|
|
129 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qtextstream.cpp
|
|
130 |
|
|
131 |
qdatastream.o: $(SOURCE_PATH)/src/corelib/io/qdatastream.cpp
|
|
132 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdatastream.cpp
|
|
133 |
|
|
134 |
qiodevice.o: $(SOURCE_PATH)/src/corelib/io/qiodevice.cpp
|
|
135 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qiodevice.cpp
|
|
136 |
|
|
137 |
qlibraryinfo.o: $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
|
|
138 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
|
|
139 |
|
|
140 |
qnumeric.o: $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
|
|
141 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
|
|
142 |
|
|
143 |
qmalloc.o: $(SOURCE_PATH)/src/corelib/global/qmalloc.cpp
|
|
144 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qmalloc.cpp
|
|
145 |
|
|
146 |
qglobal.o: $(SOURCE_PATH)/src/corelib/global/qglobal.cpp
|
|
147 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qglobal.cpp
|
|
148 |
|
|
149 |
qhash.o: $(SOURCE_PATH)/src/corelib/tools/qhash.cpp
|
|
150 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qhash.cpp
|
|
151 |
|
|
152 |
qbytearray.o: $(SOURCE_PATH)/src/corelib/tools/qbytearray.cpp
|
|
153 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbytearray.cpp
|
|
154 |
|
|
155 |
qcryptographichash.o: $(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp
|
|
156 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp
|
|
157 |
|
|
158 |
qvsnprintf.o: $(SOURCE_PATH)/src/corelib/tools/qvsnprintf.cpp
|
|
159 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qvsnprintf.cpp
|
|
160 |
|
|
161 |
qbytearraymatcher.o: $(SOURCE_PATH)/src/corelib/tools/qbytearraymatcher.cpp
|
|
162 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbytearraymatcher.cpp
|
|
163 |
|
|
164 |
qutfcodec.o: $(SOURCE_PATH)/src/corelib/codecs/qutfcodec.cpp
|
|
165 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/codecs/qutfcodec.cpp
|
|
166 |
|
|
167 |
qstring.o: $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
|
|
168 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstring.cpp
|
|
169 |
|
|
170 |
qlocale.o: $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
|
|
171 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlocale.cpp
|
|
172 |
|
|
173 |
quuid.o: $(SOURCE_PATH)/src/corelib/plugin/quuid.cpp
|
|
174 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/plugin/quuid.cpp
|
|
175 |
|
|
176 |
qbuffer.o: $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
|
|
177 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
|
|
178 |
|
|
179 |
qlist.o: $(SOURCE_PATH)/src/corelib/tools/qlist.cpp
|
|
180 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlist.cpp
|
|
181 |
|
|
182 |
qlinkedlist.o: $(SOURCE_PATH)/src/corelib/tools/qlinkedlist.cpp
|
|
183 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qlinkedlist.cpp
|
|
184 |
|
|
185 |
qfile.o: $(SOURCE_PATH)/src/corelib/io/qfile.cpp
|
|
186 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfile.cpp
|
|
187 |
|
|
188 |
qtemporaryfile.o: $(SOURCE_PATH)/src/corelib/io/qtemporaryfile.cpp
|
|
189 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qtemporaryfile.cpp
|
|
190 |
|
|
191 |
qabstractfileengine.o: $(SOURCE_PATH)/src/corelib/io/qabstractfileengine.cpp
|
|
192 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qabstractfileengine.cpp
|
|
193 |
|
|
194 |
qfsfileengine_win.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp
|
|
195 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_win.cpp
|
|
196 |
|
|
197 |
qfsfileengine_iterator_win.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator_win.cpp
|
|
198 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator_win.cpp
|
|
199 |
|
|
200 |
qfsfileengine.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine.cpp
|
|
201 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine.cpp
|
|
202 |
|
|
203 |
qfsfileengine_iterator.o: $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator.cpp
|
|
204 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfsfileengine_iterator.cpp
|
|
205 |
|
|
206 |
qtextcodec.o: $(SOURCE_PATH)/src/corelib/codecs/qtextcodec.cpp
|
|
207 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/codecs/qtextcodec.cpp
|
|
208 |
|
|
209 |
qregexp.o: $(SOURCE_PATH)/src/corelib/tools/qregexp.cpp
|
|
210 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qregexp.cpp
|
|
211 |
|
|
212 |
qvector.o: $(SOURCE_PATH)/src/corelib/tools/qvector.cpp
|
|
213 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qvector.cpp
|
|
214 |
|
|
215 |
qbitarray.o: $(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp
|
|
216 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp
|
|
217 |
|
|
218 |
qdir.o: $(SOURCE_PATH)/src/corelib/io/qdir.cpp
|
|
219 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdir.cpp
|
|
220 |
|
|
221 |
qdiriterator.o: $(SOURCE_PATH)/src/corelib/io/qdiriterator.cpp
|
|
222 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qdiriterator.cpp
|
|
223 |
|
|
224 |
qmetatype.o: $(SOURCE_PATH)/src/corelib/kernel/qmetatype.cpp
|
|
225 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/kernel/qmetatype.cpp
|
|
226 |
|
|
227 |
qfileinfo.o: $(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp
|
|
228 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/io/qfileinfo.cpp
|
|
229 |
|
|
230 |
qdatetime.o: $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp
|
|
231 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qdatetime.cpp
|
|
232 |
|
|
233 |
qstringlist.o: $(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp
|
|
234 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qstringlist.cpp
|
|
235 |
|
|
236 |
qmap.o: $(SOURCE_PATH)/src/corelib/tools/qmap.cpp
|
|
237 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/tools/qmap.cpp
|
|
238 |
|
|
239 |
makefile.o: $(SOURCE_PATH)/qmake/generators/makefile.cpp
|
|
240 |
$(CXX) $(CXXFLAGS) generators/makefile.cpp
|
|
241 |
|
|
242 |
unixmake.o: $(SOURCE_PATH)/qmake/generators/unix/unixmake.cpp
|
|
243 |
$(CXX) $(CXXFLAGS) generators/unix/unixmake.cpp
|
|
244 |
|
|
245 |
unixmake2.o: $(SOURCE_PATH)/qmake/generators/unix/unixmake2.cpp
|
|
246 |
$(CXX) $(CXXFLAGS) generators/unix/unixmake2.cpp
|
|
247 |
|
|
248 |
winmakefile.o: $(SOURCE_PATH)/qmake/generators/win32/winmakefile.cpp
|
|
249 |
$(CXX) $(CXXFLAGS) generators/win32/winmakefile.cpp
|
|
250 |
|
|
251 |
borland_bmake.o: $(SOURCE_PATH)/qmake/generators/win32/borland_bmake.cpp
|
|
252 |
$(CXX) $(CXXFLAGS) generators/win32/borland_bmake.cpp
|
|
253 |
|
|
254 |
mingw_make.o: $(SOURCE_PATH)/qmake/generators/win32/mingw_make.cpp
|
|
255 |
$(CXX) $(CXXFLAGS) generators/win32/mingw_make.cpp
|
|
256 |
|
|
257 |
msvc_nmake.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_nmake.cpp
|
|
258 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_nmake.cpp
|
|
259 |
|
|
260 |
msvc_dsp.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_dsp.cpp
|
|
261 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_dsp.cpp
|
|
262 |
|
|
263 |
msvc_vcproj.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_vcproj.cpp
|
|
264 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_vcproj.cpp
|
|
265 |
|
|
266 |
msvc_objectmodel.o: $(SOURCE_PATH)/qmake/generators/win32/msvc_objectmodel.cpp
|
|
267 |
$(CXX) $(CXXFLAGS) generators/win32/msvc_objectmodel.cpp
|
|
268 |
|
|
269 |
symmake.o: $(SOURCE_PATH)/qmake/generators/symbian/symmake.cpp
|
|
270 |
$(CXX) $(CXXFLAGS) generators/symbian/symmake.cpp
|
|
271 |
|
|
272 |
symmake_abld.o: $(SOURCE_PATH)/qmake/generators/symbian/symmake_abld.cpp
|
|
273 |
$(CXX) $(CXXFLAGS) generators/symbian/symmake_abld.cpp
|
|
274 |
|
|
275 |
symmake_sbsv2.o: $(SOURCE_PATH)/qmake/generators/symbian/symmake_sbsv2.cpp
|
|
276 |
$(CXX) $(CXXFLAGS) generators/symbian/symmake_sbsv2.cpp
|
|
277 |
|
|
278 |
initprojectdeploy_symbian.o: $(SOURCE_PATH)/qmake/generators/symbian/initprojectdeploy_symbian.cpp
|
|
279 |
$(CXX) $(CXXFLAGS) generators/symbian/initprojectdeploy_symbian.cpp
|
|
280 |
|
|
281 |
project.o: $(SOURCE_PATH)/qmake/project.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
|
|
282 |
$(CXX) $(CXXFLAGS) project.cpp
|
|
283 |
|
|
284 |
meta.o: $(SOURCE_PATH)/qmake/meta.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
|
|
285 |
$(CXX) $(CXXFLAGS) meta.cpp
|
|
286 |
|
|
287 |
main.o: $(SOURCE_PATH)/qmake/main.cpp $(SOURCE_PATH)/qmake/project.h
|
|
288 |
$(CXX) $(CXXFLAGS) main.cpp
|
|
289 |
|
|
290 |
option.o: $(SOURCE_PATH)/qmake/option.cpp $(SOURCE_PATH)/qmake/option.h
|
|
291 |
$(CXX) $(CXXFLAGS) option.cpp
|
|
292 |
|
|
293 |
property.o: $(SOURCE_PATH)/qmake/property.cpp $(SOURCE_PATH)/qmake/project.h $(SOURCE_PATH)/qmake/option.h
|
|
294 |
$(CXX) $(CXXFLAGS) property.cpp
|
|
295 |
|
|
296 |
projectgenerator.o: $(SOURCE_PATH)/qmake/generators/projectgenerator.cpp
|
|
297 |
$(CXX) $(CXXFLAGS) generators/projectgenerator.cpp
|
|
298 |
|
|
299 |
pbuilder_pbx.o: $(SOURCE_PATH)/qmake/generators/mac/pbuilder_pbx.cpp
|
|
300 |
$(CXX) $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp
|
|
301 |
|
|
302 |
makefiledeps.o: $(SOURCE_PATH)/qmake/generators/makefiledeps.cpp
|
|
303 |
$(CXX) $(CXXFLAGS) generators/makefiledeps.cpp
|
|
304 |
|
|
305 |
metamakefile.o: $(SOURCE_PATH)/qmake/generators/metamakefile.cpp
|
|
306 |
$(CXX) $(CXXFLAGS) generators/metamakefile.cpp
|
|
307 |
|
|
308 |
xmloutput.o: $(SOURCE_PATH)/qmake/generators/xmloutput.cpp
|
|
309 |
$(CXX) $(CXXFLAGS) generators/xmloutput.cpp
|
|
310 |
|
|
311 |
qxmlstream.o: $(SOURCE_PATH)/src/corelib/xml/qxmlstream.cpp
|
|
312 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/xml/qxmlstream.cpp
|
|
313 |
|
|
314 |
qxmlutils.o: $(SOURCE_PATH)/src/corelib/xml/qxmlutils.cpp
|
|
315 |
$(CXX) $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/xml/qxmlutils.cpp
|