From 67cf82240e2af7f73719b4cbdfc4df58b801dbcf Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 4 Jan 2012 13:54:16 -0800 Subject: [PATCH] Require the static library to be up to date --- test/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 1769a9c..60bfffe 100644 --- a/test/Makefile +++ b/test/Makefile @@ -4,8 +4,11 @@ TESTS=test-format test-parser test-object test-handle all: $(TESTS) -test-%: test-%.o - $(CC) -o $@ $(REAL_LDFLAGS) $< ../$(STLIBNAME) +../$(STLIBNAME): + cd .. && $(MAKE) $(STLIBNAME) + +test-%: test-%.o ../$(STLIBNAME) + $(CC) -o $@ $(REAL_LDFLAGS) $^ .c.o: $(CC) -std=c99 -pedantic -c -O0 $(REAL_CFLAGS) $<