13
0
livetrax/libs/surfaces/frontier/kernel_drivers/Makefile
Paul Davis 449aab3c46 rollback to 3428, before the mysterious removal of libs/* at 3431/3432
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02 21:41:35 +00:00

36 lines
690 B
Makefile

ifneq ($(KERNELRELEASE),)
obj-m := tranzport.o
tranzport-objs :=
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
MODDIR := $(DESTDIR)/lib/modules/$(shell uname -r)/kernel/sound/usb/misc
BINDIR := $(DESTDIR)/usr/local/bin
default::
$(MAKE) -Wall -C $(KDIR) SUBDIRS=$(PWD) modules
$(MAKE) -C tests
install-only:: default
mkdir -p $(MODDIR) $(BINDIR)
cp tranzport.ko $(MODDIR)
$(MAKE) -C tests install
install:: install-only
/sbin/depmod -a
+/sbin/rmmod tranzport
/sbin/modprobe tranzport
irt:: install
tranzport_tests.sh
clean::
rm -f core .*.cmd *.o *.ko *.mod.c Module.symvers *.bak .\#* *~
rm -rf .tmp_versions
$(MAKE) -C tests clean
endif