-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from vjardin/clang
- Loading branch information
Showing
4 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,8 @@ git clone --recursive [email protected]:acassen/gtp-guard.git | |
cd gtp-guard | ||
make -j $(nproc) | ||
``` | ||
|
||
gcc is the default compiled. Should you prefer the usage of clang, then use: | ||
``` | ||
CC=clang make -j $(nproc) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
# Copyright (C) 2023 Alexandre Cassen, <[email protected]> | ||
# | ||
|
||
CC = gcc | ||
CC ?= gcc | ||
INCLUDES = -I. | ||
CFLAGS = -g -O2 $(INCLUDES) -Wall -Wunused -Wstrict-prototypes | ||
#DEFS = -D_DEBUG_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
# Copyright (C) 2023 Alexandre Cassen, <[email protected]> | ||
# | ||
|
||
CC = gcc | ||
CC ?= gcc | ||
INCLUDES = -Iinclude -I../lib -I../libbpf/src -I../libbpf/src/uapi | ||
CFLAGS = -g -O2 -ggdb $(INCLUDES) -Wall -Wunused -Wstrict-prototypes -D_GNU_SOURCE | ||
#DEFS = -D_DEBUG_ | ||
|