-rw-r--r-- | qmake/Makefile | 107 |
1 files changed, 53 insertions, 54 deletions
diff --git a/qmake/Makefile b/qmake/Makefile index faaeafe..86dd77d 100644 --- a/qmake/Makefile +++ b/qmake/Makefile | |||
@@ -1,173 +1,172 @@ | |||
1 | TOPDIR=$(shell pwd) | ||
2 | QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 1 | QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
3 | 2 | ||
4 | ######################################################################## | 3 | ######################################################################## |
5 | ## This file was autogenerated by configure, all changes will be lost ## | 4 | ## This file was autogenerated by configure, all changes will be lost ## |
6 | ######################################################################## | 5 | ######################################################################## |
7 | CC = gcc | 6 | CC = gcc |
8 | CXX = g++ | 7 | CXX = g++ |
9 | 8 | ||
10 | #qmake code | 9 | #qmake code |
11 | OBJS=project.o main.o makefile.o unixmake2.o unixmake.o borland_bmake.o \ | 10 | OBJS=project.o main.o makefile.o unixmake2.o unixmake.o borland_bmake.o \ |
12 | msvc_nmake.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o \ | 11 | msvc_nmake.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o \ |
13 | projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o | 12 | projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o |
14 | 13 | ||
15 | #qt code | 14 | #qt code |
16 | QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ | 15 | QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \ |
17 | qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \ | 16 | qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \ |
18 | qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o \ | 17 | qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o \ |
19 | qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \ | 18 | qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \ |
20 | qconfig.o | 19 | qconfig.o |
21 | 20 | ||
22 | CFLAGS= \ | 21 | CFLAGS= \ |
23 | -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ | 22 | -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ |
24 | -I$(TOPDIR)/include -I$(TOPDIR)/include/qmake -I$(QMAKESPECSDIR)/default \ | 23 | -I$(OPIEDIR)/qmake/include -I$(OPIEDIR)/qmake/include/qmake -I$(QMAKESPECSDIR)/default \ |
25 | -I$(TOPDIR)/include/private \ | 24 | -I$(OPIEDIR)/qmake/include/private \ |
26 | -DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/qws/linux-x86-g++ | 25 | -DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/qws/linux-x86-g++ |
27 | CXXFLAGS= $(CFLAGS) | 26 | CXXFLAGS= $(CFLAGS) |
28 | LFLAGS= | 27 | LFLAGS= |
29 | 28 | ||
30 | qmake: $(OBJS) $(QOBJS) | 29 | qmake: $(OBJS) $(QOBJS) |
31 | $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) | 30 | $(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS) |
32 | $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) | 31 | $(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@) |
33 | $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) | 32 | $(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@) |
34 | 33 | ||
35 | install: qmake | 34 | install: qmake |
36 | [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin | 35 | [ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin |
37 | -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin | 36 | -cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin |
38 | [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) | 37 | [ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR) |
39 | -cp -r -f $(QMAKESPECDIR) $(INSTALL_ROOT)$(QTDIR) | 38 | -cp -r -f $(QMAKESPECSDIR) $(INSTALL_ROOT)$(QTDIR) |
40 | 39 | ||
41 | clean:: | 40 | clean:: |
42 | rm -f $(OBJS) $(QOBJS) | 41 | rm -f $(OBJS) $(QOBJS) |
43 | 42 | ||
44 | distclean:: clean | 43 | distclean:: clean |
45 | rm -rf qmake .deps | 44 | rm -rf qmake .deps |
46 | 45 | ||
47 | # don't use optimization for these | 46 | # don't use optimization for these |
48 | qtextstream.o: $(TOPDIR)/tools/qtextstream.cpp | 47 | qtextstream.o: $(OPIEDIR)/qmake/tools/qtextstream.cpp |
49 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qtextstream.cpp | 48 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qtextstream.cpp |
50 | 49 | ||
51 | qiodevice.o: $(TOPDIR)/tools/qiodevice.cpp | 50 | qiodevice.o: $(OPIEDIR)/qmake/tools/qiodevice.cpp |
52 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qiodevice.cpp | 51 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qiodevice.cpp |
53 | 52 | ||
54 | qglobal.o: $(TOPDIR)/tools/qglobal.cpp | 53 | qglobal.o: $(OPIEDIR)/qmake/tools/qglobal.cpp |
55 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qglobal.cpp | 54 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglobal.cpp |
56 | 55 | ||
57 | qgdict.o: $(TOPDIR)/tools/qgdict.cpp | 56 | qgdict.o: $(OPIEDIR)/qmake/tools/qgdict.cpp |
58 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgdict.cpp | 57 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgdict.cpp |
59 | 58 | ||
60 | qcstring.o: $(TOPDIR)/tools/qcstring.cpp | 59 | qcstring.o: $(OPIEDIR)/qmake/tools/qcstring.cpp |
61 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qcstring.cpp | 60 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qcstring.cpp |
62 | 61 | ||
63 | qstring.o: $(TOPDIR)/tools/qstring.cpp | 62 | qstring.o: $(OPIEDIR)/qmake/tools/qstring.cpp |
64 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qstring.cpp | 63 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qstring.cpp |
65 | 64 | ||
66 | qdatastream.o: $(TOPDIR)/tools/qdatastream.cpp | 65 | qdatastream.o: $(OPIEDIR)/qmake/tools/qdatastream.cpp |
67 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdatastream.cpp | 66 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdatastream.cpp |
68 | 67 | ||
69 | qgarray.o: $(TOPDIR)/tools/qgarray.cpp | 68 | qgarray.o: $(OPIEDIR)/qmake/tools/qgarray.cpp |
70 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgarray.cpp | 69 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgarray.cpp |
71 | 70 | ||
72 | qbuffer.o: $(TOPDIR)/tools/qbuffer.cpp | 71 | qbuffer.o: $(OPIEDIR)/qmake/tools/qbuffer.cpp |
73 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qbuffer.cpp | 72 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qbuffer.cpp |
74 | 73 | ||
75 | qglist.o: $(TOPDIR)/tools/qglist.cpp | 74 | qglist.o: $(OPIEDIR)/qmake/tools/qglist.cpp |
76 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qglist.cpp | 75 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qglist.cpp |
77 | 76 | ||
78 | qptrcollection.o: $(TOPDIR)/tools/qptrcollection.cpp | 77 | qptrcollection.o: $(OPIEDIR)/qmake/tools/qptrcollection.cpp |
79 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qptrcollection.cpp | 78 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qptrcollection.cpp |
80 | 79 | ||
81 | qfile.o: $(TOPDIR)/tools/qfile.cpp | 80 | qfile.o: $(OPIEDIR)/qmake/tools/qfile.cpp |
82 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfile.cpp | 81 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qfile.cpp |
83 | 82 | ||
84 | qfile_unix.o: $(TOPDIR)/tools/qfile_unix.cpp | 83 | qfile_unix.o: $(OPIEDIR)/qmake/tools/qfile_unix.cpp |
85 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfile_unix.cpp | 84 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qfile_unix.cpp |
86 | 85 | ||
87 | qregexp.o: $(TOPDIR)/tools/qregexp.cpp | 86 | qregexp.o: $(OPIEDIR)/qmake/tools/qregexp.cpp |
88 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qregexp.cpp | 87 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qregexp.cpp |
89 | 88 | ||
90 | qgvector.o: $(TOPDIR)/tools/qgvector.cpp | 89 | qgvector.o: $(OPIEDIR)/qmake/tools/qgvector.cpp |
91 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgvector.cpp | 90 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgvector.cpp |
92 | 91 | ||
93 | qgcache.o: $(TOPDIR)/tools/qgcache.cpp | 92 | qgcache.o: $(OPIEDIR)/qmake/tools/qgcache.cpp |
94 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgcache.cpp | 93 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qgcache.cpp |
95 | 94 | ||
96 | qbitarray.o: $(TOPDIR)/tools/qbitarray.cpp | 95 | qbitarray.o: $(OPIEDIR)/qmake/tools/qbitarray.cpp |
97 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qbitarray.cpp | 96 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qbitarray.cpp |
98 | 97 | ||
99 | qdir.o: $(TOPDIR)/tools/qdir.cpp | 98 | qdir.o: $(OPIEDIR)/qmake/tools/qdir.cpp |
100 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdir.cpp | 99 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdir.cpp |
101 | 100 | ||
102 | qfileinfo_unix.o: $(TOPDIR)/tools/qfileinfo_unix.cpp | 101 | qfileinfo_unix.o: $(OPIEDIR)/qmake/tools/qfileinfo_unix.cpp |
103 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfileinfo_unix.cpp | 102 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qfileinfo_unix.cpp |
104 | 103 | ||
105 | qdir_unix.o: $(TOPDIR)/tools/qdir_unix.cpp | 104 | qdir_unix.o: $(OPIEDIR)/qmake/tools/qdir_unix.cpp |
106 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdir_unix.cpp | 105 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdir_unix.cpp |
107 | 106 | ||
108 | qfileinfo.o: $(TOPDIR)/tools/qfileinfo.cpp | 107 | qfileinfo.o: $(OPIEDIR)/qmake/tools/qfileinfo.cpp |
109 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfileinfo.cpp | 108 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qfileinfo.cpp |
110 | 109 | ||
111 | qdatetime.o: $(TOPDIR)/tools/qdatetime.cpp | 110 | qdatetime.o: $(OPIEDIR)/qmake/tools/qdatetime.cpp |
112 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdatetime.cpp | 111 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qdatetime.cpp |
113 | 112 | ||
114 | qstringlist.o: $(TOPDIR)/tools/qstringlist.cpp | 113 | qstringlist.o: $(OPIEDIR)/qmake/tools/qstringlist.cpp |
115 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qstringlist.cpp | 114 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qstringlist.cpp |
116 | 115 | ||
117 | qmap.o: $(TOPDIR)/tools/qmap.cpp | 116 | qmap.o: $(OPIEDIR)/qmake/tools/qmap.cpp |
118 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qmap.cpp | 117 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qmap.cpp |
119 | 118 | ||
120 | qconfig.o: $(TOPDIR)/tools/qconfig.cpp | 119 | qconfig.o: $(OPIEDIR)/qmake/tools/qconfig.cpp |
121 | $(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qconfig.cpp | 120 | $(CXX) -c -o $@ $(CXXFLAGS) $(OPIEDIR)/qmake/tools/qconfig.cpp |
122 | 121 | ||
123 | winmakefile.o: generators/win32/winmakefile.cpp | 122 | winmakefile.o: generators/win32/winmakefile.cpp |
124 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/winmakefile.cpp | 123 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/winmakefile.cpp |
125 | 124 | ||
126 | project.o: project.cpp project.h option.h | 125 | project.o: project.cpp project.h option.h |
127 | $(CXX) -c -o $@ $(CXXFLAGS) project.cpp | 126 | $(CXX) -c -o $@ $(CXXFLAGS) project.cpp |
128 | 127 | ||
129 | main.o: main.cpp project.h | 128 | main.o: main.cpp project.h |
130 | $(CXX) -c -o $@ $(CXXFLAGS) main.cpp | 129 | $(CXX) -c -o $@ $(CXXFLAGS) main.cpp |
131 | 130 | ||
132 | option.o: option.cpp option.h | 131 | option.o: option.cpp option.h |
133 | $(CXX) -c -o $@ $(CXXFLAGS) option.cpp | 132 | $(CXX) -c -o $@ $(CXXFLAGS) option.cpp |
134 | 133 | ||
135 | makefile.o: generators/makefile.cpp | 134 | makefile.o: generators/makefile.cpp |
136 | $(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp | 135 | $(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp |
137 | 136 | ||
138 | unixmake.o: generators/unix/unixmake.cpp | 137 | unixmake.o: generators/unix/unixmake.cpp |
139 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake.cpp | 138 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake.cpp |
140 | 139 | ||
141 | unixmake2.o: generators/unix/unixmake2.cpp | 140 | unixmake2.o: generators/unix/unixmake2.cpp |
142 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake2.cpp | 141 | $(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake2.cpp |
143 | 142 | ||
144 | borland_bmake.o: generators/win32/borland_bmake.cpp | 143 | borland_bmake.o: generators/win32/borland_bmake.cpp |
145 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/borland_bmake.cpp | 144 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/borland_bmake.cpp |
146 | 145 | ||
147 | msvc_objectmodel.o: generators/win32/msvc_objectmodel.cpp | 146 | msvc_objectmodel.o: generators/win32/msvc_objectmodel.cpp |
148 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_objectmodel.cpp | 147 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_objectmodel.cpp |
149 | 148 | ||
150 | msvc_vcproj.o: generators/win32/msvc_vcproj.cpp | 149 | msvc_vcproj.o: generators/win32/msvc_vcproj.cpp |
151 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_vcproj.cpp | 150 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_vcproj.cpp |
152 | 151 | ||
153 | msvc_nmake.o: generators/win32/msvc_nmake.cpp | 152 | msvc_nmake.o: generators/win32/msvc_nmake.cpp |
154 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_nmake.cpp | 153 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_nmake.cpp |
155 | 154 | ||
156 | metrowerks_xml.o: generators/mac/metrowerks_xml.cpp | 155 | metrowerks_xml.o: generators/mac/metrowerks_xml.cpp |
157 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/metrowerks_xml.cpp | 156 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/metrowerks_xml.cpp |
158 | 157 | ||
159 | pbuilder_pbx.o: generators/mac/pbuilder_pbx.cpp | 158 | pbuilder_pbx.o: generators/mac/pbuilder_pbx.cpp |
160 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp | 159 | $(CXX) -c -o $@ $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp |
161 | 160 | ||
162 | msvc_dsp.o: generators/win32/msvc_dsp.cpp | 161 | msvc_dsp.o: generators/win32/msvc_dsp.cpp |
163 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_dsp.cpp | 162 | $(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_dsp.cpp |
164 | 163 | ||
165 | projectgenerator.o: generators/projectgenerator.cpp | 164 | projectgenerator.o: generators/projectgenerator.cpp |
166 | $(CXX) -c -o $@ $(CXXFLAGS) generators/projectgenerator.cpp | 165 | $(CXX) -c -o $@ $(CXXFLAGS) generators/projectgenerator.cpp |
167 | 166 | ||
168 | #default rules | 167 | #default rules |
169 | .c.o: | 168 | .c.o: |
170 | $(CC) -c -o $@ $(CFLAGS) $< | 169 | $(CC) -c -o $@ $(CFLAGS) $< |
171 | 170 | ||
172 | .cpp.o: | 171 | .cpp.o: |
173 | $(CXX) -c -o $@ $(CXXFLAGS) $< | 172 | $(CXX) -c -o $@ $(CXXFLAGS) $< |