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

S	=	${.CURDIR}

SRCS	=	${S}/audio.c \
		${S}/subr.c \
		${S}/vping.c

OBJS	=	audio.o \
		subr.o \
		vping.o

.include "../conf.mk"

.if ${SYS} == "FreeBSD"
LIBS	+= -lutil
.endif


$(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)

