加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Your Name 提交于 2021-08-15 16:37 . 1
# LIBS = unix,str,nums
# SUBMIT := lexer.mll parser.mly frontend.ml studenttests.ml
# HWNAME := hw04
# TIMESTAMP := $(shell /bin/date "+%Y-%m-%d-%H:%M:%S")
# ZIPNAME := $(HWNAME)-submit($(TIMESTAMP)).zip
# all: main.native
# .PHONY: test
# test: main.native
# ./main.native --test
# .PHONY: main.native
# main.native:
# ocamlbuild -cflag -bin-annot -cflag -g -lflag -g -libs $(LIBS) main.native -use-menhir -yaccflag --explain
# .PHONY: main.byte
# main.byte:
# ocamlbuild -cflag -bin-annot -cflag -g -lflag -g -libs $(LIBS) main.byte -use-menhir -yaccflag --explain
# zip: $(SUBMIT)
# zip '$(ZIPNAME)' $(SUBMIT)
# .PHONY: clean
# clean:
# ocamlbuild -clean
# rm -rf output a.out
LIBS = unix,str,nums
OCB_FLAGS = -libs $(LIBS) -I src -use-ocamlfind -cflag -bin-annot -package extlib -use-menhir -yaccflag --explain
OCB = ocamlbuild $(OCB_FLAGS)
native:
$(OCB) main.native
clean:
$(OCB) -clean && rm output/*
test: native
$(OCB) -package oUnit lexer_test.native \
graph_test.native \
make_graph_test.native \
liveness_test.native
testcases: native
testcases/runtests.sh main.native
.PHONY: native clean test testcases
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化