Index: Makefile =================================================================== --- Makefile (revision 33232) +++ Makefile (revision 33233) @@ -2,10 +2,10 @@ CFLAGS=$(CFLAGS_DBG) $(CFLAGS_LIBCDTR) -I. -I.. -I../.. LDFLAGS=-lm $(LDFLAGS_LIBCDTR) -OBJS=cdt_test.o cdt.o point.o edge.o triangle.o +OBJS= cdt.o point.o edge.o triangle.o LIBA=libcdtr.a -cdt_test: $(OBJS) +cdt_test: cdt_test.o $(OBJS) include Makefile.dep @@ -32,5 +32,5 @@ echo $(OBJS) | ./dep.sh $(CFLAGS) > Makefile.dep clean: - -touch $(LIBA) $(OBJS) cdt_test - -rm $(LIBA) $(OBJS) cdt_test + -touch $(LIBA) $(OBJS) cdt_test.o cdt_test + -rm $(LIBA) $(OBJS) cdt_test.o cdt_test Index: typedefs.h =================================================================== --- typedefs.h (revision 33232) +++ typedefs.h (revision 33233) @@ -1,8 +1,13 @@ #ifndef TYPEDEFS_H #define TYPEDEFS_H -typedef int coord_t; +#ifdef CDT_COORD_T + typedef CDT_COORD_T coord_t; +#else + typedef int coord_t; +#endif + typedef struct { coord_t x; coord_t y;