X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=chat%2FMakefile.linux;h=1404e0b496464bf75dca6bfcc4da25c6b05d7ca4;hb=f2af1c05596be799c0c0ec1e451b8b0ae5ddabc6;hp=1531410fa8c7874cfac1dc18fe3f45597ef6ae17;hpb=36b9eaf645b253e2ce4b1904f325835e427fc321;p=ppp.git diff --git a/chat/Makefile.linux b/chat/Makefile.linux index 1531410..1404e0b 100644 --- a/chat/Makefile.linux +++ b/chat/Makefile.linux @@ -1,13 +1,19 @@ -# $Id: Makefile.linux,v 1.4 1995/12/11 02:55:14 paulus Exp $ +# $Id: Makefile.linux,v 1.13 2004/11/03 11:51:47 paulus Exp $ + +DESTDIR = @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) + +COPTS= -O2 -g -pipe +CFLAGS= $(COPTS) $(CDEFS) -CFLAGS= -O2 -N $(CDEFS) +INSTALL= install all: chat @@ -19,8 +25,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) clean: rm -f chat.o chat *~