71 Star 156 Fork 50

brisk/conf-c

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 557 Bytes
一键复制 编辑 原始数据 按行查看 历史
brisk 提交于 2017-12-28 15:47 +08:00 . fix bugs
all:libconf.a
libconf.a:conf.o stack.o hash.o
mkdir -p include/conf-c lib
cp src/conf.h include/conf-c/
ar rcs libconf.a conf.o stack.o hash.o
cp libconf.a lib/
conf.o:src/conf.h src/conf.c
gcc -c src/conf.c -O2 -Wall
stack.o:src/stack/stack.h src/stack/stack.c
gcc -c src/stack/stack.c -O2 -Wall
hash.o:src/hash/hash.h src/hash/hash.c
gcc -c src/hash/hash.c -O2 -Wall
clean:
rm -rfv include lib *.o *.a
install:
cp -r include/conf-c /usr/include/
cp lib/libconf.a /usr/lib/
uninstall:
rm -rfv /usr/include/conf-c/ /usr/lib/libconf.a
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/brisk/conf-c.git
git@gitee.com:brisk/conf-c.git
brisk
conf-c
conf-c
master

搜索帮助