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
redis
Commits
8080e1cf
Commit
8080e1cf
authored
Mar 20, 2013
by
Johan Bergström
Browse files
use `install` as default installer (except on SunOS)
parent
dc4003be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
8080e1cf
...
...
@@ -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