summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-08-18 23:24:19 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-08-18 23:24:19 +0000
commit6d91df78df4200f1bd932bfb0d8d717b32c42492 (patch)
treea3d4841ee1c42c01cf435b85b8b1201535b2047b /Makefile
parent49073b84b61ea03df09aa5d126a2c71a245e63d9 (diff)
minor cleanups, and allow DAHDI_BUILD_ALL to be overriden on the command line
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4788 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 17b35bc..2c752a8 100644
--- a/Makefile
+++ b/Makefile
@@ -40,10 +40,10 @@ KINCLUDES:=$(KSRC)/include
# Thus we will have many CONFIG_* variables from there.
KCONFIG:=$(KSRC)/.config
ifneq (,$(wildcard $(KCONFIG)))
- HAS_KSRC=yes
+ HAS_KSRC:=yes
include $(KCONFIG)
else
- HAS_KSRC=no
+ HAS_KSRC:=no
endif
# Set HOTPLUG_FIRMWARE=no to override automatic building with hotplug support
@@ -53,15 +53,17 @@ ifeq (yes,$(HAS_KSRC))
HOTPLUG_FIRMWARE:=$(shell if grep -q '^CONFIG_FW_LOADER=[ym]' $(KCONFIG); then echo "yes"; else echo "no"; fi)
endif
-MODULE_ALIASES=wcfxs wctdm8xxp wct2xxp
+MODULE_ALIASES:=wcfxs wctdm8xxp wct2xxp
+
+DAHDI_BUILD_ALL:=m
KMAKE=$(MAKE) -C $(KSRC) ARCH=$(ARCH) SUBDIRS=$(PWD)/drivers/dahdi DAHDI_INCLUDE=$(PWD)/include HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE)
ifneq (,$(wildcard $(DESTDIR)/etc/udev/rules.d))
- DYNFS=yes
+ DYNFS:=yes
endif
-ROOT_PREFIX=
+ROOT_PREFIX:=
ifneq ($(wildcard .version),)
DAHDIVERSION:=$(shell cat .version)
@@ -78,7 +80,7 @@ ifeq (no,$(HAS_KSRC))
echo "You do not appear to have the sources for the $(KVERS) kernel installed."
exit 1
endif
- $(KMAKE) modules DAHDI_BUILD_ALL=m
+ $(KMAKE) modules DAHDI_BUILD_ALL=$(DAHDI_BUILD_ALL)
include/dahdi/version.h: FORCE
@DAHDIVERSION="${DAHDIVERSION}" build_tools/make_version_h > $@.tmp