include ../../../config

TACCMO = ml_import.cmo mlterm.cmo fw_env.cmo fwtoml.cmo \
         genpp.cmo optimise.cmo caml.cmo haskell.cmo ocaml.cmo

TACVO = Extraction.vo

LIBS=-I ../../../states -I ../../../tactics -I ../../../theories/INIT
FLAGS=$(LIBS) -nolib
ALLFILES=$(TACCMO) $(TACCMO:.cmo=.cmi) $(TACVO)

include ../Makefile.tactics

install-library:
	$(INSTALL) -d $(ALLFILES) $(COQLIB)/tactics/contrib/extraction


ZLIBS=-I ../../../src/lib/util -I ../../../src/meta \
      -I ../../../src/constr -I ../../../src/typing -I ../../../src/proofs \
      -I ../../../src/env -I ../../../src/tactics -I ../../../src/parsing

COQMKTOP=$(COQTOP)/bin/$(ARCH)/coqmktop -srcdir ../../..

debug: coq-debug-extraction.out

coq-debug-extraction.out: $(TACCMO)
	$(COQMKTOP) -o coq-debug-extraction.out -g $(ZLIBS) $(TACCMO)

bench:
	(cd bench-files; make all)

include .depend
