forked from adiknoth/exboxuma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 763 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
KERNEL_VERSION := `uname -r`
obj-m := snd-usb-exbox.o
DEBUG_CFLAGS=-g -Wall -DDEBUG=1
snd-usb-exbox-objs := chip.o pcm.o midi.o
KDIR := /lib/modules/$(KERNEL_VERSION)/build
PWD := $(shell pwd)
MODDIR := $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/kernel/sound/usb/
BINDIR := $(DESTDIR)/usr/local/bin
INCDIR := $(DESTDIR)/usr/include/alsa/sound
default::
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) EXTRA_CFLAGS="${DEBUG_CFLAGS} ${BROKEN}" modules
install-only:: default
mkdir -p $(MODDIR) $(BINDIR)
cp snd-usb-exbox.ko $(MODDIR)
install:: install-only
/sbin/depmod -a
sync
/sbin/rmmod snd-usb-exbox.ko || true
/sbin/modprobe snd-usb-exbox
sync
sync
clean::
rm -f core .*.cmd *.o *.ko *.mod.c Module.* modules.order *.bak .\#* *~
rm -rf .tmp_versions