代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。