Change some Makefile.linux files to use COPTS and CFLAGS the same way
[ppp.git] / chat / Makefile.linux
1 #       $Id: Makefile.linux,v 1.10 2004/01/13 03:57:55 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 COPTS=  -O2 -g -pipe $(CDEFS)
10 CFLAGS= $(COPTS) $(CDEFS)
11
12 INSTALL= install
13
14 all:    chat
15
16 chat:   chat.o
17         $(CC) -o chat chat.o
18
19 chat.o: chat.c
20         $(CC) -c $(CFLAGS) -o chat.o chat.c
21
22 install: chat
23         mkdir -p $(BINDIR)
24         $(INSTALL) -s -c chat $(BINDIR)
25         $(INSTALL) -c -m 644 chat.8 $(MANDIR)/man8
26
27 clean:
28         rm -f chat.o chat *~