Commit 306c97dc authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Fix build for new tests

parent 1375e400
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (C) 2010-2011 Pieter Noordhuis <pcnoordhuis at gmail dot com> # Copyright (C) 2010-2011 Pieter Noordhuis <pcnoordhuis at gmail dot com>
# This file is released under the BSD license, see the COPYING file # This file is released under the BSD license, see the COPYING file
OBJ=net.o hiredis.o sds.o async.o OBJ=net.o hiredis.o sds.o async.o parser.o object.o
BINS=hiredis-example hiredis-test BINS=hiredis-example hiredis-test
LIBNAME=libhiredis LIBNAME=libhiredis
...@@ -94,17 +94,17 @@ check: hiredis-test ...@@ -94,17 +94,17 @@ check: hiredis-test
( kill `cat /tmp/hiredis-test-redis.pid` && false ) ( kill `cat /tmp/hiredis-test-redis.pid` && false )
kill `cat /tmp/hiredis-test-redis.pid` kill `cat /tmp/hiredis-test-redis.pid`
test/test-%.o: test/test-%.c test/test-%.o: test/test-%.c $(STLIBNAME)
$(CC) -std=c99 -pedantic -o $@ -c $(REAL_CFLAGS) $< $(CC) -std=c99 -pedantic -o $@ -c $(REAL_CFLAGS) $<
test/test-parser: test/test-parser.o parser.o sds.o test/test-%: test/test-%.o $(STLIBNAME)
$(CC) -o $@ $(REAL_LDFLAGS) $^ $(CC) -o $@ $(REAL_LDFLAGS) $^
.c.o: .c.o:
$(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $< $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<
clean: clean:
rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov test/*.o
dep: dep:
$(CC) -MM *.c $(CC) -MM *.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment