-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (40 loc) · 993 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
PREFIX := $(DESTDIR)/usr/local
KAOS_DIR := $(PREFIX)
KAOS_BINDIR := $(KAOS_DIR)/bin
DEBUGFS_DIR := /sys/kernel/debug
INSTALL := install -c -o root -g 0
INSTALL_PROGRAM := $(INSTALL) -m 755
all: kmod kaos
clean: clean-kmod clean-kaos
distclean: clean-kmod distclean-kaos clean-dumbdump
kaos clean-kaos distclean-kaos: src/Makefile
src/Makefile: src/kaos.pro
cd src && qmake
kmod:
$(MAKE) -C kmod
load:
$(MAKE) -C kmod load
unload:
$(MAKE) -C kmod unload
clean-kmod:
$(MAKE) -C kmod clean
kaos:
$(MAKE) -C src
start: kaos
src/kaos $(DEBUGFS_DIR) &
stop:
killall kaos
clean-kaos:
$(MAKE) -C src clean
distclean-kaos:
$(MAKE) -C src distclean
dumbdump:
$(MAKE) -C dumbdump
clean-dumbdump:
$(MAKE) -C dumbdump clean
install: kaos
$(INSTALL_PROGRAM) src/kaos $(KAOS_BINDIR)/kaos
uninstall:
$(RM) $(KAOS_BINDIR)/kaos
.PHONY: all clean distclean kmod load unload clean-kmod kaos start stop \
clean-kaos distclean-kaos dumbdump clean-dumbdump install uninstall