Makefile target for parser tests

This commit is contained in:
Pieter Noordhuis 2011-09-29 11:51:52 +02:00
parent 62a36ab1f9
commit e791703fdd

View File

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