4 Star 1 Fork 2

Gitee 极速下载 / Async-Server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/liangdong/Server
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
THIRD_LIBS=-levent
LIBS=-ldl
CFLAGS=-I./include -I./third/http-parser/
server:src/server.o src/listener.o src/client.o src/main.o src/plugin.o src/http.o third/http-parser/libhttp.a
g++ -o $@ src/server.o src/listener.o src/client.o src/main.o src/plugin.o src/http.o third/http-parser/libhttp.a $(THIRD_LIBS) $(LIBS)
third/http-parser/libhttp.a:third/http-parser/http_parser.o
ar -r $@ $<
third/http-parser/http_parser.o:third/http-parser/http_parser.c third/http-parser/http_parser.h
g++ -o $@ -fPIC -c $< $(CFLAGS)
src/server.o:src/server.cpp include/server.h
g++ -o $@ -c $< $(CFLAGS)
src/listener.o:src/listener.cpp include/listener.h include/util.h
g++ -o $@ -c $< $(CFLAGS)
src/client.o:src/client.cpp include/client.h include/util.h ./include/http.h
g++ -o $@ -c $< $(CFLAGS)
src/main.o:src/main.cpp include/server.h
g++ -o $@ -c $< $(CFLAGS)
src/plugin.o:src/plugin.cpp include/plugin.h
g++ -o $@ -c $< $(CFLAGS)
src/http.o:src/http.cpp include/http.h third/http-parser/http_parser.h include/client.h
g++ -o $@ -c $< $(CFLAGS)
clean:
rm -f src/*.o server
1
https://gitee.com/mirrors/Async-Server.git
git@gitee.com:mirrors/Async-Server.git
mirrors
Async-Server
Async-Server
master

搜索帮助