#CC=	gcc -W -Wunused -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wcomment -Wswitch -Wshadow -pipe
CC=	cc
LIBS=-lm
CFLAGS= -g

LINTFLAGS=-hp $(CFLAGS)

HEADS=	ort_avl.h\
	../port/ospf_port.h\
	../port/ospf_log.h\
	../port/ospf_mem.h\
	../port/ospf_port_rtab.h\
	../port/ospf_types.h\
	../ospf.h\
	../ospf_const.h\
	../ospf_pkts.h\
	../ospf_timerq.h\
	../ospf_rtab.h\
	../ospf_lsdb.h\
	../ospf_timer_calls.h

SOURCE=	\

AVLSRC=	ort_avl.c

AVLOBJS= ort_avl.o

.c.o:
	$(CC) $(CFLAGS) -c $*.c

otest:  $(AVLOBJS)

clean:
	-rm -f *.o core linterrs

lint:
	lint $(LINTFLAGS) $(AVLSOURCE) | tee linterrs


$(AVLOBJS):	$(HEADS)
