Require the static library to be up to date

This commit is contained in:
Pieter Noordhuis 2012-01-04 13:54:16 -08:00
parent 92e6324343
commit 67cf82240e

View File

@ -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) $<