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
2b2b512d
Commit
2b2b512d
authored
Jan 26, 2015
by
Matt Stancliff
Browse files
Build test binary by default
This is the only way to force a 32-bit build of the test binary
parent
74f53e30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
2b2b512d
...
@@ -65,7 +65,7 @@ ifeq ($(uname_S),Darwin)
...
@@ -65,7 +65,7 @@ ifeq ($(uname_S),Darwin)
DYLIB_MAKE_CMD
=
$(CC)
-shared
-Wl
,-install_name,
$(DYLIB_MINOR_NAME)
-o
$(DYLIBNAME)
$(LDFLAGS)
DYLIB_MAKE_CMD
=
$(CC)
-shared
-Wl
,-install_name,
$(DYLIB_MINOR_NAME)
-o
$(DYLIBNAME)
$(LDFLAGS)
endif
endif
all
:
$(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME)
all
:
$(DYLIBNAME) $(STLIBNAME)
hiredis-test
$(PKGCONFNAME)
# Deps (use make dep to generate this)
# Deps (use make dep to generate this)
async.o
:
async.c fmacros.h async.h hiredis.h read.h sds.h net.h dict.c dict.h
async.o
:
async.c fmacros.h async.h hiredis.h read.h sds.h net.h dict.c dict.h
...
@@ -121,7 +121,7 @@ examples: $(EXAMPLES)
...
@@ -121,7 +121,7 @@ examples: $(EXAMPLES)
hiredis-test
:
test.o $(STLIBNAME)
hiredis-test
:
test.o $(STLIBNAME)
hiredis-%
:
%.o $(STLIBNAME)
hiredis-%
:
%.o $(STLIBNAME)
$(CC)
-o
$@
$(REAL_LDFLAGS)
$<
$(STLIBNAME)
$(CC)
$(REAL_CFLAGS)
-o
$@
$(REAL_LDFLAGS)
$<
$(STLIBNAME)
test
:
hiredis-test
test
:
hiredis-test
./hiredis-test
./hiredis-test
...
...
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