############################################################
#
# Makefile     : System Applications Makefile
# author       : Fabio Silva
#
# $Id: Makefile,v 1.9 2001/10/08 19:43:42 fabio Exp $
#
############################################################

include ../../config.mk

CPPFLAGS = 	-I../../main -I../../lib -I../../nr -I../../main/drivers \
		-g -gstabs+ -fno-inline
LIB	 =	-lpthread
FLAGS 	 = 	${CPPFLAGS} ${AC_DEFS}

INCDEP   =	../../main/config.hh ../../main/message.hh \
		../../main/attrs.hh ../../main/header.hh ../../main/filter.hh \
		../../main/iodev.hh ../../main/hashutils.hh \
		../../main/tools.hh ../../lib/dr.hh
OBJECTS	 = 	flooding.o log.o simple_gradient.o gradient.o \
		srcrt.o tag.o

all:  $(OBJECTS)

flooding.o: flooding.cc flooding.hh $(INCDEP)
	$(CC) $(FLAGS) -c flooding.cc

log.o: log.cc log.hh $(INCDEP)
	$(CC) $(FLAGS) -c log.cc

simple_gradient.o: simple_gradient.cc simple_gradient.hh $(INCDEP)
	$(CC) $(FLAGS) -c simple_gradient.cc

gradient.o: gradient.cc gradient.hh $(INCDEP)
	$(CC) $(FLAGS) -c gradient.cc

tag.o: tag.cc tag.hh $(INCDEP)
	$(CC) $(FLAGS) -c tag.cc

srcrt.o: srcrt.cc srcrt.hh $(INCDEP)
	$(CC) $(FLAGS) -c srcrt.cc

clean:
	rm -f *.o core *~
