-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.in
More file actions
41 lines (31 loc) · 1004 Bytes
/
Makefile.in
File metadata and controls
41 lines (31 loc) · 1004 Bytes
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
prefix=@prefix@
CC=@CC@
AWK=@AWK@
COPT=-Wall -funsigned-char @DEFS@ -DCONFDIR=\"@sysconfdir@\" @CFLAGS@
SRCS=flowd.c stat.c config.c sem.c @classsrc@ @perlsrc@
OBJS=${SRCS:.c=.o}
.c.o:
@echo Compiling $*.c...
@$(CC) -c $(COPT) -o $*.o $*.c
all: flowd
flowd: $(OBJS)
@echo Linking $@...
@$(CC) $(COPT) @LDFLAGS@ -o flowd $(OBJS) @LIBS@
testacl: acl.c flowd.h
$(CC) -g -Wall -DMAKETEST=1 -o testacl -O2 -funsigned-char acl.c
test: test.c
$(CC) -g -Wall -o test -O2 -funsigned-char test.c -lpcap
install: all
install flowd $(prefix)/sbin
[ -f @sysconfdir@/flowd.conf ] || install flowd.conf @sysconfdir@
[ -d @mandir@/man8 ] || mkdir -p @mandir@/man8
install -m 644 flowd.8 @mandir@/man8
clean:
rm -f *.o config.log config.cache config.status
flowd.o: flowd.c flowd.h Makefile
acl.o: acl.c flowd.h Makefile
stat.o: stat.c flowd.h Makefile
config.o: config.c flowd.h Makefile
sem.o: sem.c flowd.h Makefile
getclass.o: getclass.c flowd.h Makefile
flowperl.o: flowperl.c flowd.h Makefile