9 Star 34 Fork 10

linuxmail / lib-zo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 687 Bytes
一键复制 编辑 原始数据 按行查看 历史
linuxmail 提交于 2020-10-10 21:45 . resolv
all: libzc_coroutine.a all_test
CC=gcc
CFLAGS= -std=gnu99 -Wall -Winline -I./ -O2 -g -ggdb
libzc_coroutine.a: coroutine.c coroutine.h
@echo build $<
$(CC) -o libzc_coroutine.o -c coroutine.c $(CFLAGS)
ar r libzc_coroutine.a libzc_coroutine.o
ranlib libzc_coroutine.a
rm libzc_coroutine.o
TEST_SRCS = $(wildcard *_test.c)
TEST_OBJS = $(patsubst %.c, %, $(TEST_SRCS))
$(TEST_OBJS):libzc_coroutine.a
$(TEST_OBJS):%:%.c
@echo build $@
$(CC) -o $@ $@.c $(CFLAGS) libzc_coroutine.a -lresolv -lpthread
all_test:$(TEST_OBJS)
clean:
rm -f libzc_coroutine.a $(TEST_OBJS)
rm -f tags gmon.out a.txt
find -type f -name "*.o" -exec rm {} \;
find -type f -name "*~" -exec rm {} \;
C
1
https://gitee.com/linuxmail/lib-zo.git
git@gitee.com:linuxmail/lib-zo.git
linuxmail
lib-zo
lib-zo
master

搜索帮助