summaryrefslogtreecommitdiff
path: root/qmake/Makefile
Unidiff
Diffstat (limited to 'qmake/Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/Makefile74
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 @@
1QMAKESPECSDIR=$(OPIEDIR)/mkspecs 1QMAKESPECSDIR=$(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
10OBJS=project.o main.o makefile.o unixmake2.o unixmake.o borland_bmake.o \ 7OBJS=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
15QOBJS=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 \
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
21CFLAGS= \ 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 \
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
40CXXFLAGS= \
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
26CXXFLAGS= $(CFLAGS)
27LFLAGS= 45LFLAGS=
28 46
29qmake: $(OBJS) $(QOBJS) 47qmake: $(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
34install: qmake 52install: 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
40clean:: 58clean::
41 rm -f $(OBJS) $(QOBJS) 59 rm -f $(OBJS) $(QOBJS)
42 60
43distclean:: clean 61distclean:: 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
47qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp 66qtextstream.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
50qiodevice.o: $(OPIEDIR)/qmake/tools/qiodevice.cpp 69qiodevice.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
53qglobal.o: $(OPIEDIR)/qmake/tools/qglobal.cpp 72qglobal.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
56qgdict.o: $(OPIEDIR)/qmake/tools/qgdict.cpp 75qgdict.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
59qcstring.o: $(OPIEDIR)/qmake/tools/qcstring.cpp 78qcstring.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
81qsettings.o: $(OPIEDIR)/qmake/tools/qsettings.cpp
82 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings.cpp
83
84qsettings_mac.o: $(OPIEDIR)/qmake/tools/qsettings_mac.cpp
85 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qsettings_mac.cpp
86
87qurl.o: $(OPIEDIR)/qmake/kernel/qurl.cpp
88 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/kernel/qurl.cpp
89
62qstring.o: $(OPIEDIR)/qmake/tools/qstring.cpp 90qstring.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
93qlocale.o: $(OPIEDIR)/qmake/tools/qlocale.cpp
94 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qlocale.cpp
95
65qdatastream.o: $(OPIEDIR)/qmake/tools/qdatastream.cpp 96qdatastream.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
99qunicodetables.o: $(OPIEDIR)/qmake/tools/qunicodetables.cpp
100 $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qunicodetables.cpp
101
68qgarray.o: $(OPIEDIR)/qmake/tools/qgarray.cpp 102qgarray.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
71qbuffer.o: $(OPIEDIR)/qmake/tools/qbuffer.cpp 105qbuffer.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
74qglist.o: $(OPIEDIR)/qmake/tools/qglist.cpp 108qglist.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
77qptrcollection.o: $(OPIEDIR)/qmake/tools/qptrcollection.cpp 111qptrcollection.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
119qmap.o: $(OPIEDIR)/qmake/tools/qmap.cpp 153qmap.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
122qconfig.o: $(OPIEDIR)/qmake/tools/qconfig.cpp 156qconfig.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
125winmakefile.o: generators/win32/winmakefile.cpp 159winmakefile.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
128project.o: project.cpp project.h option.h 162project.o: project.cpp project.h option.h
129 $(CXX) -c -o $@ $(CXXFLAGS) project.cpp 163 $(CXX) -c -o $@ $(CXXFLAGS) project.cpp
130 164
165property.o: property.cpp project.h option.h
166 $(CXX) -c -o $@ $(CXXFLAGS) property.cpp
167
168meta.o: meta.cpp project.h option.h
169 $(CXX) -c -o $@ $(CXXFLAGS) meta.cpp
170
131main.o: main.cpp project.h 171main.o: main.cpp project.h
132 $(CXX) -c -o $@ $(CXXFLAGS) main.cpp 172 $(CXX) -c -o $@ $(CXXFLAGS) main.cpp
133 173
134option.o: option.cpp option.h 174option.o: option.cpp option.h
135 $(CXX) -c -o $@ $(CXXFLAGS) option.cpp 175 $(CXX) -c -o $@ $(CXXFLAGS) option.cpp
136 176
177qtmd5.o: qtmd5.cpp
178 $(CXX) -c -o $@ $(CXXFLAGS) qtmd5.cpp
179
137makefile.o: generators/makefile.cpp 180makefile.o: generators/makefile.cpp
138 $(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp 181 $(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp
139 182
140unixmake.o: generators/unix/unixmake.cpp 183unixmake.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
143unixmake2.o: generators/unix/unixmake2.cpp 186unixmake2.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
146borland_bmake.o: generators/win32/borland_bmake.cpp 189borland_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
164pbuilder_pbx.o: generators/mac/pbuilder_pbx.cpp 207pbuilder_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
167msvc_dsp.o: generators/win32/msvc_dsp.cpp 210msvc_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
170projectgenerator.o: generators/projectgenerator.cpp 213projectgenerator.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