summaryrefslogtreecommitdiff
path: root/Rules.make
authordrw <drw>2004-04-22 20:45:26 (UTC)
committer drw <drw>2004-04-22 20:45:26 (UTC)
commit42977c57028a94735aaf9870097e1269815c6229 (patch) (unidiff)
tree9bc14ae88173421808144f5fed3dde7a31d2945d /Rules.make
parent47d4d04c8b593d9d26c262add5b16d9ce3868866 (diff)
downloadopie-42977c57028a94735aaf9870097e1269815c6229.zip
opie-42977c57028a94735aaf9870097e1269815c6229.tar.gz
opie-42977c57028a94735aaf9870097e1269815c6229.tar.bz2
Added libsword dependancy for dagger
Diffstat (limited to 'Rules.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make14
1 files changed, 9 insertions, 5 deletions
diff --git a/Rules.make b/Rules.make
index 42e4cfe..e86f662 100644
--- a/Rules.make
+++ b/Rules.make
@@ -80,48 +80,52 @@ endif
80ifeq ($(CONFIG_LIBETPAN_DEP),y) 80ifeq ($(CONFIG_LIBETPAN_DEP),y)
81 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@ 81 echo LIBETPAN_LIB_DIR = $(CONFIG_LIBETPAN_LIB_DIR) >> $@
82 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@ 82 echo LIBETPAN_INC_DIR = $(CONFIG_LIBETPAN_INC_DIR) >> $@
83endif 83endif
84ifeq ($(CONFIG_LIBPCAP_DEP),y) 84ifeq ($(CONFIG_LIBPCAP_DEP),y)
85 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@ 85 echo LIBPCAP_LIB_DIR = $(CONFIG_LIBPCAP_LIB_DIR) >> $@
86 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@ 86 echo LIBPCAP_INC_DIR = $(CONFIG_LIBPCAP_INC_DIR) >> $@
87endif 87endif
88ifeq ($(CONFIG_LIBSQLITE_DEP),y) 88ifeq ($(CONFIG_LIBSQLITE_DEP),y)
89 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@ 89 echo LIBSQLITE_LIB_DIR = $(CONFIG_LIBSQLITE_LIB_DIR) >> $@
90 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@ 90 echo LIBSQLITE_INC_DIR = $(CONFIG_LIBSQLITE_INC_DIR) >> $@
91endif 91endif
92ifeq ($(CONFIG_LIBXINE_DEP),y) 92ifeq ($(CONFIG_LIBXINE_DEP),y)
93 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ 93 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@
94 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ 94 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@
95endif 95endif
96ifeq ($(CONFIG_LIBIPK_DEP),y) 96ifeq ($(CONFIG_LIBIPK_DEP),y)
97 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ 97 echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@
98 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ 98 echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@
99endif 99endif
100ifeq ($(CONFIG_LIBSDK_DEP),y) 100ifeq ($(CONFIG_LIBSDK_DEP),y)
101 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ 101 echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@
102 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ 102 echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@
103endif 103endif
104ifeq ($(CONFIG_LIBSWORD_DEP),y)
105 echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@
106 echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@
107endif
104$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 108$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
105 @echo Generating dependency information... 109 @echo Generating dependency information...
106# add to subdir-y, and add descend rules 110# add to subdir-y, and add descend rules
107 @cat $(TOPDIR)/packages | grep -v '^#' | \ 111 @cat $(TOPDIR)/packages | grep -v '^#' | \
108 awk '{print \ 112 awk '{print \
109 ".PHONY : " $$2 "\n" \ 113 ".PHONY : " $$2 "\n" \
110 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 114 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
111 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 115 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
112 cat $(TOPDIR)/packages | grep -v '^#' | \ 116 cat $(TOPDIR)/packages | grep -v '^#' | \
113 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"; }' \ 117 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"; }' \
114 >> $(TOPDIR)/.depends 118 >> $(TOPDIR)/.depends
115# interpackage dependency generation 119# interpackage dependency generation
116 @cat $(TOPDIR)/packages | \ 120 @cat $(TOPDIR)/packages | \
117 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends 121 $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends
118 122
119$(TOPDIR)/.depends.cfgs: 123$(TOPDIR)/.depends.cfgs:
120# config.in interdependencies 124# config.in interdependencies
121 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 125 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
122 @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 ) >> $@ 126 @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 ) >> $@
123 @-rm -f dirs 127 @-rm -f dirs
124 128
125$(QTDIR)/stamp-headers : 129$(QTDIR)/stamp-headers :
126 @-rm -f $(QTDIR)/stamp-headers* 130 @-rm -f $(QTDIR)/stamp-headers*
127 ( cd $(QTDIR)/include; \ 131 ( cd $(QTDIR)/include; \
@@ -199,65 +203,65 @@ $(OPIEDIR)/stamp-headers-x11 :
199$(TOPDIR)/library/custom.h : $(TOPDIR)/.config 203$(TOPDIR)/library/custom.h : $(TOPDIR)/.config
200 @-rm -f $@ 204 @-rm -f $@
201 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ 205 @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\
202 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) 206 ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@)
203 @touch $@ 207 @touch $@
204 208
205$(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: 209$(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:
206 @$(call descend,$(shell dirname $@),$(shell basename $@)) 210 @$(call descend,$(shell dirname $@),$(shell basename $@))
207 211
208menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in 212menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in
209 $(TOPDIR)/scripts/kconfig/mconf ./config.in 213 $(TOPDIR)/scripts/kconfig/mconf ./config.in
210 @touch ./.config.stamp 214 @touch ./.config.stamp
211 215
212xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 216xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
213 $(TOPDIR)/scripts/kconfig/qconf ./config.in 217 $(TOPDIR)/scripts/kconfig/qconf ./config.in
214 @touch .config.stamp 218 @touch .config.stamp
215 219
216gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in 220gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in
217 $(TOPDIR)/scripts/kconfig/gconf ./config.in 221 $(TOPDIR)/scripts/kconfig/gconf ./config.in
218 @touch .config.stamp 222 @touch .config.stamp
219 223
220config: $(TOPDIR)/scripts/kconfig/conf ./config.in 224config: $(TOPDIR)/scripts/kconfig/conf ./config.in
221 $(TOPDIR)/scripts/kconfig/conf ./config.in 225 $(TOPDIR)/scripts/kconfig/conf ./config.in
222 @touch .config.stamp 226 @touch .config.stamp
223 227
224oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 228oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
225 $(TOPDIR)/scripts/kconfig/conf -o ./config.in 229 $(TOPDIR)/scripts/kconfig/conf -o ./config.in
226 @touch .config.stamp 230 @touch .config.stamp
227 231
228randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 232randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
229 $(TOPDIR)/scripts/kconfig/conf -r ./config.in 233 $(TOPDIR)/scripts/kconfig/conf -r ./config.in
230 @touch .config.stamp 234 @touch .config.stamp
231 235
232allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 236allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
233 $(TOPDIR)/scripts/kconfig/conf -y ./config.in 237 $(TOPDIR)/scripts/kconfig/conf -y ./config.in
234 @touch .config.stamp 238 @touch .config.stamp
235 239
236allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 240allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
237 $(TOPDIR)/scripts/kconfig/conf -n ./config.in 241 $(TOPDIR)/scripts/kconfig/conf -n ./config.in
238 @touch .config.stamp 242 @touch .config.stamp
239 243
240defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in 244defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in
241 $(TOPDIR)/scripts/kconfig/conf -d ./config.in 245 $(TOPDIR)/scripts/kconfig/conf -d ./config.in
242 @touch .config.stamp 246 @touch .config.stamp
243 247
244$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default 248$(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default
245 249
246$(TOPDIR)/mkspecs/default : 250$(TOPDIR)/mkspecs/default :
247 ln -sf linux-g++ $@ 251 ln -sf linux-g++ $@
248 252
249$(TOPDIR)/scripts/subst : force 253$(TOPDIR)/scripts/subst : force
250 @( \ 254 @( \
251 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ 255 echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \
252 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ 256 echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \
253 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ 257 echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \
254 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ 258 echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \
255 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ 259 echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \
256 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ 260 echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \
257 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ 261 echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \
258 ) > $@ || ( rm -f $@; exit 1 ) 262 ) > $@ || ( rm -f $@; exit 1 )
259 263
260$(TOPDIR)/scripts/filesubst : force 264$(TOPDIR)/scripts/filesubst : force
261 @( \ 265 @( \
262 echo 's,\$$OPIEDIR/root/,/,g'; \ 266 echo 's,\$$OPIEDIR/root/,/,g'; \
263 echo 's,$(OPIEDIR)/root/,/,g'; \ 267 echo 's,$(OPIEDIR)/root/,/,g'; \