author | mickeyl <mickeyl> | 2005-05-05 22:04:09 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-05 22:04:09 (UTC) |
commit | c199fa0b0ef971c3a121af6c31a9a9822561a1be (patch) (unidiff) | |
tree | c4e0d7385eb026e568f234dc992d81b4b9b59912 | |
parent | fdd31c3dd95a42d2666235ad8c2478b7ceead261 (diff) | |
download | opie-c199fa0b0ef971c3a121af6c31a9a9822561a1be.zip opie-c199fa0b0ef971c3a121af6c31a9a9822561a1be.tar.gz opie-c199fa0b0ef971c3a121af6c31a9a9822561a1be.tar.bz2 |
write libflite dependency rules
-rw-r--r-- | Rules.make | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -114,32 +114,36 @@ ifeq ($(CONFIG_LIBBLUEZ_DEP),y) | |||
114 | endif | 114 | endif |
115 | ifeq ($(CONFIG_LIBIPK_DEP),y) | 115 | ifeq ($(CONFIG_LIBIPK_DEP),y) |
116 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ | 116 | echo LIBIPK_LIB_DIR = $(CONFIG_LIBIPK_LIB_DIR) >> $@ |
117 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ | 117 | echo LIBIPK_INC_DIR = $(CONFIG_LIBIPK_INC_DIR) >> $@ |
118 | endif | 118 | endif |
119 | ifeq ($(CONFIG_LIBSDK_DEP),y) | 119 | ifeq ($(CONFIG_LIBSDK_DEP),y) |
120 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ | 120 | echo LIBSDL_LIB_DIR = $(CONFIG_LIBSDL_LIB_DIR) >> $@ |
121 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ | 121 | echo LIBSDL_INC_DIR = $(CONFIG_LIBSDL_INC_DIR) >> $@ |
122 | endif | 122 | endif |
123 | ifeq ($(CONFIG_LIBSWORD_DEP),y) | 123 | ifeq ($(CONFIG_LIBSWORD_DEP),y) |
124 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ | 124 | echo LIBSWORD_LIB_DIR = $(CONFIG_LIBSWORD_LIB_DIR) >> $@ |
125 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ | 125 | echo LIBSWORD_INC_DIR = $(CONFIG_LIBSWORD_INC_DIR) >> $@ |
126 | endif | 126 | endif |
127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) | 127 | ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) |
128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ | 128 | echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ |
129 | endif | 129 | endif |
130 | ifeq ($(CONFIG_LIBFLITE_DEP),y) | ||
131 | echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@ | ||
132 | echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@ | ||
133 | endif | ||
130 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 134 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
131 | @echo Generating dependency information... | 135 | @echo Generating dependency information... |
132 | # add to subdir-y, and add descend rules | 136 | # add to subdir-y, and add descend rules |
133 | @cat $(TOPDIR)/packages | grep -v '^#' | \ | 137 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
134 | awk '{print \ | 138 | awk '{print \ |
135 | ".PHONY : " $$2 "\n" \ | 139 | ".PHONY : " $$2 "\n" \ |
136 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 140 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
137 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 141 | print $$2 " : " $$2 "/Makefile\n\t+$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
138 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 142 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
139 | 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"; }' \ | 143 | 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"; }' \ |
140 | >> $(TOPDIR)/.depends | 144 | >> $(TOPDIR)/.depends |
141 | # interpackage dependency generation | 145 | # interpackage dependency generation |
142 | @cat $(TOPDIR)/packages | \ | 146 | @cat $(TOPDIR)/packages | \ |
143 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 147 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
144 | 148 | ||
145 | $(TOPDIR)/.depends.cfgs: | 149 | $(TOPDIR)/.depends.cfgs: |