1
0

patch-chat_Makefile_linux 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- ppp-2.4.5.orig/chat/Makefile.linux 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/chat/Makefile.linux 2011-01-21 21:29:57.958658254 +0100
  3. @@ -1,32 +1,27 @@
  4. # $Id: Makefile.linux,v 1.15 2006/06/04 05:07:46 paulus Exp $
  5. -DESTDIR = $(INSTROOT)@DESTDIR@
  6. -BINDIR = $(DESTDIR)/sbin
  7. -MANDIR = $(DESTDIR)/share/man/man8
  8. -
  9. -CDEF1= -DTERMIOS # Use the termios structure
  10. -CDEF2= -DSIGTYPE=void # Standard definition
  11. -CDEF3= -UNO_SLEEP # Use the usleep function
  12. -CDEF4= -DFNDELAY=O_NDELAY # Old name value
  13. -CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
  14. +include ../Makedefs.com
  15. -COPTS= -O2 -g -pipe
  16. -CFLAGS= $(COPTS) $(CDEFS)
  17. +CDEF1=-DTERMIOS # Use the termios structure
  18. +CDEF2=-DSIGTYPE=void # Standard definition
  19. +CDEF3=-UNO_SLEEP # Use the usleep function
  20. +CDEF4=-DFNDELAY=O_NDELA # Old name value
  21. +CDEFS=$(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
  22. -INSTALL= install
  23. +CPPFLAGS += $(CDEFS)
  24. -all: chat
  25. +PROG = chat
  26. +OBJS = chat.o
  27. -chat: chat.o
  28. - $(CC) -o chat chat.o
  29. +all: $(PROG)
  30. -chat.o: chat.c
  31. - $(CC) -c $(CFLAGS) -o chat.o chat.c
  32. +$(PROG): $(OBJS)
  33. -install: chat
  34. - mkdir -p $(BINDIR) $(MANDIR)
  35. - $(INSTALL) -s -c chat $(BINDIR)
  36. +install: $(PROG)
  37. + $(INSTALL) -d -m 755 $(BINDIR)
  38. + $(INSTALL) -d -m 755 $(MANDIR)
  39. + $(INSTALL) $(STRIP) -c $(PROG) $(BINDIR)
  40. $(INSTALL) -c -m 644 chat.8 $(MANDIR)
  41. clean:
  42. - rm -f chat.o chat *~
  43. + rm -f $(OBJS) $(PROG) *~