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
afb46269
Commit
afb46269
authored
Jan 06, 2012
by
Pieter Noordhuis
Browse files
Store Makefile dependencies in separate file
parent
ee39aff4
Changes
3
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
afb46269
...
...
@@ -4,3 +4,4 @@
*.so
*.dylib
*.a
Makefile.dep
Makefile
View file @
afb46269
...
...
@@ -10,14 +10,6 @@ BINS=hiredis-example hiredis-test
all
:
$(DYLIBNAME) $(BINS)
# Deps (use make dep to generate this)
net.o
:
net.c fmacros.h net.h hiredis.h
async.o
:
async.c async.h hiredis.h sds.h dict.c dict.h
example.o
:
example.c hiredis.h
hiredis.o
:
hiredis.c fmacros.h hiredis.h net.h sds.h
sds.o
:
sds.c sds.h
test.o
:
test.c hiredis.h
$(DYLIBNAME)
:
$(OBJ)
$(DYLIB_MAKE_CMD)
$(OBJ)
...
...
@@ -67,8 +59,10 @@ check: hiredis-test
clean
:
rm
-rf
$(DYLIBNAME)
$(STLIBNAME)
$(BINS)
hiredis-example
*
*
.o
*
.gcda
*
.gcno
*
.gcov
test
/
*
.o
-include
./Makefile.dep
dep
:
$(CC)
-MM
*
.c
$(CC)
-MM
*
.c
>
Makefile.dep
# Installation related variables and target
PREFIX
?=
/usr/local
...
...
test/Makefile
View file @
afb46269
...
...
@@ -17,7 +17,7 @@ test-%: test-%.o $(OBJ) ../$(STLIBNAME)
clean
:
rm
-f
*
.o
$(TESTS)
include
./Makefile.dep
-
include
./Makefile.dep
dep
:
$(CC)
-MM
*
.c
>
Makefile.dep
...
...
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