source: trunk/qmake/Makefile.win32-g++@ 341

Last change on this file since 341 was 51, checked in by Dmitry A. Kuminov, 16 years ago

qmake: Build os2/GNUMAKE generator on other platforms.

File size: 15.7 KB
RevLine 
[2]1ifeq "$(SOURCE_PATH)" ""
2SOURCE_PATH = ..
3endif
4
5#cmd version
6
7ifeq "$(BUILD_PATH)" ""
8BUILD_PATH = ..
9endif
10
11#
12# specific stuff for mingw g++ make
13#
14CXX = g++
15CFLAGS = -c -o$@ -O \
16 -I. -Igenerators -Igenerators/unix \
[51]17 -Igenerators/win32 -Igenerators/os2 -Igenerators/mac \
[2]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
26CXXFLAGS = $(CFLAGS)
27LFLAGS =
28LIBS = -lole32 -luuid
29LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
30ADDCLEAN =
31
32
33#qmake code
34OBJS = 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 \
[51]38 msvc_objectmodel.o gnumake.o
[2]39
40ifdef QMAKE_OPENSOURCE_EDITION
41CFLAGS += -DQMAKE_OPENSOURCE_EDITION
42endif
43
44#qt code
45QTOBJS= \
46 qbitarray.o \
47 qbuffer.o \
48 qbytearray.o \
49 qcryptographichash.o \
50 qvsnprintf.o \
51 qbytearraymatcher.o \
52 qconfig.o \
53 qdatetime.o \
54 qdir.o \
55 qdiriterator.o \
56 qfile.o \
57 qtemporaryfile.o \
58 qfileinfo.o \
59 qabstractfileengine.o \
60 qfsfileengine.o \
61 qfsfileengine_iterator.o \
62 qfsfileengine_win.o \
63 qfsfileengine_iterator_win.o \
64 qglobal.o \
65 qhash.o \
66 qiodevice.o \
67 qlibraryinfo.o \
68 qlistdata.o \
69 qlinkedlist.o \
70 qlocale.o \
71 qmalloc.o \
72 qmap.o \
73 qregexp.o \
74 qstring.o \
75 qstringlist.o \
76 qtextstream.o \
77 quuid.o \
78 qvector.o \
79 qurl.o \
80 qsettings.o \
81 qsettings_win.o \
82 qvariant.o \
83 qmetatype.o \
84 qnumeric.o \
85 qscriptasm.o \
86 qscriptast.o \
87 qscriptastvisitor.o \
88 qscriptcompiler.o \
89 qscriptecmaarray.o \
90 qscriptecmaboolean.o \
91 qscriptecmacore.o \
92 qscriptecmadate.o \
93 qscriptecmafunction.o \
94 qscriptecmaglobal.o \
95 qscriptecmamath.o \
96 qscriptecmanumber.o \
97 qscriptecmaobject.o \
98 qscriptecmaregexp.o \
99 qscriptecmastring.o \
100 qscriptecmaerror.o \
101 qscriptcontext_p.o \
102 qscriptengine.o \
103 qscriptengine_p.o \
104 qscriptengineagent.o \
105 qscriptextenumeration.o \
106 qscriptextvariant.o \
107 qscriptcontext.o \
108 qscriptcontextinfo.o \
109 qscriptfunction.o \
110 qscriptgrammar.o \
111 qscriptlexer.o \
112 qscriptclassdata.o \
113 qscriptparser.o \
114 qscriptprettypretty.o \
115 qscriptsyntaxchecker.o \
116 qscriptclass.o \
117 qscriptclasspropertyiterator.o \
118 qscriptstring.o \
119 qscriptvalue.o \
120 qscriptvalueimpl.o \
121 qscriptvalueiterator.o \
122 qscriptvalueiteratorimpl.o
123
124
125qmake.exe: $(OBJS) $(QTOBJS)
126 $(LINKQMAKE)
127 -copy qmake.exe $(BUILD_PATH)\bin\qmake.exe
128
129Makefile: Makefile.win32-g++
130 @echo "Out of date, please rerun configure"
131
132clean::
133 -del $(OBJS) $(QTOBJS) $(ADDCLEAN)
134
135distclean:: clean
136 -del qmake
137
138.c.o:
139 $(CXX) $(CFLAGS) $<
140
141.cpp.o:
142 $(CXX) $(CXXFLAGS) $<
143