Add flow-based client stats by default for rate limits and organize/clean code.
This commit is contained in:
6
Makefile
6
Makefile
@@ -47,7 +47,7 @@ OBJS = $(BUILDDIR)/$(CONFIGOBJ) $(BUILDDIR)/$(CMDLINEOBJ)
|
||||
|
||||
# LD flags and includes.
|
||||
LDFLAGS += -lconfig -lelf -lz
|
||||
INCS = -I $(LIBBPFSRC)
|
||||
INCS = -I $(SRCDIR) -I $(LIBBPFSRC)
|
||||
INCS += -I /usr/include -I /usr/local/include
|
||||
|
||||
# All chain.
|
||||
@@ -67,8 +67,8 @@ xdpfw_filter:
|
||||
# Utils chain.
|
||||
utils:
|
||||
mkdir -p $(BUILDDIR)/
|
||||
$(CC) -O2 -c -o $(BUILDDIR)/$(CONFIGOBJ) $(SRCDIR)/$(CONFIGSRC)
|
||||
$(CC) -O2 -c -o $(BUILDDIR)/$(CMDLINEOBJ) $(SRCDIR)/$(CMDLINESRC)
|
||||
$(CC) $(INCS) -O2 -c -o $(BUILDDIR)/$(CONFIGOBJ) $(SRCDIR)/$(CONFIGSRC)
|
||||
$(CC) $(INCS) -O2 -c -o $(BUILDDIR)/$(CMDLINEOBJ) $(SRCDIR)/$(CMDLINESRC)
|
||||
|
||||
# LibXDP chain. We need to install objects here since our program relies on installed object files and such.
|
||||
libxdp:
|
||||
|
||||
Reference in New Issue
Block a user