Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0bc7dbda
Commit
0bc7dbda
authored
Mar 20, 2013
by
Johan Bergström
Committed by
antirez
Apr 02, 2013
Browse files
use `install` as default installer (except on SunOS)
parent
034d9419
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
0bc7dbda
...
...
@@ -22,6 +22,10 @@ STD=-std=c99 -pedantic
WARN
=
-Wall
OPT
=
$(OPTIMIZATION)
PREFIX
?=
/usr/local
INSTALL_BIN
=
$(PREFIX)
/bin
INSTALL
=
install
# Default allocator
ifeq
($(uname_S),Linux)
MALLOC
=
jemalloc
...
...
@@ -51,6 +55,7 @@ FINAL_LIBS=-lm
DEBUG
=
-g
-ggdb
ifeq
($(uname_S),SunOS)
INSTALL
=
cp
-pf
FINAL_CFLAGS
+=
-D__EXTENSIONS__
-D_XPG6
FINAL_LIBS
+=
-ldl
-lnsl
-lsocket
-lpthread
else
ifeq
($(uname_S),Darwin)
...
...
@@ -83,10 +88,6 @@ REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)
REDIS_LD
=
$(QUIET_LINK)$(CC)
$(FINAL_LDFLAGS)
REDIS_INSTALL
=
$(QUIET_INSTALL)$(INSTALL)
PREFIX
?=
/usr/local
INSTALL_BIN
=
$(PREFIX)
/bin
INSTALL
=
cp
-pf
CCCOLOR
=
"
\0
33[34m"
LINKCOLOR
=
"
\0
33[34;1m"
SRCCOLOR
=
"
\0
33[33m"
...
...
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