-rw-r--r-- | qmake/Makefile | 74 |
1 files changed, 58 insertions, 16 deletions
diff --git a/qmake/Makefile b/qmake/Makefile index 01bb1a1..5a72210 100644 --- a/qmake/Makefile +++ b/qmake/Makefile | |||
@@ -1,79 +1,113 @@ | |||
1 | QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 1 | QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
2 | 2 | ||
3 | ######################################################################## | ||
4 | ## This file was autogenerated by configure, all changes will be lost ## | ||
5 | ######################################################################## | ||
6 | CC = gcc | 3 | CC = gcc |
7 | CXX = g++ | 4 | CXX = g++ |
8 | 5 | ||
9 | #qmake code | 6 | #qmake code |
10 | OBJS=project.o main.o makefile.o unixmake2.o unixmake.o borland_bmake.o \ | 7 | OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o \ |
11 | mingw_make.o msvc_nmake.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o \ | 8 | borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o \ |
12 | projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o | 9 | winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o \ |
10 | msvc_objectmodel.o meta.o qtmd5.o | ||
13 | 11 | ||
14 | #qt code | 12 | #qt code |
15 | QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ | 13 | QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ |
16 | qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \ | 14 | qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \ |
17 | qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o \ | 15 | qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o \ |
18 | qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \ | 16 | qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \ |
19 | qconfig.o | 17 | qconfig.o qunicodetables.o qsettings.o qlocale.o |
20 | 18 | ||
21 | CFLAGS= \ | 19 | #all sources, used for the depend target |
20 | DEPEND_SRC=project.cpp property.cpp meta.cpp main.cpp qtmd5.cpp generators/makefile.cpp generators/unix/unixmake2.cpp \ | ||
21 | generators/unix/unixmake.cpp generators/win32/msvc_nmake.cpp generators/win32/borland_bmake.cpp \ | ||
22 | generators/win32/winmakefile.cpp generators/projectgenerator.cpp generators/mac/metrowerks_xml.cpp \ | ||
23 | generators/mac/pbuilder_pbx.cpp generators/win32/msvc_objectmodel.cpp \ | ||
24 | $(OPIEDIR)/qmake/tools/qstring.cpp $(OPIEDIR)/qmake/tools/qtextstream.cpp \ | ||
25 | $(OPIEDIR)/qmake/tools/qiodevice.cpp $(OPIEDIR)/qmake/tools/qglobal.cpp \ | ||
26 | $(OPIEDIR)/qmake/tools/qgdict.cpp $(OPIEDIR)/qmake/tools/qcstring.cpp \ | ||
27 | $(OPIEDIR)/qmake/tools/qdatastream.cpp $(OPIEDIR)/qmake/src/tools/qgarray.cpp \ | ||
28 | $(OPIEDIR)/qmake/tools/qbuffer.cpp $(OPIEDIR)/qmake/tools/qglist.cpp \ | ||
29 | $(OPIEDIR)/qmake/tools/qptrcollection.cpp $(OPIEDIR)/qmake/tools/qfile.cpp \ | ||
30 | $(OPIEDIR)/qmake/tools/qfile_unix.cpp $(OPIEDIR)/qmake/tools/qregexp.cpp \ | ||
31 | $(OPIEDIR)/qmake/tools/qgvector.cpp $(OPIEDIR)/qmake/tools/qgcache.cpp \ | ||
32 | $(OPIEDIR)/qmake/tools/qbitarray.cpp $(OPIEDIR)/qmake/tools/qdir.cpp \ | ||
33 | $(OPIEDIR)/qmake/tools/quuid.cpp $(OPIEDIR)/qmake/tools/qfileinfo_unix.cpp \ | ||
34 | $(OPIEDIR)/qmake/tools/qdir_unix.cpp $(OPIEDIR)/qmake/tools/qfileinfo.cpp \ | ||
35 | $(OPIEDIR)/qmake/tools/qdatetime.cpp $(OPIEDIR)/qmake/tools/qstringlist.cpp \ | ||
36 | $(OPIEDIR)/qmake/tools/qmap.cpp $(OPIEDIR)/qmake/tools/qconfig.cpp \ | ||
37 | $(OPIEDIR)/qmake/tools/qsettings.cpp $(OPIEDIR)/qmake/tools/qurl.cpp \ | ||
38 | $(OPIEDIR)/qmake/tools/qsettings_mac.cpp $(OPIEDIR)/qmake/tools/qlocale.cpp | ||
39 | |||
40 | CXXFLAGS= \ | ||
22 | -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ | 41 | -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ |
23 | -I$(OPIEDIR)/qmake/include -I$(OPIEDIR)/qmake/include/qmake -I$(QMAKESPECSDIR)/default \ | 42 | -I$(OPIEDIR)/qmake/include/qmake -I$(OPIEDIR)/qmake/include -I$(OPIEDIR)/qmake/include/private \ |
24 | -I$(OPIEDIR)/qmake/include/private \ | 43 | -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL \ |
25 | -DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS | 44 | -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/default -DHAVE_QCONFIG_CPP |
26 | CXXFLAGS= $(CFLAGS) | ||
27 | LFLAGS= | 45 | LFLAGS= |
28 | 46 | ||
29 | qmake: $(OBJS) $(QOBJS) | 47 | qmake: $(OBJS) $(QOBJS) |
30 | $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) | 48 | $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) |
31 | $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) | 49 | $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) |
32 | $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) | 50 | $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) |
33 | 51 | ||
34 | install: qmake | 52 | install: qmake |
35 | [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin | 53 | [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin |
36 | -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin | 54 | -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin |
37 | [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) | 55 | [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) |
38 | -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR) | 56 | -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR) |
39 | 57 | ||
40 | clean:: | 58 | clean:: |
41 | rm -f $(OBJS) $(QOBJS) | 59 | rm -f $(OBJS) $(QOBJS) |
42 | 60 | ||
43 | distclean:: clean | 61 | distclean:: clean |
44 | rm -rf qmake .deps | 62 | rm -rf qmake .deps |
45 | 63 | ||
64 | |||
46 | # don't use optimization for these | 65 | # don't use optimization for these |
47 | qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp | 66 | qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp |
48 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp | 67 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp |
49 | 68 | ||
50 | qiodevice.o: $(OPIEDIR)/qmake/tools/qiodevice.cpp | 69 | qiodevice.o: $(OPIEDIR)/qmake/tools/qiodevice.cpp |
51 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qiodevice.cpp | 70 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qiodevice.cpp |
52 | 71 | ||
53 | qglobal.o: $(OPIEDIR)/qmake/tools/qglobal.cpp | 72 | qglobal.o: $(OPIEDIR)/qmake/tools/qglobal.cpp |
54 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglobal.cpp | 73 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglobal.cpp |
55 | 74 | ||
56 | qgdict.o: $(OPIEDIR)/qmake/tools/qgdict.cpp | 75 | qgdict.o: $(OPIEDIR)/qmake/tools/qgdict.cpp |
57 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgdict.cpp | 76 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgdict.cpp |
58 | 77 | ||
59 | qcstring.o: $(OPIEDIR)/qmake/tools/qcstring.cpp | 78 | qcstring.o: $(OPIEDIR)/qmake/tools/qcstring.cpp |
60 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qcstring.cpp | 79 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qcstring.cpp |
61 | 80 | ||
81 | qsettings.o: $(OPIEDIR)/qmake/tools/qsettings.cpp | ||
82 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings.cpp | ||
83 | |||
84 | qsettings_mac.o: $(OPIEDIR)/qmake/tools/qsettings_mac.cpp | ||
85 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings_mac.cpp | ||
86 | |||
87 | qurl.o: $(OPIEDIR)/qmake/kernel/qurl.cpp | ||
88 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/kernel/qurl.cpp | ||
89 | |||
62 | qstring.o: $(OPIEDIR)/qmake/tools/qstring.cpp | 90 | qstring.o: $(OPIEDIR)/qmake/tools/qstring.cpp |
63 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qstring.cpp | 91 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qstring.cpp |
64 | 92 | ||
93 | qlocale.o: $(OPIEDIR)/qmake/tools/qlocale.cpp | ||
94 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qlocale.cpp | ||
95 | |||
65 | qdatastream.o: $(OPIEDIR)/qmake/tools/qdatastream.cpp | 96 | qdatastream.o: $(OPIEDIR)/qmake/tools/qdatastream.cpp |
66 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdatastream.cpp | 97 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdatastream.cpp |
67 | 98 | ||
99 | qunicodetables.o: $(OPIEDIR)/qmake/tools/qunicodetables.cpp | ||
100 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qunicodetables.cpp | ||
101 | |||
68 | qgarray.o: $(OPIEDIR)/qmake/tools/qgarray.cpp | 102 | qgarray.o: $(OPIEDIR)/qmake/tools/qgarray.cpp |
69 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgarray.cpp | 103 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgarray.cpp |
70 | 104 | ||
71 | qbuffer.o: $(OPIEDIR)/qmake/tools/qbuffer.cpp | 105 | qbuffer.o: $(OPIEDIR)/qmake/tools/qbuffer.cpp |
72 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qbuffer.cpp | 106 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qbuffer.cpp |
73 | 107 | ||
74 | qglist.o: $(OPIEDIR)/qmake/tools/qglist.cpp | 108 | qglist.o: $(OPIEDIR)/qmake/tools/qglist.cpp |
75 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglist.cpp | 109 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglist.cpp |
76 | 110 | ||
77 | qptrcollection.o: $(OPIEDIR)/qmake/tools/qptrcollection.cpp | 111 | qptrcollection.o: $(OPIEDIR)/qmake/tools/qptrcollection.cpp |
78 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qptrcollection.cpp | 112 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qptrcollection.cpp |
79 | 113 | ||
@@ -119,30 +153,39 @@ qstringlist.o: $(OPIEDIR)/qmake/tools/qstringlist.cpp | |||
119 | qmap.o: $(OPIEDIR)/qmake/tools/qmap.cpp | 153 | qmap.o: $(OPIEDIR)/qmake/tools/qmap.cpp |
120 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qmap.cpp | 154 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qmap.cpp |
121 | 155 | ||
122 | qconfig.o: $(OPIEDIR)/qmake/tools/qconfig.cpp | 156 | qconfig.o: $(OPIEDIR)/qmake/tools/qconfig.cpp |
123 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qconfig.cpp | 157 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qconfig.cpp |
124 | 158 | ||
125 | winmakefile.o: generators/win32/winmakefile.cpp | 159 | winmakefile.o: generators/win32/winmakefile.cpp |
126 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/winmakefile.cpp | 160 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/winmakefile.cpp |
127 | 161 | ||
128 | project.o: project.cpp project.h option.h | 162 | project.o: project.cpp project.h option.h |
129 | $(CXX) -c -o $@ $(CXXFLAGS) project.cpp | 163 | $(CXX) -c -o $@ $(CXXFLAGS) project.cpp |
130 | 164 | ||
165 | property.o: property.cpp project.h option.h | ||
166 | $(CXX) -c -o $@ $(CXXFLAGS) property.cpp | ||
167 | |||
168 | meta.o: meta.cpp project.h option.h | ||
169 | $(CXX) -c -o $@ $(CXXFLAGS) meta.cpp | ||
170 | |||
131 | main.o: main.cpp project.h | 171 | main.o: main.cpp project.h |
132 | $(CXX) -c -o $@ $(CXXFLAGS) main.cpp | 172 | $(CXX) -c -o $@ $(CXXFLAGS) main.cpp |
133 | 173 | ||
134 | option.o: option.cpp option.h | 174 | option.o: option.cpp option.h |
135 | $(CXX) -c -o $@ $(CXXFLAGS) option.cpp | 175 | $(CXX) -c -o $@ $(CXXFLAGS) option.cpp |
136 | 176 | ||
177 | qtmd5.o: qtmd5.cpp | ||
178 | $(CXX) -c -o $@ $(CXXFLAGS) qtmd5.cpp | ||
179 | |||
137 | makefile.o: generators/makefile.cpp | 180 | makefile.o: generators/makefile.cpp |
138 | $(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp | 181 | $(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp |
139 | 182 | ||
140 | unixmake.o: generators/unix/unixmake.cpp | 183 | unixmake.o: generators/unix/unixmake.cpp |
141 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake.cpp | 184 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake.cpp |
142 | 185 | ||
143 | unixmake2.o: generators/unix/unixmake2.cpp | 186 | unixmake2.o: generators/unix/unixmake2.cpp |
144 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake2.cpp | 187 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake2.cpp |
145 | 188 | ||
146 | borland_bmake.o: generators/win32/borland_bmake.cpp | 189 | borland_bmake.o: generators/win32/borland_bmake.cpp |
147 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/borland_bmake.cpp | 190 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/borland_bmake.cpp |
148 | 191 | ||
@@ -162,17 +205,16 @@ metrowerks_xml.o: generators/mac/metrowerks_xml.cpp | |||
162 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/metrowerks_xml.cpp | 205 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/metrowerks_xml.cpp |
163 | 206 | ||
164 | pbuilder_pbx.o: generators/mac/pbuilder_pbx.cpp | 207 | pbuilder_pbx.o: generators/mac/pbuilder_pbx.cpp |
165 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp | 208 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp |
166 | 209 | ||
167 | msvc_dsp.o: generators/win32/msvc_dsp.cpp | 210 | msvc_dsp.o: generators/win32/msvc_dsp.cpp |
168 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_dsp.cpp | 211 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_dsp.cpp |
169 | 212 | ||
170 | projectgenerator.o: generators/projectgenerator.cpp | 213 | projectgenerator.o: generators/projectgenerator.cpp |
171 | $(CXX) -c -o $@ $(CXXFLAGS) generators/projectgenerator.cpp | 214 | $(CXX) -c -o $@ $(CXXFLAGS) generators/projectgenerator.cpp |
172 | 215 | ||
173 | #default rules | 216 | #default rules |
174 | .c.o: | ||
175 | $(CC) -c -o $@ $(CFLAGS) $< | ||
176 | |||
177 | .cpp.o: | 217 | .cpp.o: |
178 | $(CXX) -c -o $@ $(CXXFLAGS) $< | 218 | $(CXX) -c -o $@ $(CXXFLAGS) $< |
219 | |||
220 | # DO NOT DELETE THIS LINE -- make depend depends on it | ||