-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
104 lines (83 loc) · 4.39 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# Configuration options for building are stored in the Makefile.in file.
# This file is generated by running the ./configure script.
#
#
include Makefile.in
#DFLAGS =
INCLUDESDIR=../includes
OBJSDIR=../objs
CFLAGS = -O3 -I $(INCLUDESDIR)
#
# The Objects...
#
OBJS = $(OBJSDIR)/StMichael_lkm.o\
$(OBJSDIR)/StMichael_string_util.o\
$(OBJSDIR)/StMichael_timer.o\
$(OBJSDIR)/StMichael_syscall_delete_module_wrapper.o\
$(OBJSDIR)/StMichael_syscall_create_module_wrapper.o\
$(OBJSDIR)/StMichael_syscall_init_module_wrapper.o\
$(OBJSDIR)/StMichael_syscall_exit_wrapper.o\
$(OBJSDIR)/StMichael_integrity_check.o\
$(OBJSDIR)/StMichael_filesystem_check.o\
$(OBJSDIR)/StMichael_mbr_check.o\
$(OBJSDIR)/md5.o\
$(OBJSDIR)/sha1.o
all: StMichael.o Makefile.in
Makefile.in:
#
# StMichael_LKM Configuration Not Found.
#
# Run the Configure Script First:
# ./configure
#
#
#
# Aborting Compile...
#
/bin/false
StMichael.o: $(OBJS)
ld -o ../bin/StMichael.o -r $(OBJS)
#
#
#
# To activate Saint Michael, Load the module "StMichael.o" via /sbin/insmod.
#
#
#
$(OBJSDIR)/StMichael_lkm.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h $(INCLUDESDIR)/StMichael_timer.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) $(MFLAGS) -o $(OBJSDIR)/StMichael_lkm.o -c StMichael_lkm.c
$(OBJSDIR)/StMichael_string_util.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) -DKEY=$$$$ $(MD5FLAGS) -o $(OBJSDIR)/StMichael_string_util.o -c StMichael_string_util.c
$(OBJSDIR)/StMichael_timer.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_timer.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_timer.o -c StMichael_timer.c
$(OBJSDIR)/StMichael_integrity_check.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_integrity_check.o -c StMichael_integrity_check.c
$(OBJSDIR)/StMichael_filesystem_check.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_filesystem_check.o -c StMichael_filesystem_check.c
$(OBJSDIR)/StMichael_mbr_check.o: $(INCLUDESDIR)/StMichael_mbr.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_mbr_check.o -c StMichael_mbr_check.c
$(OBJSDIR)/StMichael_syscall_init_module_wrapper.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_syscall_init_module_wrapper.o -c StMichael_syscall_init_module_wrapper.c
$(OBJSDIR)/StMichael_syscall_create_module_wrapper.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_syscall_create_module_wrapper.o -c StMichael_syscall_create_module_wrapper.c
$(OBJSDIR)/StMichael_syscall_exit_wrapper.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_syscall_exit_wrapper.o -c StMichael_syscall_exit_wrapper.c
$(OBJSDIR)/StMichael_syscall_delete_module_wrapper.o: $(INCLUDESDIR)/StMichael_lkm.h $(INCLUDESDIR)/StMichael_string_util.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) $(CLOAKFLAGS) $(MD5FLAGS) -o $(OBJSDIR)/StMichael_syscall_delete_module_wrapper.o -c StMichael_syscall_delete_module_wrapper.c
$(OBJSDIR)/md5.o: $(INCLUDESDIR)/md5.h $(INCLUDESDIR)/StMichael_lkm.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) -o $(OBJSDIR)/md5.o -c md5.c
$(OBJSDIR)/sha1.o: $(INCLUDESDIR)/sha1.h $(INCLUDESDIR)/StMichael_lkm.h
$(CC) $(CFLAGS) $(IFLAGS) $(DFLAGS) -o $(OBJSDIR)/sha1.o -c sha1.c
clean:
rm -f $(OBJS) ../bin/StMichael.o
veryclean:
rm -f $(OBJS) ../bin/StMichael.o
rm -f Makefile.in
dist: Makefile.in
rm -f $(OBJS) ../bin/StMichael.o Makefile.in *~
mkdir ../StMichael_LKM-$(VERSION)
cp -a ../stmichael_lkm/* ../StMichael_LKM-$(VERSION)
chmod -R g-rwx,o-rwx ../StMichael_LKM-$(VERSION)
(cd ..;tar -c --exclude CVS --exclude TODO -zf StMichael_LKM-$(VERSION).tar.gz StMichael_LKM-$(VERSION);md5sum StMichael_LKM-$(VERSION).tar.gz > StMichael_LKM-$(VERSION).tar.gz.md5sum;gpg --detach-sign StMichael_LKM-$(VERSION).tar.gz)
ls -l ../StMichael_LKM-$(VERSION).*