Index: Makefile =================================================================== --- Makefile (revision 33227) +++ Makefile (revision 33228) @@ -2,8 +2,10 @@ CFLAGS=$(CFLAGS_DBG) $(CFLAGS_LIBCDTR) -I. -I.. -I../.. LDFLAGS=-lm $(LDFLAGS_LIBCDTR) -cdt_test: cdt_test.o cdt.o point.o edge.o triangle.o +OBJS=cdt_test.o cdt.o point.o edge.o triangle.o +cdt_test: $(OBJS) + cdt_test.o: cdt_test.c $(CC) $(CFLAGS) -c cdt_test.c -o $@ @@ -18,3 +20,6 @@ triangle.o: triangle.c $(CC) $(CFLAGS) -c triangle.c -o $@ + +clean: + -rm $(OBJS) cdt_test