# Makefile for Set ADT CC = gcc CFLAGS = -Wall -Werror -g all : ts1-array ts1-array-sorted ts1-list ts2-array ts2-array-sorted ts2-list ts1-array : testSet1.o Set-array.o $(CC) -o ts1-array testSet1.o Set-array.o ts1-array-sorted : testSet1.o Set-array-sorted.o $(CC) -o ts1-array-sorted testSet1.o Set-array-sorted.o ts1-list : testSet1.o Set-list.o $(CC) -o ts1-list testSet1.o Set-list.o ts2-array : testSet2.o Set-array.o $(CC) -o ts2-array testSet2.o Set-array.o ts2-array-sorted : testSet2.o Set-array-sorted.o $(CC) -o ts2-array-sorted testSet2.o Set-array-sorted.o ts2-list : testSet2.o Set-list.o $(CC) -o ts2-list testSet2.o Set-list.o testSet1.o : testSet1.c Set.h $(CC) $(CFLAGS) -c testSet1.c testSet2.o : testSet2.c Set.h $(CC) $(CFLAGS) -c testSet2.c Set-array.o : Set-array.c Set.h $(CC) $(CFLAGS) -c Set-array.c Set-array-sorted.o : Set-array-sorted.c Set.h $(CC) $(CFLAGS) -c Set-array-sorted.c Set-list.o : Set-list.c Set.h $(CC) $(CFLAGS) -c Set-list.c clean : rm -f *.o ts1* ts2*