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) (side-by-side diff)
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)
echo DEFINES += QT_QWS_ALLOW_OVERCLOCK >> $@
endif
ifeq ($(CONFIG_OPIE_HIGH_RES_SMALL_PHY),y)
echo DEFINES += OPIE_HIGH_RES_SMALL_PHY >> $@
endif
ifeq ($(CONFIG_OPIE_NEW_ALLOC),y)
echo DEFINES += OPIE_NEW_MALLOC >> $@
endif
ifeq ($(CONFIG_OPIE_NO_SOUND_PCM_READ_BITS),y)
echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> $@
endif
echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT=$(CONFIG_OPIE_SOUND_FRAGMENT_SHIFT) >> $@
+ echo DEFINES += OPIE_WE_VERSION=$(CONFIG_OPIE_WE_VERSION) >> $@
$(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages
@echo Generating dependency information...
# add to subdir-y, and add descend rules
@cat $(TOPDIR)/packages | grep -v '^#' | \
awk '{print \
".PHONY : " $$2 "\n" \
"subdir-$$(" $$1 ") += " $$2 "\n\n"; \
print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends
cat $(TOPDIR)/packages | grep -v '^#' | \
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"; }' \
>> $(TOPDIR)/.depends
# interpackage dependency generation