Skip to content

Commit

Permalink
Added support for BPF in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gshimansky committed Sep 20, 2019
1 parent 2e4113c commit 97da4e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ export GO_BUILD_TAGS += mlx
endif
endif

ifndef NFF_GO_NO_BPF_SUPPORT
ifeq (,$(findstring bpf,$(GO_BUILD_TAGS)))
export GO_BUILD_TAGS += bpf
endif
CFLAGS := $(CGO_CFLAGS) -DNFF_GO_SUPPORT_XDP
export CGO_CFLAGS = $(CFLAGS)
$(info CFLAGS = $(CGO_CFLAGS))
endif

.PHONY: all
all: nff-go-nat client/client httpperfserv wrk

Expand Down

0 comments on commit 97da4e8

Please sign in to comment.