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


             
                                        




                                     
                                         

                                             
                                       


                                                
                                        
                                       
                                   



              

                                                                                                                                             



                               

                         
.PHONY: clean

BIN=analyze
SRCDIRS=libs,frontend,interpret,abstract

SRC= 	main.ml \
		frontend/ast.ml \
		frontend/parser.mly \
		frontend/lexer.mll \
		frontend/ast_printer.ml \
		abstract/formula.ml \
		abstract/formula_printer.ml \
		abstract/transform.ml \
		abstract/environment_domain.ml \
		abstract/apron_domain.ml \
		abstract/abs_interp.ml \
		interpret/interpret.ml \
		interpret/ast_util.ml \
		interpret/rename.ml

all: $(BIN)

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

clean:
	rm $(BIN)
	ocamlbuild -clean