CC = cc -std=c99
CFLAGS = -Wall -g

libUtils.a : array.o dlist.o hash.o logmsg.o memory.o misc.o trace.o
	ar r libUtils.a $?
	ranlib libUtils.a
#
# Test code (change #if 0 to #if 1 in ONE source file to build)
#
array : libUtils.a array.o
	$(CC) -o array array.o libUtils.a
dlist : libUtils.a dlist.o
	$(CC) -o dlist dlist.o libUtils.a
logmsg : libUtils.a logmsg.o
	$(CC) -o logmsg logmsg.o libUtils.a
memory : libUtils.a
	$(CC) -o memory memory.o libUtils.a
#
#
_tags :;
tags : _tags
	etags *.[ch]
#
clean :
	$(RM) $(PROGS) *.o *.a *.log *.dvi *.aux *.toc *.log *.out *~ core TAGS
empty : clean
