1 Star 3 Fork 4

siasjack / libthpool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
makefile 546 Bytes
一键复制 编辑 原始数据 按行查看 历史
siasjack 提交于 2019-11-12 22:20 . first commit
CC:=gcc
target := threadpool_test
OBJS:=libthpool.o test.o
libs:=libthpool.so libthpool.a
LIBS_OBJS:=libthpool.o
CFLAGS+= -g -Wall -Werror -W -Wshadow -Wwrite-strings -lpthread -Wstrict-prototypes -Wextra -fPIC
all: clean $(target) $(libs)
libthpool.a:$(LIBS_OBJS)
$(AR) rcs $@ $^
libthpool.so:$(LIBS_OBJS)
$(CC) $(CFLAGS) -shared $^ -o $@
$(target): $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -o $(target)
%.o:%.c
$(CC) -c $^ -g -Wall -Werror -W -Wshadow -Wwrite-strings -Wstrict-prototypes -Wextra -fPIC
clean:
rm -f *.o $(target) *.a *.so
C
1
https://gitee.com/siasjack/libthpool.git
git@gitee.com:siasjack/libthpool.git
siasjack
libthpool
libthpool
master

搜索帮助