# for non BSD systems remove the -D_BSD
# for non multicast systems remvoe the -DMULTI
#CFLAGS = -g -D_BSD -DDEBUG -DMULTI
# For linux, use the below two lines:
# The -DDONTLOGPKTS is my contribution here, as the reflector will dump
# packet information every second or so, which makes a _huge_ log file.
# I don't like that, and I bet you don't either, so I made it so you can
# not have it if you don't want to.    - root@mama.indstate.edu
CFLAGS = -g -D_BSD -DLINUX -I/usr/include/bsd -DDONTLOGPKTS -DMULTI # -DDEBUG
LDFLAGS = -lbsd

LINTFLAGS=
VSRCS=	reflect.c socket.c control.c util.c load.c refutil.c client.c distribute.c ocp.c mbone.c
VOBJS=	reflect.o socket.o control.o util.o load.o refutil.o client.o distribute.o ocp.o mbone.o
INCL=   reflect.h refmon.h globals.h
RSRCS=	refmon.c 
ROBJS=	refmon.o 
# LIBC=	/lib/libc.a /lib/libbsd.a
LIBC=	

all: reflect refmon 

reflect.o : ${INCL}
socket.o : ${INCL}
control.o : ${INCL}
load.o : ${INCL}
refutil.o : ${INCL}
client.o : ${INCL}

ocp.o : ${INCL}
mbone.o : ${INCL} rtp.h

reflect: ${VOBJS} 
	rm -f $@
	${CC}  -o $@ ${VOBJS} ${LIBC}

refmon: ${ROBJS} 
	rm -f $@
	${CC}  -o $@ ${ROBJS} ${LIBC}
