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

BINDIR=/usr/etc

CC=gcc

# Use the termios structure
CDEF1= -DTERMIOS

# I like ascii pid values
CDEF2= -DPIDSTRING

# Directory for lock file
CDEF3= -DLOCK_DIR=\"/usr/spool/locks\"

# Standard definition
CDEF4= -DSIGTYPE=void

# Use the usleep function
#CDEF5= -UNO_USLEEP

# Old name value
CDEF6= -DFNDELAY=O_NDELAY

# Define this if read() and write() don't return with EINTR when
# SIGALRM is handled
CDEF7= -DNO_EINTR

CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4) $(CDEF5) $(CDEF6) $(CDEF7)

CFLAGS=	-O2 $(CDEFS)
CPPFLAGS= -D__MINT__ -I/usr/src/portlib
LDLIBS= -L/usr/src/portlib -lportlib -liio

all:	chat

chat:	chat.o

chat.o:	chat.c

install: chat
	install -c chat $(BINDIR)
