diff options
author | antirez <antirez@gmail.com> | 2010-05-18 20:12:03 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-05-18 20:12:03 +0200 |
commit | bd4ec5705906642268d93561985f216f07dc2ba7 (patch) | |
tree | eb805d2108fe298eeba2e011fae5010c5cb0197b /Makefile | |
parent | df0f2a3aedc4f20af9647acf1512a4401d4cec2e (diff) |
minimalistic test suite...
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -15,24 +15,33 @@ CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) DEBUG?= -g -rdynamic -ggdb OBJ = anet.o hiredis.o sds.o example.o +TESTOBJ = anet.o hiredis.o sds.o test.o PRGNAME = hiredis-example +TESTNAME = hiredis-test -all: hiredis-example +all: hiredis-example hiredis-test # Deps (use make dep to generate this) anet.o: anet.c fmacros.h anet.h +example.o: example.c hiredis.h sds.h +test.o: test.c hiredis.h sds.h hiredis.o: hiredis.c hiredis.h sds.h anet.h sds.o: sds.c sds.h +hiredis.o: hiredis.c hiredis.h sds.h anet.h hiredis-example: $(OBJ) $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) +hiredis-test: $(TESTOBJ) + $(CC) -o $(TESTNAME) $(CCOPT) $(DEBUG) $(TESTOBJ) + ./hiredis-test + .c.o: $(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $< clean: - rm -rf $(PRGNAME) *.o *.gcda *.gcno *.gcov + rm -rf $(PRGNAME) $(TESTNAME) *.o *.gcda *.gcno *.gcov dep: $(CC) -MM *.c |