1
0

patch-pppdump_Makefile_linux 913 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- ppp-2.4.5.orig/pppdump/Makefile.linux 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppdump/Makefile.linux 2011-01-21 21:29:58.380124461 +0100
  3. @@ -1,21 +1,24 @@
  4. -DESTDIR = $(INSTROOT)@DESTDIR@
  5. -BINDIR = $(DESTDIR)/sbin
  6. -MANDIR = $(DESTDIR)/share/man/man8
  7. +#
  8. +# pppdump makefile
  9. +# $id$
  10. +#
  11. -CFLAGS= -O -I../include/net
  12. -OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
  13. +include ../Makedefs.com
  14. -INSTALL= install
  15. +CPPFLAGS += -I../include/net
  16. -all: pppdump
  17. +PROG = pppdump
  18. +OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
  19. -pppdump: $(OBJS)
  20. - $(CC) -o pppdump $(OBJS)
  21. +all: $(PROG)
  22. -clean:
  23. - rm -f pppdump $(OBJS) *~
  24. +$(PROG): $(OBJS)
  25. install:
  26. - mkdir -p $(BINDIR) $(MANDIR)
  27. - $(INSTALL) -s -c pppdump $(BINDIR)
  28. + $(INSTALL) -d -m 755 $(BINDIR)
  29. + $(INSTALL) -d -m 755 $(MANDIR)
  30. + $(INSTALL) $(STRIP) -c $(PROG) $(BINDIR)
  31. $(INSTALL) -c -m 444 pppdump.8 $(MANDIR)
  32. +
  33. +clean:
  34. + rm -f $(PROG) $(OBJS) *~