Ai
1 Star 0 Fork 0

懒死了/pnetlab_wrapper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
Viet Linh 提交于 2022-06-25 23:17 +08:00 . initial commit
CC=gcc
CXX=g++
CFLAGS=-Wall -O2
CXXFLAGS=$(CFLAGS) -Wno-write-strings
INC=include/ts.c include/serial2udp.c include/afsocket.c include/tap.c include/cmd.c include/functions.c include/log.c
DST=/opt/unetlab/wrappers
all:
mkdir -p $(DST)
$(CXX) $(CXXFLAGS) -o $(DST)/simple_forwarder $(INC) simple_forwarder.cpp iol_functions.c
chmod 755 $(DST)/simple_forwarder
chown root:root $(DST)/simple_forwarder
$(CC) $(CFLAGS) -o $(DST)/iol_wrapper $(INC) iol_wrapper.c iol_functions.c
chmod 755 $(DST)/iol_wrapper
chown root:root $(DST)/iol_wrapper
$(CC) $(CFLAGS) -o $(DST)/iol_wrapper_telnet $(INC) iol_wrapper_telnet.c iol_functions.c
chmod 755 $(DST)/iol_wrapper_telnet
chown root:root $(DST)/iol_wrapper_telnet
cp -a unl_profile $(DST)/unl_profile
$(CC) $(CFLAGS) -o $(DST)/qemu_wrapper $(INC) qemu_wrapper.c qemu_functions.c
chmod 755 $(DST)/qemu_wrapper
chown root:root $(DST)/qemu_wrapper
$(CC) $(CFLAGS) -o $(DST)/qemu_wrapper_telnet $(INC) qemu_wrapper_telnet.c qemu_functions.c
chmod 755 $(DST)/qemu_wrapper
chown root:root $(DST)/qemu_wrapper
$(CC) $(CFLAGS) -o $(DST)/dynamips_wrapper $(INC) dynamips_wrapper.c dynamips_functions.c
chmod 755 $(DST)/dynamips_wrapper
chown root:root $(DST)/dynamips_wrapper
$(CC) $(CFLAGS) -o $(DST)/docker_wrapper $(INC) docker_wrapper.c docker_functions.c
chmod 755 $(DST)/docker_wrapper
chown root:root $(DST)/docker_wrapper
cp -a nsenter $(DST)/nsenter
chmod 755 $(DST)/nsenter
chown root:root $(DST)/nsenter
cp -a unl_wrapper.php $(DST)/unl_wrapper
chmod 755 $(DST)/unl_wrapper
chown root:root $(DST)/unl_wrapper
uninstall:
rm -f $(DST)/simple_forwarder
rm -f $(DST)/iol_wrapper
rm -f $(DST)/qemu_wrapper
rm -f $(DST)/dynamips_wrapper
rm -f $(DST)/docker_wrapper
rm -f $(DST)/unl_wrapper
rm -f $(DST)/nsenter
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Coding.com/pnetlab_wrapper.git
git@gitee.com:Coding.com/pnetlab_wrapper.git
Coding.com
pnetlab_wrapper
pnetlab_wrapper
main

搜索帮助