# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.91 95/01/12 16:15:47 kaleb Exp $

LIBDIR=/usr/local/lib/ocaml/
CAMLC=ocamlc
CAMLCOPT=ocamlopt
COMPFLAGS=-g
COMPFLAGSOPT=
CAMLLIBR=ocamllibr
CAMLLEX=ocamllex
CAMLYACC=ocamlyacc
CAMLDEP=ocamldep -pp camlp4o
CPP=/lib/cpp -P
RM=rm -f
CP=cp -p -f
TOP=../.
CONFIG=$(TOP)/config

all::
allopt:opt

# (begin Imakefile)

docteur.OBJS=docteur.cmo
docteur.FILES=$(docteur.OBJS:.cmo=.ml)

all::docteur

depend::
	$(CAMLDEP) $(docteur.FILES) >> Makefile

clean::
	$(RM) docteur

docteur: docteur.cmo
	$(CAMLC) $(LINKFLAGS)  docteur.cmo -o docteur

docteur.BINOBJS=docteur.cmx
docteur.FILES=$(docteur.BINOBJS:.cmx=.ml)

opt::docteur.opt

depend::
	$(CAMLDEP) $(docteur.FILES) >> Makefile

clean::
	$(RM) docteur docteur.opt

docteur.opt: docteur.cmx
	$(CAMLCOPT) $(LINKFLAGSOPT)  docteur.cmx -o docteur.opt
	$(CP) docteur.opt docteur

# (end Imakefile)

clean::
	$(RM) *.cmi *.cmix *.cmo *.cmx *.o a.out* *~ *.opt #*#

depend::

beforedepend::

mfile:
	imake -I$(CONFIG) -DTOPDIR=$(TOP)

makefiles:: beforedepend mfile depend

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

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

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

.ml.cmx:
	$(CAMLCOPT) $(COMPFLAGSOPT) -c $<

# Generated dependencies below

