You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
271 B

REMOVE = rm -vf
EXAMPLE_SOURCES = test.c
EXAMPLE_AST = test.ast
.PHONY: lib
all: $(EXAMPLE_AST)
lib:
ocamlbuild -I backend cMain.cma
$(EXAMPLE_AST): $(EXAMPLE_SOURCES)
clang -cc1 -ast-dump test.c > test.ast
clean:
ocamlbuild -clean
$(REMOVE) *~ $(EXAMPLE_AST)