diff options
Diffstat (limited to 'snd-pcxhr/src/Makefile')
-rw-r--r-- | snd-pcxhr/src/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/snd-pcxhr/src/Makefile b/snd-pcxhr/src/Makefile new file mode 100644 index 0000000..d68eb62 --- /dev/null +++ b/snd-pcxhr/src/Makefile @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +snd-pcxhr-y := pcxhr.o pcxhr_hwdep.o pcxhr_mixer.o pcxhr_core.o pcxhr_mix22.o pcxhr_hrtimer.o +# pcxhr_clock_monitoring.o +obj-$(CONFIG_SND_PCXHR) += snd-pcxhr.o + +# KVERSION is the kernel version +# If not defined, it is set to the current kernel version +KVERSION ?= $(shell uname -r) + +# KDIR is the location of the kernel source. The current standard is +# to link to the associated source tree from the directory containing +# the compiled modules. +KDIR := /lib/modules/$(KVERSION)/build + +# PWD is the current working directory and the location of our module +# source files. +PWD := $(shell pwd) + +# Set CFLAGS according to the needs +#Activate sound logs +#CFLAGS_MODULE += -DCONFIG_SND_DEBUG_VERBOSE + +MODULES_DIR := /lib/modules/$(shell uname -r)/digigram +# default is the default make target. The rule here says to run make +# with a working directory of the directory containing the kernel +# source and compile only the modules in the PWD (local) directory. +default: + $(MAKE) -C $(KDIR) M=$(PWD) modules + +all: clean default + +clean: + $(MAKE) -C $(KDIR) M=$(PWD) clean + +install: + test -d $(MODULES_DIR) || mkdir $(MODULES_DIR) + cp *.ko /lib/modules/$(shell uname -r)/digigram + depmod -ae + + +.PHONY: default all clean install |