-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
36 lines (26 loc) · 1.3 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I$(abs_top_srcdir)
EXTRA_DIST = COPYING INSTALL README \
module/Makefile module/schedule-hook.c module/schedule-hook.h module/83-schedule-hook.rules
udevdir = /etc/udev/rules.d
initdir = @sysconfdir@/init.d
#udev_DATA = module/83-schedule-hook.rules
#lib_LIBRARIES = libovertick.a
#libovertick_a_SOURCES=lib/overticklib.c
#include_HEADERS = lib/overtick.h
module/schedule.ko: module/schedule-hook.c module/hook.S
test -f $(builddir)/module/Makefile || $(LN_S) $(abs_top_srcdir)/module/Makefile $(builddir)/module/
test -f $(builddir)/module/schedule-hook.c || $(LN_S) $(abs_top_srcdir)/module/schedule-hook.c $(builddir)/module/
test -f $(builddir)/module/schedule-hook.h || $(LN_S) $(abs_top_srcdir)/module/schedule-hook.h $(builddir)/module/
$(MAKE) -C $(KERNEL_SRC) M=$(abs_top_builddir)/module EXTRA_CFLAGS="-Wall \
-DFTS_ADDR=$(FTS_ADDR) -DFTS_ADDR_NEXT=$(FTS_ADDR_NEXT)"
all-local: module/schedule.ko
install-exec-hook: module/schedule.ko
test -z "$(DESTDIR)$(KERNEL_MOD)" || $(MKDIR_P) "$(DESTDIR)$(KERNEL_MOD)"
$(INSTALL) $(builddir)/module/schedule.ko $(DESTDIR)$(KERNEL_MOD)/schedule.ko
depmod -a
uninstall-hook:
$(RM) $(DESTDIR)$(KERNEL_MOD)/schedule.ko
depmod -a
clean-local:
-$(MAKE) -C $(KERNEL_SRC) M=$(abs_top_builddir)/module clean