blob: 073e5be0b8574e028ce895bd05065d627536811e (
plain) (
blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
ifneq ($(KERNELRELEASE),)
CC = @KERNEL_CC@
judgk-objs := judgk_mod.o judgk_proc.o judgk_syscall.o judgk_syscall_asm.o judgk_security.o judgk_security_asm.o judgk_hyperio.o
obj-m := judgk.o
else
judgk_source = @abs_top_srcdir@/judgk
judgk_include= -I"@abs_top_srcdir@/include"
linux_source = @KERNEL_SRC@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
pkglibdir = $(libdir)/@PACKAGE@
.PHONY: all distdir install-exec install-data install-dvi install-html \
install-info install-ps install-pdf uninstall check installcheck \
mostlyclean clean distclean maintainer-clean \
dvi pdf ps info html
all: judgk.ko
judgk.ko:
$(MAKE) -C $(linux_source) M=$(judgk_source) EXTRA_CFLAGS=$(judgk_include) modules
distdir:
$(MKDIR_P) -p $(distdir)/judgk
cp -p \
judgk.h \
judgk_hyperio.c \
judgk_hyperio.h \
judgk_mod.c \
judgk_mod.h \
judgk_proc.c \
judgk_proc.h \
judgk_security_asm.S \
judgk_security.c \
judgk_security.h \
judgk_syscall_asm.S \
judgk_syscall.c \
judgk_syscall.h \
Makefile.in \
$(distdir)
install: installdirs install-data install-exec
installdirs:
@MKDIR_P@ "$(DESTDIR)$(pkglibdir)/modules"
install-exec: all
@INSTALL@ -c -m 644 judgk.ko \
"$(DESTDIR)$(pkglibdir)/modules"
install-data: install-dvi install-html install-info install-ps install-pdf
install-dvi:
install-html:
install-info:
install-ps:
install-pdf:
uninstall:
rm -f "$(DESTDIR)$(pkglibdir)/modules/judgk.ko"
check:
installcheck:
mostlyclean: clean
clean:
$(MAKE) -C $(linux_source) SUBDIRS=$(judgk_source) clean
distclean: clean
rm -f Makefile
maintainer-clean: distclean
dvi:
pdf:
ps:
info:
html:
tags:
ctags:
endif
|