pppd: Fix SIGSEGV in EAP-TLS code when TLS verify method is not specified
[ppp.git] / chat / Makefile.linux
1 CROSS_COMPILE=@CROSS_COMPILE@
2 CC=$(CROSS_COMPILE)@CC@
3 COPTS=@CFLAGS@
4
5 DESTDIR = $(INSTROOT)@DESTDIR@
6 BINDIR = $(DESTDIR)/sbin
7 MANDIR = $(DESTDIR)/share/man/man8
8
9 CDEF1=  -DTERMIOS                       # Use the termios structure
10 CDEF2=  -DSIGTYPE=void                  # Standard definition
11 CDEF3=  -UNO_SLEEP                      # Use the usleep function
12 CDEF4=  -DFNDELAY=O_NDELAY              # Old name value
13 CDEFS=  $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
14
15 CFLAGS= $(COPTS) $(CDEFS)
16
17 INSTALL= install
18
19 all:    chat
20
21 chat:   chat.o
22         $(CC) $(LDFLAGS) -o chat chat.o
23
24 chat.o: chat.c
25         $(CC) -c $(CFLAGS) -o chat.o chat.c
26
27 install: chat
28         mkdir -p $(BINDIR) $(MANDIR)
29         $(INSTALL) -c chat $(BINDIR)
30         $(INSTALL) -c -m 644 chat.8 $(MANDIR)
31
32 clean:
33         rm -f chat.o chat *~