forked from Magentron/chkrootkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (57 loc) · 1.61 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
#
# Makefile for chkrootkit
# (C) 1997-2007 Nelson Murilo, Pangeia Informatica, AMS Foundation and others.
#
CC = cc
CFLAGS = -DHAVE_LASTLOG_H
STATIC = -static
###
### Solaris 2.x
###
# If you have Solaris 2.x, uncomment the next two lines
#CFLAGS = -DHAVE_LASTLOG_H -DSOLARIS2
#LDFLAGS=-lsocket
# If you use gcc in Solaris don't uncomment STATIC line below
#STATIC = -B static
###
### Mac OS X
###
# If you have Mac OS X, uncomment the next line
#STATIC = -B static
###
### FreeBSD or OpenBSD 2.x
###
# If you have FreeBSD or OpenBSD 2.x, uncomment the next line
#CFLAGS =
SRCS = chklastlog.c chkwtmp.c ifpromisc.c chkproc.c chkdirs.c check_wtmpx.c strings.c
OBJS = chklastlog.o chkwtmp.o ifpromisc.o chkproc.o chkdirs.o check_wtmpx.o strings-static.o
all:
@echo '*** stopping make sense ***'
@exec make sense
sense: chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static chkutmp
chklastlog: chklastlog.c
${CC} ${CFLAGS} -o $@ chklastlog.c
@strip $@
chkwtmp: chkwtmp.c
${CC} ${CFLAGS} -o $@ chkwtmp.c
@strip $@
ifpromisc: ifpromisc.c
${CC} ${CFLAGS} ${LDFLAGS} -D_FILE_OFFSET_BITS=64 -o $@ ifpromisc.c
@strip $@
chkproc: chkproc.c
${CC} ${LDFLAGS} -o $@ chkproc.c
@strip $@
chkdirs: chkdirs.c
${CC} ${LDFLAGS} -o $@ chkdirs.c
@strip $@
check_wtmpx: check_wtmpx.c
${CC} ${LDFLAGS} -o $@ check_wtmpx.c
@strip $@
chkutmp: chkutmp.c
${CC} ${LDFLAGS} -o $@ chkutmp.c
@strip $@
strings-static: strings.c
${CC} ${STATIC} ${LDFLAGS} -o $@ strings.c
@strip $@
clean:
rm -f ${OBJS} core chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static chkutmp