Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a18bc5e
authored
Oct 06, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added real Makefile template.
parent
ca8358d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
template/Makefile
+23
-0
No files found.
template/Makefile
View file @
1a18bc5e
NAME
=
$
(
notdir
$(CURDIR)
)
CXX
=
clang++
LD
=
clang++
EMBB_PATH
=
/home/lat39910/promotion/code/embb_build
LDFLAGS
=
-L
$(EMBB_PATH)
/lib
-pthread
LIBS
=
-lembb_dataflow_cpp
-lembb_algorithms_cpp
-lembb_containers_cpp
-lembb_mtapi_cpp
-lembb_mtapi_c
-lembb_base_cpp
-lembb_base_c
CXXFLAGS
=
-Wall
-Werror
-O3
-std
=
c++11
-g
INCLUDE
=
-I
$(EMBB_PATH)
/include
SRC
=
$
(
wildcard
*
.cpp
)
OBJ
=
$
(
patsubst %.cpp,%.o,
$(SRC)
)
.PHONY
:
all clean
$(NAME)
:
$(OBJ)
$(LD)
-o
$@
$(LDFLAGS)
$^
$(LIBS)
%.o
:
%.cpp
$(CXX)
-c
$(CXXFLAGS)
$(INCLUDE)
$^
clean
:
rm
-f
$(NAME)
rm
-f
$(OBJ)
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