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
hiredis
Commits
be5e943d
"vscode:/vscode.git/clone" did not exist on "04981f7369b37585c856a32feb71eb264bf0db84"
Commit
be5e943d
authored
Jun 19, 2011
by
Pieter Noordhuis
Browse files
Use CFLAGS and LDFLAGS instead of custom variables
parent
cc8ed736
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
be5e943d
...
...
@@ -15,7 +15,7 @@ CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
OPTIMIZATION
?=
-O3
WARNINGS
=
-Wall
-W
-Wstrict-prototypes
-Wwrite-strings
DEBUG
?=
-g
-ggdb
REAL_CFLAGS
=
$(OPTIMIZATION)
-fPIC
$(CFLAGS)
$(WARNINGS)
$(ARCH)
$(PROF)
$(DEBUG)
REAL_CFLAGS
=
$(OPTIMIZATION)
-fPIC
$(CFLAGS)
$(WARNINGS)
$(DEBUG)
REAL_LDFLAGS
=
$(LDFLAGS)
DYLIBSUFFIX
=
so
...
...
@@ -126,15 +126,15 @@ install: $(DYLIBNAME) $(STLIBNAME)
32bit
:
@
echo
""
@
echo
"WARNING: if
i
t fails under Linux you probably need to install libc6-dev-i386"
@
echo
"WARNING: if t
his
fails under Linux you probably need to install libc6-dev-i386"
@
echo
""
$(MAKE)
ARCH
=
"-m32"
$(MAKE)
CFLAGS
=
"-m32"
LDFLAGS
=
"-m32"
gprof
:
$(MAKE)
PROF
=
"-pg"
$(MAKE)
CFLAGS
=
"-pg"
gcov
:
$(MAKE)
PROF
=
"-fprofile-arcs -ftest-coverage"
$(MAKE)
CFLAGS
=
"-fprofile-arcs -ftest-coverage"
LDFLAGS
=
"-fprofile-arcs"
noopt
:
$(MAKE)
OPTIMIZATION
=
""
...
...
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