Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
e839091b
Commit
e839091b
authored
Feb 05, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suggested fix to compile on FreeBSD.
parent
f8d9fc3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Makefile
+11
-2
No files found.
Makefile
View file @
e839091b
...
...
@@ -11,6 +11,7 @@ $(info $(MSG_PREFIX)Using CXX=$(CXX))
$(info
$(MSG_PREFIX)Using
LD
=
$(LD)
)
PROG
:=
abc
OS
:=
$(
shell
uname
-s
)
MODULES
:=
\
$
(
wildcard src/ext
*
)
\
...
...
@@ -73,6 +74,10 @@ ABC_READLINE_LIBRARIES ?= -lreadline
ifndef
ABC_USE_NO_READLINE
CFLAGS
+=
-DABC_USE_READLINE
$(ABC_READLINE_INCLUDES)
LIBS
+=
$(ABC_READLINE_LIBRARIES)
ifeq
($(OS),
FreeBSD)
CFLAGS
+=
-I
/usr/local/include
LDFLAGS
+=
-L
/usr/local/lib
endif
$(info
$(MSG_PREFIX)Using
libreadline)
endif
...
...
@@ -118,7 +123,11 @@ endif
endif
# LIBS := -ldl -lrt
LIBS
+=
-ldl
-lm
LIBS
+=
-lm
ifneq
($(OS),
FreeBSD)
LIBS
+=
-ldl
endif
ifneq
($(findstring
Darwin,
$(shell
uname)),
Darwin)
LIBS
+=
-lrt
endif
...
...
@@ -191,7 +200,7 @@ tags:
$(PROG)
:
$(OBJ)
@
echo
"
$(MSG_PREFIX)
\`\`
Building binary:"
$
(
notdir
$@
)
$(VERBOSE)$(LD)
-o
$@
$^
$(LIBS)
$(VERBOSE)$(LD)
-o
$@
$^
$(L
DFLAGS)
$(L
IBS)
lib$(PROG).a
:
$(LIBOBJ)
@
echo
"
$(MSG_PREFIX)
\`\`
Linking:"
$
(
notdir
$@
)
...
...
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