]> git.ozlabs.org Git - ppp.git/blob - chat/Makefile.linux
This commit was manufactured by cvs2svn to create tag
[ppp.git] / chat / Makefile.linux
1 #       $Id: Makefile.linux,v 1.15 2006/06/04 05:07:46 paulus Exp $
2
3 DESTDIR = $(INSTROOT)@DESTDIR@
4 BINDIR = $(DESTDIR)/sbin
5 MANDIR = $(DESTDIR)/share/man/man8
6
7 CDEF1=  -DTERMIOS                       # Use the termios structure
8 CDEF2=  -DSIGTYPE=void                  # Standard definition
9 CDEF3=  -UNO_SLEEP                      # Use the usleep function
10 CDEF4=  -DFNDELAY=O_NDELAY              # Old name value
11 CDEFS=  $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
12
13 COPTS=  -O2 -g -pipe
14 CFLAGS= $(COPTS) $(CDEFS)
15
16 INSTALL= install
17
18 all:    chat
19
20 chat:   chat.o
21         $(CC) -o chat chat.o
22
23 chat.o: chat.c
24         $(CC) -c $(CFLAGS) -o chat.o chat.c
25
26 install: chat
27         mkdir -p $(BINDIR) $(MANDIR)
28         $(INSTALL) -s -c chat $(BINDIR)
29         $(INSTALL) -c -m 644 chat.8 $(MANDIR)
30
31 clean:
32         rm -f chat.o chat *~