summaryrefslogtreecommitdiff
path: root/Rules.make
authormickeyl <mickeyl>2004-02-23 18:35:36 (UTC)
committer mickeyl <mickeyl>2004-02-23 18:35:36 (UTC)
commitab0203a43a30598774d8d8a1cf32075817d0dceb (patch) (unidiff)
tree581a32df8fd0c5b2e72eae9e8cc1b851dc18866d /Rules.make
parent155281d14ac505d69ee0be82a5dbed97bc3fa9b7 (diff)
downloadopie-ab0203a43a30598774d8d8a1cf32075817d0dceb.zip
opie-ab0203a43a30598774d8d8a1cf32075817d0dceb.tar.gz
opie-ab0203a43a30598774d8d8a1cf32075817d0dceb.tar.bz2
introduce configuration option OPIE_WE_VERSION
Use '15' for linux versions < 2.4.23 / 2.5.70 Use '16' for linux versions >= 2.4.23 / 2.5.70
Diffstat (limited to 'Rules.make') (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rules.make b/Rules.make
index 84b7dab..bc00d7e 100644
--- a/Rules.make
+++ b/Rules.make
@@ -46,24 +46,25 @@ ifeq ($(CONFIG_QT_QWS_ALLOW_CLOCK),y)
46 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@ 46 echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@
47endif 47endif
48ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y) 48ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y)
49 echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@ 49 echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@
50endif 50endif
51ifeq ($(CONFIG_OPIE_NEW_ALLOC),y) 51ifeq ($(CONFIG_OPIE_NEW_ALLOC),y)
52 echo DEFINES += OPIE_NEW_MALLOC >> $@ 52 echo DEFINES += OPIE_NEW_MALLOC >> $@
53endif 53endif
54ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y) 54ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y)
55 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@ 55 echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@
56endif 56endif
57 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@ 57 echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
58 echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@
58$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages 59$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
59 @echo Generating dependency information... 60 @echo Generating dependency information...
60# add to subdir-y, and add descend rules 61# add to subdir-y, and add descend rules
61 @cat $(TOPDIR)/packages | grep -v '^#' | \ 62 @cat $(TOPDIR)/packages | grep -v '^#' | \
62 awk '{print \ 63 awk '{print \
63 ".PHONY : " $$2 "\n" \ 64 ".PHONY : " $$2 "\n" \
64 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ 65 "subdir-$$(" $$1 ") += " $$2 "\n\n"; \
65 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends 66 print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
66 cat $(TOPDIR)/packages | grep -v '^#' | \ 67 cat $(TOPDIR)/packages | grep -v '^#' | \
67 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"; }' \ 68 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"; }' \
68 >> $(TOPDIR)/.depends 69 >> $(TOPDIR)/.depends
69# interpackage dependency generation 70# interpackage dependency generation