# -*- mode: makefile; -*-
# $Id: Makefile,v 1.8 1997/04/28 14:29:05 eivind Exp $

.PATH: ${.CURDIR}/../

all:	node_test	lib/libdmglists.a

lint:
	flexelint ../*.c

install:	nodetest	lib/libdmglists.a
	./nodetest
	(cd ..; cvs commit)
	cp ../node.h /usr/include/dimaga
	cp ./lib/libdmglists.a /usr/local/lib
	cp ../heap.h /usr/include/dimaga

node_test:	node.o	nodetest

nodetest: node.o nodetest.o
	cc -g -Wall -o $(.TARGET) $(.ALLSRC)

nodetest.o: nodetest.c heap.h
	cc -g -c -Wall -o $(.TARGET) $(.IMPSRC)

node.o:	node.c	node.h
	/usr/local/bin/gcc -g -c -Wall -o $(.TARGET) $(.IMPSRC)

lib/libdmglists.a:	node.o
	ar -r $(.CURDIR)/lib/libdmglists.a $(.ALLSRC)
