File: Makefile

package info (click to toggle)
xone-dkms 0.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 488 kB
  • sloc: ansic: 7,672; sh: 314; makefile: 54
file content (34 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
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
34
KVERSION := $(shell uname -r)
KDIR := /lib/modules/${KVERSION}/build
MAKEFLAGS+="-j $(shell nproc)"

default: clean
	$(MAKE) -C $(KDIR) M=$$PWD

debug: clean
	$(MAKE) -C $(KDIR) M=$$PWD ccflags-y="-Og -g3 -DDEBUG"

clean:
	$(MAKE) -C $(KDIR) M=$$PWD clean

unload:
	./modules_load.sh unload

load: unload
	./modules_load.sh

test:
	$(MAKE) debug &&\
		$(MAKE) load
	$(MAKE) clean

remove: clean
	./uninstall.sh

install: clean
	./install.sh
	./install/firmware.sh --skip-disclaimer

install-debug: clean
	./install.sh --debug
	./install/firmware.sh --skip-disclaimer