CAML = ocamlc
LUCY = lucyc
COMPILER_DIR = ../../compiler
LUCY = $(COMPILER_DIR)/lucycomp -O ../../lib/lucy_pervasives
LIBDIR = ${HOME}/lib/lucid-synchrone

OBJ_ML = xsimul.cmi xsimul.cmo graph.cmo graph.cmi 

all: $(OBJ_ML) xsimul.lzi graph.lzi

install:
	cp -f $(OBJ_ML) xsimul.lzi graph.ls graph.lzi $(LIBDIR)

uninstall:
	(cd $(LIBDIR);rm -f $(OBJ_ML) xsimul.lzi graph.lzi \
                            xsimul.cmi xsimul.cmo xsimul.lzi)

graph.cmo: graph.ls xsimul.lzi
	$(LUCY) -c graph.ls
	$(CAML) -c -g graph.ml

clean:
	rm -f *.cmo *.cmi *.cmx *.lzi

.SUFFIXES : .mli .ml .cmi .cmo .lzi

.ml.cmo:
	$(CAML) -c -g $<
.mli.cmi:
	$(CAML) -c -g $<
.mli.lzi:
	$(LUCY) -c $<



