# Ensure the correct enviornment exists
ifndef CILPATH
$(error Must set envioronment CILPATH to point to the root of your CIL installation)
endif

TARGET=x86_LINUX

OCAMLC=ocamlc

LIBDIRS=unix.cma str.cma cil.cma
INCDIRS = $(CILPATH)/obj/x86_LINUX

OCAMLFLAGS=-g $(LIBDIRS) -I $(INCDIRS)    

null: null.cmo
	$(OCAMLC) -o null $(OCAMLFLAGS) $(LIBS) null.cmo

.SUFFIXES: .ml .mli .cmo

.ml.cmo:
	$(OCAMLC) $(OCAMLFLAGS) -c $<

clean:
	rm null null.cmo null.cmi
