#	$Id: Makefile,v 1.2 2002/03/11 19:51:37 regina Exp $
CC      	= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-gcc
CFLAGS      = -Wall -Os -fomit-frame-pointer -I/home/regina/tslinux/linux/include -DCYCLADES -D_GNU_SOURCE
AS			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-as
LD			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ld
AR			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ar
NM			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-nm
STRIP		= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-strip --remove-section=.note --remove-section=.comment

CDEF1=	-DTERMIOS			# Use the termios structure
CDEF2=	-DSIGTYPE=void			# Standard definition
CDEF3=	-UNO_SLEEP			# Use the usleep function
CDEF4=	-DFNDELAY=O_NDELAY		# Old name value
CDEFS=	$(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)

CFLAGS=	-O2 -pipe $(CDEFS)

INSTALL= install

all:	chat

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

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

install: chat
	$(INSTALL) -s -c chat $(BINDIR)

clean:
	rm -f chat.o chat *~
