Skip to content

Commit

Permalink
Merge pull request #30 from vjardin/verbose_bpf
Browse files Browse the repository at this point in the history
Verbose bpf + allow define-able prefix
  • Loading branch information
acassen authored Aug 3, 2024
2 parents 519feca + 83ebfd0 commit 6660d4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ VERSION := $(shell cat VERSION)
TARBALL = $(EXEC)-$(VERSION).tar.xz
TARFILES = AUTHOR VERSION LICENSE README.md bin src lib Makefile libbpf

prefix = /usr/local
exec_prefix = ${prefix}
sbindir = ${exec_prefix}/sbin
sysconfdir = ${prefix}/etc
prefix ?= /usr/local
exec_prefix ?= ${prefix}
sbindir ?= ${exec_prefix}/sbin
sysconfdir ?= ${prefix}/etc
init_script = etc/init.d/gtp-guard.init
conf_file = etc/gtp-guard/gtp-guard.conf

Expand Down Expand Up @@ -66,7 +66,7 @@ uninstall:
rm -f $(sbindir)/$(EXEC)

install:
install -d $(prefix)
install -d $(sbindir)
install -m 700 $(BIN)/$(EXEC) $(sbindir)/$(EXEC)-$(VERSION)
ln -sf $(sbindir)/$(EXEC)-$(VERSION) $(sbindir)/$(EXEC)

Expand Down
1 change: 1 addition & 0 deletions src/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ clean:
dependencies: verify_cmds verify_target_bpf
verify_cmds: $(CLANG) $(LLC)
@for TOOL in $^ ; do \
which $${TOOL} ;\
if ! (which -- "$${TOOL}" > /dev/null 2>&1); then \
echo "*** ERROR: Cannot find LLVM tool $${TOOL}" ;\
exit 1; \
Expand Down

0 comments on commit 6660d4c

Please sign in to comment.