#
# Makefile for DebugFn
#
# Stefan Haenssgen 16-jul-92
#
# 17-jul-92	Added Visualizer libraries etc
# 21-jul-92	Added test for ShowTree (testbaum.c)
# 07-aug-92	Changed "*debugfn*" to "*DebugFn*"
# 26-oct-92	Split *DebugFn* into *DebugFn* without Visualizer/X11 stuff
#		 and *DebugFnV* with additional Visualizer/X11 calls
# 02-dec-92	Added "tb" for nice graphix
# 10-jan-93	Added "testbaum2" for further tests (joining etc)
# 31-aug-93	Cleaned up for distribution
#

CFLAGS = -g -I/tools/X11/include -I../Vis
OBJS   = DebugFn.o
OBJSV  = DebugFn.o DebugFnV.o
HDRS   = DebugFn.h
HDRSV  = DebugFn.h DebugFnV.h ../Vis/Vis.h
DLIB   = libDebugFn.a
DLIBV  = libDebugFnV.a

all: $(DLIB) $(DLIBV)


#
# Make the library itself
#
$(DLIB): $(OBJS) $(HDRS)
	rm -f $(DLIB)
	ar clq $(DLIB) $(OBJS)
	ranlib $(DLIB)

$(DLIBV): $(OBJSV) $(HDRSV) $(DLIB)
	rm -f $(DLIBV)
	ar clq $(DLIBV) $(OBJSV)
	ranlib $(DLIBV)

#
# Clean up
#
clean:
	rm -f *~ *\# core $(DLIB) $(DLIBV) *.o

