Hi,

How can I compile a program which is not C or C++, Fortran...
I have got this rule for a Makefile, but I do not know
how to put this in a Auto system.

.SUFFIXES: .cmi .cmo .cmx .c

%.cmi: %.mli
        $(COMPILE) $<

%.cmo: %.ml
        $(OCAMLC) $(BYTECOMPFLAGS) $<

%.cmx: %.ml
        $(OCAMLOPT) $(OPTCOMPFLAGS) $<

%.ml: %.p4
        $(P4) $< > $@

I have written a macro to test where $(OCAMLC) is.


-- 
Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL)
LIFL, Laboratoire d'Informatique Fondamentale de LILLE
USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex

Reply via email to