commit e2ce4d08d6ac7366a9da720bedfd9a1ad334e6bb
parent dbb4734098491cfd4aa43e698830432a4ff699cf
Author: Ed van Bruggen <edvb@uw.edu>
Date: Thu, 2 Jan 2020 00:28:47 -0800
Fix makefile not recompiling test.c
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -38,6 +38,8 @@ libs.tsp.h: $(TSP)
$(OBJ): config.mk libs.tsp.h
+test.o: libs.tsp.h
+
$(LIB): $(TIB)
@echo $(CC) -o $@
@$(CC) -shared -o $@ $(OBJ)
@@ -79,7 +81,7 @@ uninstall:
@echo removing tisp libraries from $(DESTDIR)$(PREFIX)/share/tisp
@rm -rf $(DESTDIR)$(PREFIX)/share/tisp/
-test: $(OBJ) $(LIB) libs.tsp.h test.o
+test: $(OBJ) $(LIB) test.o
@echo running tests
@echo $(CC) -o test
@$(CC) -o test tisp.o $(TIB:.c=.o) test.o $(LDFLAGS)