当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
73 Star 131 Fork 43

yuanhack / sarudp
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
yuanhack 提交于 2015-12-21 17:34 . -yhsocket
CC = gcc
CFLAGS += -g
CFLAGS += -D_REENTRANT -Wall
CFLAGS += -O0
#CFLAGS += -Wno-unused-variable
#CFLAGS += -Wno-unused-but-set-variable
CFLAGS += -Dpromiscuous_mode
#CFLAGS += -DSU_DEBUG_RTT
#CFLAGS += -DSU_DEBUG_PEER_RECV
#CFLAGS += -DSU_DEBUG_PEER_RESEND
#CFLAGS += -DSU_DEBUG_TIMEVERBOSE
#CFLAGS += -DSU_DEBUG_LIST
#CFLAGS += -DSU_DEBUG_RBTREE
CFLAGS += -DSU_DEBUG_IP6FULL
CLIBS = -lpthread
RANLIB = ranlib
CLEANFILES = core core.* *.core *.o temp.* typescript* *.lc *.lh
PROGS = su_peer_client su_peer_server su_serv_server
all: ${PROGS}
.PHONY: all clean clear cmake remake
su_peer_client: su_peer_client.o sarudp_peer.o sarudp_comm.o rtt.o domain_parse.o wrapfunc.o \
yhevent.o yherror.o yharguments.o yhtime.o yhrbtree.o
${CC} ${CFLAGS} -o $@ $^ ${CLIBS}
su_peer_server: su_peer_server.o sarudp_peer.o sarudp_comm.o rtt.o domain_parse.o wrapfunc.o \
yhevent.o yherror.o yharguments.o yhtime.o yhrbtree.o yhdaemon.o
${CC} ${CFLAGS} -o $@ $^ ${CLIBS}
su_serv_server: su_serv_server.o sarudp_serv.o sarudp_comm.o rtt.o domain_parse.o wrapfunc.o \
yhevent.o yherror.o yharguments.o yhtime.o yhrbtree.o yhdaemon.o
${CC} ${CFLAGS} -o $@ $^ ${CLIBS}
clean:
rm -f ${PROGS} ${CLEANFILES}
clear:
clear
cmake:
make clear
make
remake:
make clear
make clean
make all
C
1
https://gitee.com/yuanhack/sarudp.git
git@gitee.com:yuanhack/sarudp.git
yuanhack
sarudp
sarudp
master

搜索帮助