#########################################################################  
#                  VChat interactive IP-level chat system               #  
#-----------------------------------------------------------------------#  
#  (c) '93/'94 by Andreas S. Wetzel (mickey@deadline.panic.bln.sub.org  #  
#                 All rights reserverd.                                 #  
#-----------------------------------------------------------------------#  
# See the file COPYRIGHT in the top level directory of VChat for        #  
# copyright notices and further disclaimers.                            #  
#########################################################################  

SYS	!=	uname -s
TARGET	=	vchat

S	=	${.CURDIR}

SRCS	=	${S}/vchat.c \
		${S}/screen.c \
		${S}/inet.c \
		${S}/input.c \
		${S}/tty.c

OBJS	=	$(TARGET).o screen.o inet.o input.o tty.o

.include "../conf.mk"

$(TARGET):	$(OBJS)
		$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
		$(TAIL)

all:		$(TARGET)

depend:
		$(DEPEND)

clean:	
		rm -f $(OBJS) $(TARGET).core lint tags

clobber:
		rm -f $(OBJS) $(TARGET) $(TARGET).core lint tags .depend

install:
		$(INSTALL) -c -m $(MODE) -o $(OWNER) -g $(GROUP) $(TARGET) $(BINDIR)
		$(INSTALL) -c -m $(MANMODE) -o $(MANOWN) -g $(MANGRP) ${.CURDIR}/vchat.1 $(MANDIR)/man1

uninstall:
		rm -f ${BINDIR}/$(TARGET)

