summaryrefslogtreecommitdiff
path: root/Rules.make
authormickeyl <mickeyl>2004-11-16 22:19:47 (UTC)
committer mickeyl <mickeyl>2004-11-16 22:19:47 (UTC)
commit539a1bfc1c120bcd196f2b7ab27befde1550e661 (patch) (unidiff)
tree112ec70184ad5e8bf765c4df2a0897791b9eb145 /Rules.make
parentadd434632dc0b449a1439215ecbc2ae0589fd713 (diff)
downloadopie-539a1bfc1c120bcd196f2b7ab27befde1550e661.zip
opie-539a1bfc1c120bcd196f2b7ab27befde1550e661.tar.gz
opie-539a1bfc1c120bcd196f2b7ab27befde1550e661.tar.bz2
bye bye libopie1
Diffstat (limited to 'Rules.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make9
1 files changed, 0 insertions, 9 deletions
diff --git a/Rules.make b/Rules.make
index c025d72..644a6cf 100644
--- a/Rules.make
+++ b/Rules.make
@@ -120,127 +120,118 @@ ifeq ($(CONFIG_LIBSWORD_DEP),y)
120 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ 120 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@
121endif 121endif
122$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 122$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
123 @echo Generating dependency information... 123 @echo Generating dependency information...
124# add to subdir-y, and add descend rules 124# add to subdir-y, and add descend rules
125 @cat $(TOPDIR)/packages | grep -v '^#' | \ 125 @cat $(TOPDIR)/packages | grep -v '^#' | \
126 awk '{print \ 126 awk '{print \
127 ".PHONY : " $$2 "\n" \ 127 ".PHONY : " $$2 "\n" \
128 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 128 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
129 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 129 print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
130 cat $(TOPDIR)/packages | grep -v '^#' | \ 130 cat $(TOPDIR)/packages | grep -v '^#' | \
131 perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ 131 perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \
132 >> $(TOPDIR)/.depends 132 >> $(TOPDIR)/.depends
133# interpackage dependency generation 133# interpackage dependency generation
134 @cat $(TOPDIR)/packages | \ 134 @cat $(TOPDIR)/packages | \
135 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 135 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
136 136
137$(TOPDIR)/.depends.cfgs: 137$(TOPDIR)/.depends.cfgs:
138# config.in interdependencies 138# config.in interdependencies
139 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 139 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
140 @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ 140 @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@
141 @-rm -f dirs 141 @-rm -f dirs
142 142
143$(QTDIR)/stamp-headers : 143$(QTDIR)/stamp-headers :
144 @-rm -f $(QTDIR)/stamp-headers* 144 @-rm -f $(QTDIR)/stamp-headers*
145 ( cd $(QTDIR)/include; \ 145 ( cd $(QTDIR)/include; \
146 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ 146 $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \
147 qcopchannel_qws.h qwindowsystem_qws.h \ 147 qcopchannel_qws.h qwindowsystem_qws.h \
148 qfontmanager_qws.h qwsdefaultdecoration_qws.h)) 148 qfontmanager_qws.h qwsdefaultdecoration_qws.h))
149 touch $@ 149 touch $@
150 150
151$(QTDIR)/stamp-headers-x11 : 151$(QTDIR)/stamp-headers-x11 :
152 @-rm -f $(QTDIR)/stamp-headers* 152 @-rm -f $(QTDIR)/stamp-headers*
153 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) 153 cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h)
154 touch $@ 154 touch $@
155 155
156$(OPIEDIR)/stamp-headers : 156$(OPIEDIR)/stamp-headers :
157 @-rm -f $(OPIEDIR)/stamp-headers* 157 @-rm -f $(OPIEDIR)/stamp-headers*
158 mkdir -p $(TOPDIR)/include/qpe \ 158 mkdir -p $(TOPDIR)/include/qpe \
159 $(TOPDIR)/include/qtopia \ 159 $(TOPDIR)/include/qtopia \
160 $(TOPDIR)/include/opie \ 160 $(TOPDIR)/include/opie \
161 $(TOPDIR)/include/opie2 \ 161 $(TOPDIR)/include/opie2 \
162 $(TOPDIR)/include/opie2/private \ 162 $(TOPDIR)/include/opie2/private \
163 $(TOPDIR)/include/qtopia/private \ 163 $(TOPDIR)/include/qtopia/private \
164 $(TOPDIR)/include/sl 164 $(TOPDIR)/include/sl
165 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 165 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
166 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 166 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
167 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 167 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
168ifeq ($(CONFIG_LIBOPIE),y)
169 # libopie1
170 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
171 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
172endif
173 # libopie2 168 # libopie2
174 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) 169 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; )
175 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) 170 ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; )
176 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) 171 ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; )
177 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) 172 ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; )
178 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) 173 ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; )
179 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 174 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
180 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) 175 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
181 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) 176 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; )
182 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) 177 ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; )
183 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) 178 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; )
184 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 179 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
185 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) 180 ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; )
186 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) 181 ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; )
187 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) 182 ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; )
188 # auxilliary libraries 183 # auxilliary libraries
189 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) 184 ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; )
190 ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) 185 ( cd include/sl && ln -sf ../../libslcompat/*.h .; )
191 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) 186 ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; )
192 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) 187 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; )
193 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) 188 ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; )
194 # all 189 # all
195ifeq ($(CONFIG_LIBOPIE),y)
196 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
197 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
198endif
199 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 190 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
200 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) 191 ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done )
201 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 192 ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
202 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) 193 ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done )
203 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 194 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
204 touch $@ 195 touch $@
205 196
206$(OPIEDIR)/stamp-headers-x11 : 197$(OPIEDIR)/stamp-headers-x11 :
207 @-rm -f $(OPIEDIR)/stamp-headers* 198 @-rm -f $(OPIEDIR)/stamp-headers*
208 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ 199 mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \
209 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private 200 $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private
210 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) 201 ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; )
211 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) 202 ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; )
212 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) 203 ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; )
213 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) 204 ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; )
214 ( cd include/opie && ln -sf ../../libsql/*.h .; ) 205 ( cd include/opie && ln -sf ../../libsql/*.h .; )
215 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) 206 ( cd include/opie && ln -sf ../../libopie/pim/*.h .; )
216 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ 207 ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \
217 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) 208 ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done )
218 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h 209 ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h
219 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) 210 ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; )
220 touch $@ 211 touch $@
221 212
222$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 213$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
223 @-rm -f $@ 214 @-rm -f $@
224 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 215 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
225 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 216 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
226 @touch $@ 217 @touch $@
227 218
228$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: 219$(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake:
229 +$(call descend,$(shell dirname $@),$(shell basename $@)) 220 +$(call descend,$(shell dirname $@),$(shell basename $@))
230 221
231menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 222menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
232 $(TOPDIR)/scripts/kconfig/mconf ./config.in 223 $(TOPDIR)/scripts/kconfig/mconf ./config.in
233 @touch ./.config.stamp 224 @touch ./.config.stamp
234 225
235xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 226xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
236 $(TOPDIR)/scripts/kconfig/qconf ./config.in 227 $(TOPDIR)/scripts/kconfig/qconf ./config.in
237 @touch .config.stamp 228 @touch .config.stamp
238 229
239gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 230gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
240 $(TOPDIR)/scripts/kconfig/gconf ./config.in 231 $(TOPDIR)/scripts/kconfig/gconf ./config.in
241 @touch .config.stamp 232 @touch .config.stamp
242 233
243config: $(TOPDIR)/scripts/kconfig/conf ./config.in 234config: $(TOPDIR)/scripts/kconfig/conf ./config.in
244 $(TOPDIR)/scripts/kconfig/conf ./config.in 235 $(TOPDIR)/scripts/kconfig/conf ./config.in
245 @touch .config.stamp 236 @touch .config.stamp
246 237