summaryrefslogblamecommitdiff
path: root/Makefile
blob: 62245ae4e3fe7af8d80e3dadcd03b5c58d01763a (plain) (tree)
1
2
3
4
5
6
7
8
9


             
                               




                                     

                                         



                                            










                                                                                                                            
.PHONY: clean

BIN=analyze
SRCDIRS=libs,frontend,interpret

SRC= 	main.ml \
		frontend/ast.ml \
		frontend/parser.mly \
		frontend/lexer.mll \
		frontend/ast_printer.ml \
		interpret/data.ml \
		interpret/bad_interpret.ml \
		interpret/interface.ml \
		interpret/interpret2.ml \
		interpret/rename.ml

all: $(BIN)

$(BIN): $(SRC)
	ocamlbuild -Is $(SRCDIRS) -cflags '-I +zarith -I +apron -I +gmp' \
			-lflags '-I +zarith -I +apron -I +gmp zarith.cmxa bigarray.cmxa gmp.cmxa apron.cmxa polkaMPQ.cmxa' \
		    main.native
	mv main.native $(BIN)

clean:
	rm -rf _build