Skip to content
/ libnap Public

A Cross-Platform LIBrary of Network APplication tools

License

Notifications You must be signed in to change notification settings

Vssblt/libnap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIBNAP

A Cross-Platform LIBrary of Network APplication tools





1. 构建和安装

Linux (Make)


$ git clone https://github.com/staticn/libnap.git
$ cd ./libnap
$ make
$ make install

如果编译成功,项目目录下output文件夹里会有静态链接库文件


Windows (Visual Studio)


$ git clone https://github.com/staticn/libnap.git
$ cd ./libnap/win
$ ./libnap.sln

如果编译成功,则项目目录下的output文件夹将具有静态链接库文件和头文件。



2. 其他内容

在Linux中,可以使用以下make命令根据不同需求进行编译


make / make all : 编译libnap 编译测试文件 并运行测试
make build : 编译libnap 编译测试文件
make test : 编译测试文件
make libnap : 编译libnap
make clean : 清除编译的文件
make fast : 启用多核快速安静编译

平台要求


Windows
Visual Studio 2019
Windows SDK Version >= 10.0
Linux
G++ Version >= 4.8.5
Make Version >= 3.8