blob: 3d73710b6c1507f839f5c4ba6d954fc089eeef47 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESTDIR = $(INSTROOT)@DESTDIR@
2BINDIR = $(DESTDIR)/sbin
3MANDIR = $(DESTDIR)/share/man/man8
4
5#CFLAGS= -O -I../include/net
6CFLAGS += -I../include/net
7OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
8
9INSTALL= install
10
11all: pppdump
12
13pppdump: $(OBJS)
14 $(CC) $(CFLAGS) $(LDFLAGS) -o pppdump $(OBJS) $(LDLIBS$(LDLIBS_$@))
15
16clean:
17 rm -f pppdump $(OBJS) *~
18
19install:
20 mkdir -p $(BINDIR) $(MANDIR)
21 $(INSTALL) -s -c pppdump $(BINDIR)
22 $(INSTALL) -c -m 444 pppdump.8 $(MANDIR)