CFLAGS=-Wall -g

FILES = *.c *.h Makefile

######################################################################
# Standard Targets

default: lda-utest-0 lda-utest-1 lda-utest-2 lda-utest-3

.PHONY: clean
clean:
	rm -f *.o 
	rm -f *.gch

.PHONY: distclean
distclean: clean
	rm -f node.utest node.expt list1.expt

.PHONY: tarball
tarball: lists.tar


######################################################################
# Primary Targets

lda-utest-0: list0.o lda-utest.o mem.o node.o
	$(LINK.o) -o $@ $^

lda-utest-1: list1.o lda-utest.o mem.o node.o
	$(LINK.o) -o $@ $^

lda-utest-2: list2.o lda-utest.o mem.o node.o
	$(LINK.o) -o $@ $^

lda-utest-3: list3.o lda-utest.o mem.o node.o
	$(LINK.o) -o $@ $^


######################################################################
# Dependencies

list0.o: list0.c list.c list-delete-all-0.c
list1.o: list1.c list.c list-delete-all-1.c
list2.o: list2.c list.c list-delete-all-2.c
list3.o: list3.c list.c list-delete-all-3.c
