Simple support for nftables (#1117)
* Simple support for nftables Co-authored-by: Chen Zhenge <Mr.ChenWithCapsule@outlook.com>
This commit is contained in:
@@ -38,10 +38,15 @@ else
|
||||
override LDFLAGS += -lssl -lcrypto -lpthread -ldl
|
||||
endif
|
||||
|
||||
ifdef WITH_NFTSET
|
||||
override CFLAGS += -DWITH_NFTSET
|
||||
override LDFLAGS += -lnftables
|
||||
endif
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
|
||||
$(BIN) : $(OBJS)
|
||||
$(CC) $(OBJS) -o $@ $(LDFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user