]> git.ozlabs.org Git - ppp.git/blobdiff - chat/Makefile.linux
Fix a compile warning (IPPROTO_TCP redefined).
[ppp.git] / chat / Makefile.linux
index ca2531c2e7b46d007c68c27bebbdc39576d05c4c..c4d6bf29721f9f8bb34f8a3b572bd75f0a77a141 100644 (file)
@@ -1,16 +1,15 @@
-#      $Id: Makefile.linux,v 1.3 1995/06/30 01:58:21 paulus Exp $
-
-BINDIR=/usr/lib/ppp
-MANDIR=/usr/man
+#      $Id: Makefile.linux,v 1.10 2004/01/13 03:57:55 paulus Exp $
 
 CDEF1= -DTERMIOS                       # Use the termios structure
-CDEF2= -DPIDSTRING                     # I like ascii pid values
-CDEF3= -DSIGTYPE=void                  # Standard definition
-CDEF4= -UNO_SLEEP                      # Use the usleep function
-CDEF5= -DFNDELAY=O_NDELAY              # Old name value
-CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4) $(CDEF5)
+CDEF2= -DSIGTYPE=void                  # Standard definition
+CDEF3= -UNO_SLEEP                      # Use the usleep function
+CDEF4= -DFNDELAY=O_NDELAY              # Old name value
+CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
+
+COPTS= -O2 -g -pipe $(CDEFS)
+CFLAGS=        $(COPTS) $(CDEFS)
 
-CFLAGS=        -O2 -N $(CDEFS)
+INSTALL= install
 
 all:   chat
 
@@ -22,8 +21,8 @@ chat.o:       chat.c
 
 install: chat
        mkdir -p $(BINDIR)
-       install -c chat $(BINDIR)
-       install -c chat.8 $(MANDIR)/man8
+       $(INSTALL) -s -c chat $(BINDIR)
+       $(INSTALL) -c -m 644 chat.8 $(MANDIR)/man8
 
 clean:
        rm -f chat.o chat *~