#########################################################################  
#                  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	=	vserver

S	=	${.CURDIR}

SRCS	=	${S}/vserver.c \
		${S}/commands.c \
		${S}/subr.c

OBJS	=	vserver.o \
		commands.o \
		subr.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) $(LIBDIR)
		$(INSTALL) -c -m $(MANMODE) -o $(MANOWN) -g $(MANGRP) ${.CURDIR}/$(TARGET).8 $(MANDIR)/man8

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

