diff options
author | Christian Pointner <equinox@helsinki.at> | 2025-05-08 17:45:06 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2025-05-08 17:45:06 (GMT) |
commit | e540c2f827bd7c81915b00000e440d91b450b034 (patch) | |
tree | fd0525b5425220413f4a54434b1eeb1a2c7a2f56 /snd-pcxhr/src/Makefile | |
parent | 829bf65b9d6813528cf83a99503955d8894b5bde (diff) |
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 |