From e791703fdd1f7ebdf587b66e2ecc65d688b816ed Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 29 Sep 2011 11:51:52 +0200 Subject: [PATCH] Makefile target for parser tests --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 57f057e..850eb20 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,12 @@ check: hiredis-test ( kill `cat /tmp/hiredis-test-redis.pid` && false ) kill `cat /tmp/hiredis-test-redis.pid` +test/test-%.o: test/test-%.c + $(CC) -std=c99 -pedantic -o $@ -c $(REAL_CFLAGS) $< + +test/test-parser: test/test-parser.o parser.o sds.o + $(CC) -o $@ $(REAL_LDFLAGS) $^ + .c.o: $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<