]> git.ozlabs.org Git - ppp.git/blob - chat/Makefile.linux
update
[ppp.git] / chat / Makefile.linux
1 #       $Id: Makefile.linux,v 1.7 1997/11/27 05:59:44 paulus Exp $
2
3 CDEF1=  -DTERMIOS                       # Use the termios structure
4 CDEF2=  -DSIGTYPE=void                  # Standard definition
5 CDEF3=  -UNO_SLEEP                      # Use the usleep function
6 CDEF4=  -DFNDELAY=O_NDELAY              # Old name value
7 CDEFS=  $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
8
9 CFLAGS= -O2 -pipe $(CDEFS)
10
11 all:    chat
12
13 chat:   chat.o
14         $(CC) -s -O2 -o chat chat.o
15
16 chat.o: chat.c
17         $(CC) -c $(CFLAGS) -o chat.o chat.c
18
19 install: chat
20         mkdir -p $(BINDIR)
21         install -s -c chat $(BINDIR)
22         install -c -m 644 chat.8 $(MANDIR)/man8
23
24 clean:
25         rm -f chat.o chat *~