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