#	$Id: Makefile,v 1.1 1993/08/14 06:30:44 deraadt Exp $

BINDIR=/usr/etc

CDEF1=	-DTERMIOS			# Use the termios structure
CDEF2=	-DPIDSTRING			# I like ascii pid values
CDEF3=	-DLOCK_DIR=\"/var/lock\"	# Directory for lock file
CDEF4=	-DSIGTYPE=void			# Standard definition
CDEF5=	-UNO_SLEEP			# Use the usleep function
CDEF6=	-DFNDELAY=O_NDELAY		# Old name value
CDEFS=	$(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4) $(CDEF5) $(CDEF6)

CFLAGS=	-O2 -N $(CDEFS)

all:	chat

chat:	chat.o
	$(CC) -o chat chat.o

chat.o:	chat.c
	$(CC) -c $(CFLAGS) -o chat.o chat.c

install: chat
	install -c chat $(BINDIR)
