# Makefile de MLSRC/CC/CC_base_modulaire

SOURCES = outils.ml representation.ml circuits.ml \
          affichage_base.ml affichage_jeu.ml action.ml \
          lancement.ml
OBJS = $(SOURCES:.ml=.cmo)
EXEC = sc1
CAMLC = ocamlc
CAMLDEP = ocamldep
LIBS = graphics.cma unix.cma

all: .depend $(EXEC)

$(EXEC): $(OBJS)
$(CAMLC) -o $(EXEC) $(LIBS) $(OBJS)

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

.ml.cmo:
$(CAMLC) -c $<

.mli.cmi:
$(CAMLC) -c $<

clean:
rm -f .depend $(OBJS) $(SOURCES:.ml=.cmi) $(EXEC) *~

.depend: $(SOURCES)
$(CAMLDEP) *.mli *.ml > .depend

include .depend