Don't compile object files for examples twice
This commit is contained in:
parent
2635feb0ac
commit
8322162e52
6
Makefile
6
Makefile
@ -43,8 +43,6 @@ all: ${DYLIBNAME} ${BINS}
|
|||||||
# Deps (use make dep to generate this)
|
# Deps (use make dep to generate this)
|
||||||
net.o: net.c fmacros.h net.h
|
net.o: net.c fmacros.h net.h
|
||||||
async.o: async.c async.h hiredis.h sds.h util.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
|
example.o: example.c hiredis.h
|
||||||
hiredis.o: hiredis.c hiredis.h net.h sds.h util.h
|
hiredis.o: hiredis.c hiredis.h net.h sds.h util.h
|
||||||
sds.o: sds.c sds.h
|
sds.o: sds.c sds.h
|
||||||
@ -60,10 +58,10 @@ dynamic: ${DYLIBNAME}
|
|||||||
static: ${STLIBNAME}
|
static: ${STLIBNAME}
|
||||||
|
|
||||||
# Binaries:
|
# 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
|
$(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
|
$(CC) -o $@ $(CCOPT) $(DEBUG) -L. -lhiredis -lev -Wl,-rpath,. example-libev.c
|
||||||
|
|
||||||
hiredis-%: %.o ${DYLIBNAME}
|
hiredis-%: %.o ${DYLIBNAME}
|
||||||
|
Loading…
Reference in New Issue
Block a user