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