2 Star 1 Fork 1

Chan-i / cypher_parser_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 562 Bytes
一键复制 编辑 原始数据 按行查看 历史
foxi 提交于 2023-01-10 16:19 . remove compile warnings on MacOS
.PHONY: clean
CC := gcc
OBJS := parser.o scanner.o ast.o print.o delete.o module.o main.o
OPTIONS := -Wmissing-prototypes -Wpointer-arith \
-Wendif-labels -Wmissing-format-attribute \
-Wformat-security -Wformat
DEBUG := -g -O0
CFLAGS := ${DEBUG} -U_YYDEBUG -U__YYEMIT ${OPTIONS}
run: ${OBJS}
$(CC) ${CFLAGS} -g -o $@ $+
clean:
rm -f run *.o *.backup parser.[ch] scanner.[ch] *.output .*.swp
parser.o: scanner.c
scanner.c: scanner.l
flex -b -CF -p --header-file=scanner.h --outfile=$@ $^
parser.c: parser.y
bison -Wno-deprecated -vd $^ -o $@
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/Moeah/cypher_parser_demo.git
git@gitee.com:Moeah/cypher_parser_demo.git
Moeah
cypher_parser_demo
cypher_parser_demo
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891