blob: b61bc9dda31896508ccd217e2b5c3a09212cfd18 (
plain)
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
|
DESTDIR = $(INSTROOT)@DESTDIR@
BINDIR = $(DESTDIR)/sbin
MANDIR = $(DESTDIR)/share/man/man8
DO_DEFLATE=y
DO_BSD_COMPRESS=y
HAVE_ZLIB=n
CFLAGS= -O -I../include/net
OBJS = pppdump.o
LIBS =
ifdef DO_DEFLATE
CFLAGS += -DDO_DEFLATE=1
OBJS += deflate.o
ifdef HAVE_ZLIB
LIBS += -lz
else
OBJS += zlib.o
endif
else
CFLAGS += -DDO_DEFLATE=0
endif
ifdef DO_BSD_COMPRESS
CFLAGS += -DDO_BSD_COMPRESS=1
OBJS += bsd-comp.o
else
CFLAGS += -DDO_BSD_COMPRESS=0
endif
INSTALL= install
all: pppdump
pppdump: $(OBJS)
$(CC) $(LDFLAGS) -o pppdump $(OBJS) $(LIBS)
clean:
rm -f pppdump $(OBJS) *~
install:
mkdir -p $(BINDIR) $(MANDIR)
$(INSTALL) -c pppdump $(BINDIR)
$(INSTALL) -c -m 444 pppdump.8 $(MANDIR)
|