summaryrefslogtreecommitdiff
path: root/qmake
authorclem <clem>2004-10-14 14:45:51 (UTC)
committer clem <clem>2004-10-14 14:45:51 (UTC)
commitc1527ffba858ba88dc349edea26347eca37ccef4 (patch) (unidiff)
treeb1eda5042f37ac822fda0053e0cdac4b4cb91cb8 /qmake
parentc4455769d3d0b6409e2f676e9e3769ed93d1772e (diff)
downloadopie-c1527ffba858ba88dc349edea26347eca37ccef4.zip
opie-c1527ffba858ba88dc349edea26347eca37ccef4.tar.gz
opie-c1527ffba858ba88dc349edea26347eca37ccef4.tar.bz2
enable ccache (and distcc if CCACHE_PREFIX and DISTCC_HOSTS are set) building
Diffstat (limited to 'qmake') (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmake/Makefile b/qmake/Makefile
index 5a72210..3045766 100644
--- a/qmake/Makefile
+++ b/qmake/Makefile
@@ -1,68 +1,68 @@
1QMAKESPECSDIR=$(OPIEDIR)/mkspecs 1QMAKESPECSDIR=$(OPIEDIR)/mkspecs
2 2
3 CC = gcc 3 CC = $(shell which ccache) gcc
4 CXX = g++ 4 CXX = $(shell which ccache) g++
5 5
6#qmake code 6#qmake code
7OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o \ 7OBJS=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 \ 8 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 \ 9 winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o \
10 msvc_objectmodel.o meta.o qtmd5.o 10 msvc_objectmodel.o meta.o qtmd5.o
11 11
12#qt code 12#qt code
13QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ 13QOBJS=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 \ 14 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 \ 15 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 \ 16 qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \
17 qconfig.o qunicodetables.o qsettings.o qlocale.o 17 qconfig.o qunicodetables.o qsettings.o qlocale.o
18 18
19#all sources, used for the depend target 19#all sources, used for the depend target
20DEPEND_SRC=project.cpp property.cpp meta.cpp main.cpp qtmd5.cpp generators/makefile.cpp generators/unix/unixmake2.cpp \ 20DEPEND_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 \ 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 \ 22 generators/win32/winmakefile.cpp generators/projectgenerator.cpp generators/mac/metrowerks_xml.cpp \
23 generators/mac/pbuilder_pbx.cpp generators/win32/msvc_objectmodel.cpp \ 23 generators/mac/pbuilder_pbx.cpp generators/win32/msvc_objectmodel.cpp \
24 $(OPIEDIR)/qmake/tools/qstring.cpp $(OPIEDIR)/qmake/tools/qtextstream.cpp \ 24 $(OPIEDIR)/qmake/tools/qstring.cpp $(OPIEDIR)/qmake/tools/qtextstream.cpp \
25 $(OPIEDIR)/qmake/tools/qiodevice.cpp $(OPIEDIR)/qmake/tools/qglobal.cpp \ 25 $(OPIEDIR)/qmake/tools/qiodevice.cpp $(OPIEDIR)/qmake/tools/qglobal.cpp \
26 $(OPIEDIR)/qmake/tools/qgdict.cpp $(OPIEDIR)/qmake/tools/qcstring.cpp \ 26 $(OPIEDIR)/qmake/tools/qgdict.cpp $(OPIEDIR)/qmake/tools/qcstring.cpp \
27 $(OPIEDIR)/qmake/tools/qdatastream.cpp $(OPIEDIR)/qmake/src/tools/qgarray.cpp \ 27 $(OPIEDIR)/qmake/tools/qdatastream.cpp $(OPIEDIR)/qmake/src/tools/qgarray.cpp \
28 $(OPIEDIR)/qmake/tools/qbuffer.cpp $(OPIEDIR)/qmake/tools/qglist.cpp \ 28 $(OPIEDIR)/qmake/tools/qbuffer.cpp $(OPIEDIR)/qmake/tools/qglist.cpp \
29 $(OPIEDIR)/qmake/tools/qptrcollection.cpp $(OPIEDIR)/qmake/tools/qfile.cpp \ 29 $(OPIEDIR)/qmake/tools/qptrcollection.cpp $(OPIEDIR)/qmake/tools/qfile.cpp \
30 $(OPIEDIR)/qmake/tools/qfile_unix.cpp $(OPIEDIR)/qmake/tools/qregexp.cpp \ 30 $(OPIEDIR)/qmake/tools/qfile_unix.cpp $(OPIEDIR)/qmake/tools/qregexp.cpp \
31 $(OPIEDIR)/qmake/tools/qgvector.cpp $(OPIEDIR)/qmake/tools/qgcache.cpp \ 31 $(OPIEDIR)/qmake/tools/qgvector.cpp $(OPIEDIR)/qmake/tools/qgcache.cpp \
32 $(OPIEDIR)/qmake/tools/qbitarray.cpp $(OPIEDIR)/qmake/tools/qdir.cpp \ 32 $(OPIEDIR)/qmake/tools/qbitarray.cpp $(OPIEDIR)/qmake/tools/qdir.cpp \
33 $(OPIEDIR)/qmake/tools/quuid.cpp $(OPIEDIR)/qmake/tools/qfileinfo_unix.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 \ 34 $(OPIEDIR)/qmake/tools/qdir_unix.cpp $(OPIEDIR)/qmake/tools/qfileinfo.cpp \
35 $(OPIEDIR)/qmake/tools/qdatetime.cpp $(OPIEDIR)/qmake/tools/qstringlist.cpp \ 35 $(OPIEDIR)/qmake/tools/qdatetime.cpp $(OPIEDIR)/qmake/tools/qstringlist.cpp \
36 $(OPIEDIR)/qmake/tools/qmap.cpp $(OPIEDIR)/qmake/tools/qconfig.cpp \ 36 $(OPIEDIR)/qmake/tools/qmap.cpp $(OPIEDIR)/qmake/tools/qconfig.cpp \
37 $(OPIEDIR)/qmake/tools/qsettings.cpp $(OPIEDIR)/qmake/tools/qurl.cpp \ 37 $(OPIEDIR)/qmake/tools/qsettings.cpp $(OPIEDIR)/qmake/tools/qurl.cpp \
38 $(OPIEDIR)/qmake/tools/qsettings_mac.cpp $(OPIEDIR)/qmake/tools/qlocale.cpp 38 $(OPIEDIR)/qmake/tools/qsettings_mac.cpp $(OPIEDIR)/qmake/tools/qlocale.cpp
39 39
40CXXFLAGS= \ 40CXXFLAGS= \
41 -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ 41 -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \
42 -I$(OPIEDIR)/qmake/include/qmake -I$(OPIEDIR)/qmake/include -I$(OPIEDIR)/qmake/include/private \ 42 -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 \ 43 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL \
44 -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/default -DHAVE_QCONFIG_CPP 44 -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/default -DHAVE_QCONFIG_CPP
45LFLAGS= 45LFLAGS=
46 46
47qmake: $(OBJS) $(QOBJS) 47qmake: $(OBJS) $(QOBJS)
48 $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) 48 $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS)
49 $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) 49 $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@)
50 $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) 50 $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@)
51 51
52install: qmake 52install: qmake
53 [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin 53 [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin
54 -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin 54 -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin
55 [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) 55 [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)
56 -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR) 56 -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR)
57 57
58clean:: 58clean::
59 rm -f $(OBJS) $(QOBJS) 59 rm -f $(OBJS) $(QOBJS)
60 60
61distclean:: clean 61distclean:: clean
62 rm -rf qmake .deps 62 rm -rf qmake .deps
63 63
64 64
65# don't use optimization for these 65# don't use optimization for these
66qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp 66qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp
67 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp 67 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp
68 68