Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
b0f7f760
Commit
b0f7f760
authored
Jun 19, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add include flags to clang command
parent
fe7c3452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
packet-exchange/build/Makefile
packet-exchange/build/Makefile
+7
-3
No files found.
packet-exchange/build/Makefile
View file @
b0f7f760
...
...
@@ -21,22 +21,26 @@ else
CFLAGS
=
-Og
-g
-Wall
-Wextra
endif
IFLAGS
=
-I
$(SRCDIR)
CFLAGS
+=
-MD
-MP
CFLAGS
+=
-I
$(SRCDIR)
CFLAGS
+=
-std
=
gnu99
LLIBS
=
-pthread
ifneq
($(WITH_XDP),)
CFLAGS
+=
-D
WITH_XDP
-I
${HOME}
/libbpf/include
CFLAGS
+=
-D
WITH_XDP
IFLAGS
+=
-I
${HOME}
/libbpf/include
LDIRS
+=
-L
${HOME}
/libbpf/src
LLIBS
+=
-lelf
-l
:libbpf.a
endif
CFLAGS
+=
$(IFLAGS)
vpath
%.c
$(SRCDIR)
xdp_kern.o
:
xdp_kern.c
clang
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll
$^
clang
$(IFLAGS)
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll
$^
llc
-march
=
bpf
-filetype
=
obj
-o
$@
xdp_kern.ll
ifneq
($(WITH_XDP),)
...
...
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