diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-02-04 23:00:48 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-02-04 23:00:48 +0000 |
commit | 7e068801fbf82413ac0a5e63e586c268bd457434 (patch) | |
tree | 9b61e9a4e07167e0b7d347e4336245724befa29c /kernel/datamods/Makefile | |
parent | 29daeebad888269fa0ee2ca7e54e238c8498ca2d (diff) |
Move kernel stuff to under kernel/
(merged branch /zaptel/team/tzafrir/move )
Closes issue #7117.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3793 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/datamods/Makefile')
-rw-r--r-- | kernel/datamods/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kernel/datamods/Makefile b/kernel/datamods/Makefile new file mode 100644 index 0000000..310073e --- /dev/null +++ b/kernel/datamods/Makefile @@ -0,0 +1,32 @@ +.EXPORT_ALL_VARIABLES: +MODULES= \ + hdlc_cisco hdlc_generic hdlc_raw syncppp \ + hdlc_fr hdlc_ppp hdlc_raw_eth + + +PWD=$(shell pwd) + +MODULESO:=$(MODULES:%=%.o) +MODULESKO:=$(MODULES:%=%.ko) +KMAKE = $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) +KMAKE_INST = $(KMAKE) \ + INSTALL_MOD_PATH=$(INSTALL_PREFIX) INSTALL_MOD_DIR=misc modules_install + +obj-m := $(MODULESO) +#obj-m:=hdlc_raw.o hdlc_cisco.o +#obj-m := hdlc_cisco.o hdlc_cisco.mod.o hdlc_fr.o hdlc_generic.o hdlc_ppp.o hdlc_raw.o hdlc_raw_eth.o hdlc_raw.mod.o hdlc_x25.o + +all: + @echo "You don't want to do make here. Do it from up above" + +clean: + $(KMAKE) clean + +install: $(MODULESKO) + $(KMAKE_INST) + +datamods: + @echo "To build: $(obj-m)" + @echo $(KSRC) + @if [ -z "$(KSRC)" -o ! -d "$(KSRC)" ]; then echo "You do not appear to have the sources for the $(KVERS) kernel installed."; exit 1 ; fi + $(KMAKE) modules |