Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
8322162e
Commit
8322162e
authored
Dec 01, 2010
by
Pieter Noordhuis
Browse files
Don't compile object files for examples twice
parent
2635feb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8322162e
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment