summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rules.make b/Rules.make
index f59b4f7..f75e6da 100644
--- a/Rules.make
+++ b/Rules.make
@@ -106,48 +106,52 @@ ifeq ($(CONFIG_LIBSQLITE_DEP),y)
106endif 106endif
107ifeq ($(CONFIG_LIBXINE_DEP),y) 107ifeq ($(CONFIG_LIBXINE_DEP),y)
108 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@ 108 echo LIBXINE_LIB_DIR = $(CONFIG_LIBXINE_LIB_DIR) >> $@
109 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@ 109 echo LIBXINE_INC_DIR = $(CONFIG_LIBXINE_INC_DIR) >> $@
110endif 110endif
111ifeq ($(CONFIG_LIBBLUEZ_DEP),y) 111ifeq ($(CONFIG_LIBBLUEZ_DEP),y)
112 echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@ 112 echo LIBBLUEZ_LIB_DIR = $(CONFIG_LIBBLUEZ_LIB_DIR) >> $@
113 echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@ 113 echo LIBBLUEZ_INC_DIR = $(CONFIG_LIBBLUEZ_INC_DIR) >> $@
114endif 114endif
115ifeq ($(CONFIG_LIBIPK_DEP),y) 115ifeq ($(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) >> $@
118endif 118endif
119ifeq ($(CONFIG_LIBSDK_DEP),y) 119ifeq ($(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) >> $@
122endif 122endif
123ifeq ($(CONFIG_LIBSWORD_DEP),y) 123ifeq ($(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) >> $@
126endif 126endif
127ifeq ($(CONFIG_LIBFREETYPE2_DEP),y) 127ifeq ($(CONFIG_LIBFREETYPE2_DEP),y)
128 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@ 128 echo LIBFREETYPE2_INC_DIR = $(CONFIG_LIBFREETYPE2_INC_DIR) >> $@
129endif 129endif
130ifeq ($(CONFIG_LIBFLITE_DEP),y)
131 echo LIBFLITE_LIB_DIR = $(CONFIG_LIBFLITE_LIB_DIR) >> $@
132 echo LIBFLITE_INC_DIR = $(CONFIG_LIBFLITE_INC_DIR) >> $@
133endif
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:
146# config.in interdependencies 150# config.in interdependencies
147 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs 151 @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs
148 @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 ) >> $@ 152 @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 ) >> $@
149 @-rm -f dirs 153 @-rm -f dirs
150 154
151$(QTDIR)/stamp-headers : 155$(QTDIR)/stamp-headers :
152 @-rm -f $(QTDIR)/stamp-headers* 156 @-rm -f $(QTDIR)/stamp-headers*
153 ( cd $(QTDIR)/include; \ 157 ( cd $(QTDIR)/include; \