]> git.ozlabs.org Git - ppp.git/blob - chat/Makefile.linux
added deflate, -deflate options
[ppp.git] / chat / Makefile.linux
1 #       $Id: Makefile.linux,v 1.5 1995/12/18 03:32:43 paulus Exp $
2
3 CDEF1=  -DTERMIOS                       # Use the termios structure
4 CDEF2=  -DPIDSTRING                     # I like ascii pid values
5 CDEF3=  -DSIGTYPE=void                  # Standard definition
6 CDEF4=  -UNO_SLEEP                      # Use the usleep function
7 CDEF5=  -DFNDELAY=O_NDELAY              # Old name value
8 CDEFS=  $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4) $(CDEF5)
9
10 CFLAGS= -O2 $(CDEFS)
11
12 all:    chat
13
14 chat:   chat.o
15         $(CC) -O2 -o chat chat.o
16
17 chat.o: chat.c
18         $(CC) -c $(CFLAGS) -o chat.o chat.c
19
20 install: chat
21         mkdir -p $(BINDIR)
22         install -c chat $(BINDIR)
23         install -c chat.8 $(MANDIR)/man8
24
25 clean:
26         rm -f chat.o chat *~