1 Star 0 Fork 0

codergeek/ConvertFlow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
codergeek 提交于 2024-12-19 17:59 . refactor code
# 默认目标,执行make时会执行这个目标
all: build.convert-tunnel-sender build.convert-tunnel-receiver
before.build:
go mod download && go mod vendor
build.test:
@echo "Building test binaries..."
@go build -o ospf-client-gopacket test/ospf/client/client.go
@go build -o ospf-server-gopacket test/ospf/server/server.go
@go build -o ospf-client test/ospf_raw_socket/client/client_linux.go
@go build -o ospf-server test/ospf_raw_socket/server/server_linux.go
build.convert-tunnel-sender:
@echo "build in ${PWD}";go build -o tunnel-sender cmd/client/main.go;sudo setcap cap_net_raw+eip tunnel-sender
build.convert-tunnel-receiver:
@echo "build in ${PWD}";go build -o tunnel-receiver cmd/server/server.go;sudo setcap cap_net_raw+eip tunnel-receiver
# 清理编译产生的文件
clean:
@echo "Cleaning..."
@rm -f tunnel-sender tunnel-receiver ospf-client ospf-server
@rm -rf vendor
@echo "Clean complete"
.PHONY: all before.build build.test build.convert-tunnel-sender build.convert-tunnel-receiver clean
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/codergeek/convert-flow.git
[email protected]:codergeek/convert-flow.git
codergeek
convert-flow
ConvertFlow
master

搜索帮助