# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
CAMLC=camlc
COMPFLAGS=-W
CAMLLIBR=camllibr
CAMLLEX=camllex
CAMLYACC=camlyacc
CPP=/lib/cpp -P
CAMLDEP=camldep
RM=rm -f
TOP=../.
CONFIG=$(TOP)/config
all::
# (begin Imakefile)
all::calc
calc: lexer.zo parser.zo calc.zo
$(CAMLC) $(LINKFLAGS) lexer.zo parser.zo calc.zo -o calc
clean::
$(RM) calc
parser.ml parser.mli: parser.mly
@$(RM) parser.ml parser.mli
$(CAMLYACC) parser.mly
@chmod a-w parser.ml parser.mli
clean::
$(RM) parser.ml parser.mli
beforedepend:: parser.ml parser.mli
lexer.ml: lexer.mll
@$(RM) lexer.ml
$(CAMLLEX) lexer.mll
@chmod a-w lexer.ml
clean::
$(RM) lexer.ml
beforedepend:: lexer.ml
# (end Imakefile)
clean::
$(RM) *.zi *.zix *.zo *~ #*#
beforedepend::
makefile: beforedepend
imake -I$(CONFIG) -DTOPDIR=$(TOP)
$(CAMLDEP) *.mli *.ml >> Makefile
makefiles:: makefile
.SUFFIXES: .mli .zi .ml .zo
.mli.zi:
$(CAMLC) $(COMPFLAGS) -c $<
.ml.zo:
$(CAMLC) $(COMPFLAGS) -c $<
# Generated dependencies below
calc.zo: parser.zi lexer.zo
lexer.zo: parser.zi
parser.zo: parser.zi
syntax highlighted by Code2HTML, v. 0.9.1