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
d944384d
Commit
d944384d
authored
Oct 16, 2015
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: add ABC_MAKE_VERBOSE flag to print the acutall commands executed.
parent
824584ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
Makefile
+27
-13
No files found.
Makefile
View file @
d944384d
...
...
@@ -56,7 +56,7 @@ ifdef ABC_USE_NAMESPACE
endif
# compile CUDD with ABC
if
def
ABC_USE
_CUDD
if
ndef
ABC_USE_NO
_CUDD
CFLAGS
+=
-DABC_USE_CUDD
=
1
MODULES
+=
src/bdd/cudd src/bdd/extrab src/bdd/dsd src/bdd/epd src/bdd/mtr src/bdd/reo src/bdd/cas src/bdd/bbr src/bdd/llb
$(info
$(MSG_PREFIX)Compiling
with
CUDD)
...
...
@@ -70,12 +70,26 @@ ifndef ABC_USE_NO_READLINE
endif
# whether to compile with thread support
ifdef
ABC_USE_PTHREADS
ifdef
ABC_USE_
NO_
PTHREADS
CFLAGS
+=
-DABC_USE_PTHREADS
LIBS
+=
-lpthread
$(info
$(MSG_PREFIX)Using
pthreads)
endif
# whether to compile into position independent code
ifdef
ABC_USE_PIC
CFLAGS
+=
--fPIC
LIBS
+=
-fPIC
$(info
$(MSG_PREFIX)Compiling
position
independent
code)
endif
# whether to echo commands while building
ifdef
ABC_MAKE_VERBOSE
VERBOSE
=
else
VERBOSE
=
@
endif
# Set -Wno-unused-bug-set-variable for GCC 4.6.0 and greater only
ifneq
($(or
$(findstring
gcc,$(CC)),$(findstring
g++,$(CC))),)
empty
:=
...
...
@@ -125,27 +139,27 @@ DEP := $(OBJ:.o=.d)
%.o
:
%.c
@
echo
"
$(MSG_PREFIX)
\`\`
Compiling:"
$(LOCAL_PATH)
/
$<
@
$(CC)
-c
$(CFLAGS)
$<
-o
$@
$(VERBOSE)
$(CC)
-c
$(CFLAGS)
$<
-o
$@
%.o
:
%.cc
@
echo
"
$(MSG_PREFIX)
\`\`
Compiling:"
$(LOCAL_PATH)
/
$<
@
$(CXX)
-c
$(CXXFLAGS)
$<
-o
$@
$(VERBOSE)
$(CXX)
-c
$(CXXFLAGS)
$<
-o
$@
%.o
:
%.cpp
@
echo
"
$(MSG_PREFIX)
\`\`
Compiling:"
$(LOCAL_PATH)
/
$<
@
$(CXX)
-c
$(CXXFLAGS)
$<
-o
$@
$(VERBOSE)
$(CXX)
-c
$(CXXFLAGS)
$<
-o
$@
%.d
:
%.c
@
echo
"
$(MSG_PREFIX)
\`\`
Generating dependency:"
$(LOCAL_PATH)
/
$<
@
./depends.sh
$(CC)
`
dirname
$*
.c
`
$(CFLAGS)
$*
.c
>
$@
$(VERBOSE)
./depends.sh
$(CC)
`
dirname
$*
.c
`
$(CFLAGS)
$*
.c
>
$@
%.d
:
%.cc
@
echo
"
$(MSG_PREFIX)
\`\`
Generating dependency:"
$(LOCAL_PATH)
/
$<
@
./depends.sh
$(CXX)
`
dirname
$*
.cc
`
$(CXXFLAGS)
$*
.cc
>
$@
$(VERBOSE)
./depends.sh
$(CXX)
`
dirname
$*
.cc
`
$(CXXFLAGS)
$*
.cc
>
$@
%.d
:
%.cpp
@
echo
"
$(MSG_PREFIX)
\`\`
Generating dependency:"
$(LOCAL_PATH)
/
$<
@
./depends.sh
$(CXX)
`
dirname
$*
.cpp
`
$(CXXFLAGS)
$*
.cpp
>
$@
$(VERBOSE)
./depends.sh
$(CXX)
`
dirname
$*
.cpp
`
$(CXXFLAGS)
$*
.cpp
>
$@
-include
$(DEP)
...
...
@@ -155,20 +169,20 @@ depend: $(DEP)
clean
:
@
echo
"
$(MSG_PREFIX)
\`\`
Cleaning up..."
@
rm
-rvf
$(PROG)
lib
$(PROG)
.a
$(OBJ)
$(GARBAGE)
$
(
OBJ:.o
=
.d
)
$(VERBOSE)
rm
-rvf
$(PROG)
lib
$(PROG)
.a
$(OBJ)
$(GARBAGE)
$
(
OBJ:.o
=
.d
)
tags
:
etags
`
find
.
-type
f
-regex
'.*\.\(c\|h\)'
`
$(PROG)
:
$(OBJ)
@
echo
"
$(MSG_PREFIX)
\`\`
Building binary:"
$
(
notdir
$@
)
@
$(LD)
-o
$@
$^
$(LIBS)
$(VERBOSE)
$(LD)
-o
$@
$^
$(LIBS)
lib$(PROG).a
:
$(OBJ)
@
echo
"
$(MSG_PREFIX)
\`\`
Linking:"
$
(
notdir
$@
)
@
ar rv
$@
$?
@
ranlib
$@
$(VERBOSE)
ar rv
$@
$?
$(VERBOSE)
ranlib
$@
docs
:
@
echo
"
$(MSG_PREFIX)
\`\`
Building documentation."
$
(
notdir
$@
)
@
doxygen doxygen.conf
$(VERBOSE)
doxygen doxygen.conf
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