summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-12-01 13:30:22 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-12-01 13:30:22 +0100
commit8322162e5267a6a7d0935a9719ab83f78de383f4 (patch)
treeb40dfc565c7801fdd7bd4a8638edbb805defd583 /Makefile
parent2635feb0ac36d21d5aaf920c4aa41533c91818ee (diff)
Don't compile object files for examples twice
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2ae73d4..ab40baa 100644
--- a/Makefile
+++ b/Makefile
@@ -43,8 +43,6 @@ all: ${DYLIBNAME} ${BINS}
# Deps (use make dep to generate this)
net.o: net.c fmacros.h net.h
async.o: async.c async.h hiredis.h sds.h util.h
-example-libev.o: example-libev.c hiredis.h async.h adapters/libev.h
-example-libevent.o: example-libevent.c hiredis.h async.h adapters/libevent.h
example.o: example.c hiredis.h
hiredis.o: hiredis.c hiredis.h net.h sds.h util.h
sds.o: sds.c sds.h
@@ -60,10 +58,10 @@ dynamic: ${DYLIBNAME}
static: ${STLIBNAME}
# Binaries:
-hiredis-example-libevent: example-libevent.o ${DYLIBNAME}
+hiredis-example-libevent: example-libevent.c adapters/libevent.h ${DYLIBNAME}
$(CC) -o $@ $(CCOPT) $(DEBUG) -L. -lhiredis -levent -Wl,-rpath,. example-libevent.c
-hiredis-example-libev: example-libev.o ${DYLIBNAME}
+hiredis-example-libev: example-libev.c adapters/libev.h ${DYLIBNAME}
$(CC) -o $@ $(CCOPT) $(DEBUG) -L. -lhiredis -lev -Wl,-rpath,. example-libev.c
hiredis-%: %.o ${DYLIBNAME}