Check the return value of setuid, and make sure that it worked.
[mpls-ppp.git] / pppdump / Makefile.linux
blobac028f6bf4f0d121f38ff1519ee2632c1a663df8
1 DESTDIR = $(INSTROOT)@DESTDIR@
2 BINDIR = $(DESTDIR)/sbin
3 MANDIR = $(DESTDIR)/share/man/man8
5 CFLAGS= -O -I../include/net
6 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
8 INSTALL= install
10 all:    pppdump
12 pppdump: $(OBJS)
13         $(CC) -o pppdump $(OBJS)
15 clean:
16         rm -f pppdump $(OBJS) *~
18 install:
19         mkdir -p $(BINDIR) $(MANDIR)
20         $(INSTALL) -s -c pppdump $(BINDIR)
21         $(INSTALL) -c -m 444 pppdump.8 $(MANDIR)