author | eilers <eilers> | 2004-12-20 16:04:15 (UTC) |
---|---|---|
committer | eilers <eilers> | 2004-12-20 16:04:15 (UTC) |
commit | e35c9d95f2b1609798529e527282e145b370f505 (patch) (unidiff) | |
tree | 146eccb4081dda79e435603fef1c2927678cefe2 | |
parent | 68ae26d1e6368ec73acf11d09067820fc882f402 (diff) | |
download | opie-e35c9d95f2b1609798529e527282e145b370f505.zip opie-e35c9d95f2b1609798529e527282e145b370f505.tar.gz opie-e35c9d95f2b1609798529e527282e145b370f505.tar.bz2 |
The "which" command on darwin always returns a string as output, even if
nothing was found. Therefore we have to disable this "which" if ccache
is not available!
-rw-r--r-- | qmake/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qmake/Makefile b/qmake/Makefile index 3045766..1054da4 100644 --- a/qmake/Makefile +++ b/qmake/Makefile | |||
@@ -1,100 +1,107 @@ | |||
1 | QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 1 | QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
2 | 2 | ||
3 | include ../.config | ||
4 | |||
5 | ifeq ($(strip $(CONFIG_USE_CCACHE)),y) | ||
3 | CC = $(shell which ccache) gcc | 6 | CC = $(shell which ccache) gcc |
4 | CXX = $(shell which ccache) g++ | 7 | CXX = $(shell which ccache) g++ |
8 | else | ||
9 | CC = gcc | ||
10 | CXX = g++ | ||
11 | endif | ||
5 | 12 | ||
6 | #qmake code | 13 | #qmake code |
7 | OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o \ | 14 | OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o \ |
8 | borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o \ | 15 | borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o \ |
9 | winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o \ | 16 | winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o \ |
10 | msvc_objectmodel.o meta.o qtmd5.o | 17 | msvc_objectmodel.o meta.o qtmd5.o |
11 | 18 | ||
12 | #qt code | 19 | #qt code |
13 | QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ | 20 | QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ |
14 | qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \ | 21 | qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \ |
15 | qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o \ | 22 | qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o \ |
16 | qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \ | 23 | qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \ |
17 | qconfig.o qunicodetables.o qsettings.o qlocale.o | 24 | qconfig.o qunicodetables.o qsettings.o qlocale.o |
18 | 25 | ||
19 | #all sources, used for the depend target | 26 | #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 \ | 27 | 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 \ | 28 | 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 \ | 29 | generators/win32/winmakefile.cpp generators/projectgenerator.cpp generators/mac/metrowerks_xml.cpp \ |
23 | generators/mac/pbuilder_pbx.cpp generators/win32/msvc_objectmodel.cpp \ | 30 | generators/mac/pbuilder_pbx.cpp generators/win32/msvc_objectmodel.cpp \ |
24 | $(OPIEDIR)/qmake/tools/qstring.cpp $(OPIEDIR)/qmake/tools/qtextstream.cpp \ | 31 | $(OPIEDIR)/qmake/tools/qstring.cpp $(OPIEDIR)/qmake/tools/qtextstream.cpp \ |
25 | $(OPIEDIR)/qmake/tools/qiodevice.cpp $(OPIEDIR)/qmake/tools/qglobal.cpp \ | 32 | $(OPIEDIR)/qmake/tools/qiodevice.cpp $(OPIEDIR)/qmake/tools/qglobal.cpp \ |
26 | $(OPIEDIR)/qmake/tools/qgdict.cpp $(OPIEDIR)/qmake/tools/qcstring.cpp \ | 33 | $(OPIEDIR)/qmake/tools/qgdict.cpp $(OPIEDIR)/qmake/tools/qcstring.cpp \ |
27 | $(OPIEDIR)/qmake/tools/qdatastream.cpp $(OPIEDIR)/qmake/src/tools/qgarray.cpp \ | 34 | $(OPIEDIR)/qmake/tools/qdatastream.cpp $(OPIEDIR)/qmake/src/tools/qgarray.cpp \ |
28 | $(OPIEDIR)/qmake/tools/qbuffer.cpp $(OPIEDIR)/qmake/tools/qglist.cpp \ | 35 | $(OPIEDIR)/qmake/tools/qbuffer.cpp $(OPIEDIR)/qmake/tools/qglist.cpp \ |
29 | $(OPIEDIR)/qmake/tools/qptrcollection.cpp $(OPIEDIR)/qmake/tools/qfile.cpp \ | 36 | $(OPIEDIR)/qmake/tools/qptrcollection.cpp $(OPIEDIR)/qmake/tools/qfile.cpp \ |
30 | $(OPIEDIR)/qmake/tools/qfile_unix.cpp $(OPIEDIR)/qmake/tools/qregexp.cpp \ | 37 | $(OPIEDIR)/qmake/tools/qfile_unix.cpp $(OPIEDIR)/qmake/tools/qregexp.cpp \ |
31 | $(OPIEDIR)/qmake/tools/qgvector.cpp $(OPIEDIR)/qmake/tools/qgcache.cpp \ | 38 | $(OPIEDIR)/qmake/tools/qgvector.cpp $(OPIEDIR)/qmake/tools/qgcache.cpp \ |
32 | $(OPIEDIR)/qmake/tools/qbitarray.cpp $(OPIEDIR)/qmake/tools/qdir.cpp \ | 39 | $(OPIEDIR)/qmake/tools/qbitarray.cpp $(OPIEDIR)/qmake/tools/qdir.cpp \ |
33 | $(OPIEDIR)/qmake/tools/quuid.cpp $(OPIEDIR)/qmake/tools/qfileinfo_unix.cpp \ | 40 | $(OPIEDIR)/qmake/tools/quuid.cpp $(OPIEDIR)/qmake/tools/qfileinfo_unix.cpp \ |
34 | $(OPIEDIR)/qmake/tools/qdir_unix.cpp $(OPIEDIR)/qmake/tools/qfileinfo.cpp \ | 41 | $(OPIEDIR)/qmake/tools/qdir_unix.cpp $(OPIEDIR)/qmake/tools/qfileinfo.cpp \ |
35 | $(OPIEDIR)/qmake/tools/qdatetime.cpp $(OPIEDIR)/qmake/tools/qstringlist.cpp \ | 42 | $(OPIEDIR)/qmake/tools/qdatetime.cpp $(OPIEDIR)/qmake/tools/qstringlist.cpp \ |
36 | $(OPIEDIR)/qmake/tools/qmap.cpp $(OPIEDIR)/qmake/tools/qconfig.cpp \ | 43 | $(OPIEDIR)/qmake/tools/qmap.cpp $(OPIEDIR)/qmake/tools/qconfig.cpp \ |
37 | $(OPIEDIR)/qmake/tools/qsettings.cpp $(OPIEDIR)/qmake/tools/qurl.cpp \ | 44 | $(OPIEDIR)/qmake/tools/qsettings.cpp $(OPIEDIR)/qmake/tools/qurl.cpp \ |
38 | $(OPIEDIR)/qmake/tools/qsettings_mac.cpp $(OPIEDIR)/qmake/tools/qlocale.cpp | 45 | $(OPIEDIR)/qmake/tools/qsettings_mac.cpp $(OPIEDIR)/qmake/tools/qlocale.cpp |
39 | 46 | ||
40 | CXXFLAGS= \ | 47 | CXXFLAGS= \ |
41 | -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ | 48 | -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ |
42 | -I$(OPIEDIR)/qmake/include/qmake -I$(OPIEDIR)/qmake/include -I$(OPIEDIR)/qmake/include/private \ | 49 | -I$(OPIEDIR)/qmake/include/qmake -I$(OPIEDIR)/qmake/include -I$(OPIEDIR)/qmake/include/private \ |
43 | -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL \ | 50 | -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL \ |
44 | -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/default -DHAVE_QCONFIG_CPP | 51 | -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/default -DHAVE_QCONFIG_CPP |
45 | LFLAGS= | 52 | LFLAGS= |
46 | 53 | ||
47 | qmake: $(OBJS) $(QOBJS) | 54 | qmake: $(OBJS) $(QOBJS) |
48 | $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) | 55 | $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) |
49 | $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) | 56 | $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) |
50 | $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) | 57 | $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) |
51 | 58 | ||
52 | install: qmake | 59 | install: qmake |
53 | [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin | 60 | [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin |
54 | -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin | 61 | -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin |
55 | [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) | 62 | [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) |
56 | -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR) | 63 | -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR) |
57 | 64 | ||
58 | clean:: | 65 | clean:: |
59 | rm -f $(OBJS) $(QOBJS) | 66 | rm -f $(OBJS) $(QOBJS) |
60 | 67 | ||
61 | distclean:: clean | 68 | distclean:: clean |
62 | rm -rf qmake .deps | 69 | rm -rf qmake .deps |
63 | 70 | ||
64 | 71 | ||
65 | # don't use optimization for these | 72 | # don't use optimization for these |
66 | qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp | 73 | qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp |
67 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp | 74 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp |
68 | 75 | ||
69 | qiodevice.o: $(OPIEDIR)/qmake/tools/qiodevice.cpp | 76 | qiodevice.o: $(OPIEDIR)/qmake/tools/qiodevice.cpp |
70 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qiodevice.cpp | 77 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qiodevice.cpp |
71 | 78 | ||
72 | qglobal.o: $(OPIEDIR)/qmake/tools/qglobal.cpp | 79 | qglobal.o: $(OPIEDIR)/qmake/tools/qglobal.cpp |
73 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglobal.cpp | 80 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglobal.cpp |
74 | 81 | ||
75 | qgdict.o: $(OPIEDIR)/qmake/tools/qgdict.cpp | 82 | qgdict.o: $(OPIEDIR)/qmake/tools/qgdict.cpp |
76 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgdict.cpp | 83 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgdict.cpp |
77 | 84 | ||
78 | qcstring.o: $(OPIEDIR)/qmake/tools/qcstring.cpp | 85 | qcstring.o: $(OPIEDIR)/qmake/tools/qcstring.cpp |
79 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qcstring.cpp | 86 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qcstring.cpp |
80 | 87 | ||
81 | qsettings.o: $(OPIEDIR)/qmake/tools/qsettings.cpp | 88 | qsettings.o: $(OPIEDIR)/qmake/tools/qsettings.cpp |
82 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings.cpp | 89 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings.cpp |
83 | 90 | ||
84 | qsettings_mac.o: $(OPIEDIR)/qmake/tools/qsettings_mac.cpp | 91 | qsettings_mac.o: $(OPIEDIR)/qmake/tools/qsettings_mac.cpp |
85 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings_mac.cpp | 92 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings_mac.cpp |
86 | 93 | ||
87 | qurl.o: $(OPIEDIR)/qmake/kernel/qurl.cpp | 94 | qurl.o: $(OPIEDIR)/qmake/kernel/qurl.cpp |
88 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/kernel/qurl.cpp | 95 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/kernel/qurl.cpp |
89 | 96 | ||
90 | qstring.o: $(OPIEDIR)/qmake/tools/qstring.cpp | 97 | qstring.o: $(OPIEDIR)/qmake/tools/qstring.cpp |
91 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qstring.cpp | 98 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qstring.cpp |
92 | 99 | ||
93 | qlocale.o: $(OPIEDIR)/qmake/tools/qlocale.cpp | 100 | qlocale.o: $(OPIEDIR)/qmake/tools/qlocale.cpp |
94 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qlocale.cpp | 101 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qlocale.cpp |
95 | 102 | ||
96 | qdatastream.o: $(OPIEDIR)/qmake/tools/qdatastream.cpp | 103 | qdatastream.o: $(OPIEDIR)/qmake/tools/qdatastream.cpp |
97 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdatastream.cpp | 104 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdatastream.cpp |
98 | 105 | ||
99 | qunicodetables.o: $(OPIEDIR)/qmake/tools/qunicodetables.cpp | 106 | qunicodetables.o: $(OPIEDIR)/qmake/tools/qunicodetables.cpp |
100 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qunicodetables.cpp | 107 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qunicodetables.cpp |