X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=chat%2FMakefile.linux;h=1065ac51957632606a777711f222887a5f6a98d8;hb=a7c3489eeaf44e83ce592143c7c8a5b5c29f4c48;hp=ca2531c2e7b46d007c68c27bebbdc39576d05c4c;hpb=47be928f50accd8136c6d0222cf6c14d1c8ab007;p=ppp.git diff --git a/chat/Makefile.linux b/chat/Makefile.linux index ca2531c..1065ac5 100644 --- a/chat/Makefile.linux +++ b/chat/Makefile.linux @@ -1,16 +1,19 @@ -# $Id: Makefile.linux,v 1.3 1995/06/30 01:58:21 paulus Exp $ +# $Id: Makefile.linux,v 1.15 2006/06/04 05:07:46 paulus Exp $ -BINDIR=/usr/lib/ppp -MANDIR=/usr/man +DESTDIR = $(INSTROOT)@DESTDIR@ +BINDIR = $(DESTDIR)/sbin +MANDIR = $(DESTDIR)/share/man/man8 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) -CFLAGS= -O2 -N $(CDEFS) +COPTS= -O2 -g -pipe +CFLAGS= $(COPTS) $(CDEFS) + +INSTALL= install all: chat @@ -21,9 +24,9 @@ chat.o: chat.c $(CC) -c $(CFLAGS) -o chat.o chat.c install: chat - mkdir -p $(BINDIR) - install -c chat $(BINDIR) - install -c chat.8 $(MANDIR)/man8 + mkdir -p $(BINDIR) $(MANDIR) + $(INSTALL) -s -c chat $(BINDIR) + $(INSTALL) -c -m 644 chat.8 $(MANDIR) clean: rm -f chat.o chat *~