List Info

Thread: "ocaml_beginners"::[] OCamlMakefile for Jon's interpreter ?




"ocaml_beginners"::[] OCamlMakefile for Jon's interpreter ?
country flaguser name
France
2007-05-10 14:17:04

Hi !

It's the first time I try to use Markus Mottl OCamlMakefile by myself.

I wanted to apply this tool in order to build :
http://www.ffconsultancy.com/ocaml/benefits/interpreter.html

A simple question : what Makefile to use ?

I tried this erroneous one :

# Path on my Debian Etch
OCAMLMAKEFILE := /usr/share/ocaml-tools/OCamlMakefile

# The .ml file I extracted from Jon's html (Did this correctly, sure.)
SOURCES := interpreter.ml
USE_CAMLP4 := yes
RESULT := interpreter
include $(OCAMLMAKEFILE)

I do not report errors cos I'm sure you'll quickly detect what's wrong ...

Cheers

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] OCamlMakefile for Jon's interpreter ?
country flaguser name
France
2007-05-17 01:17:45

The program compiles fine with this command line :

ocamlopt.opt -pp camlp4o -o interpreter interpreter.ml

Please what must be the Makefile to use ocaml-make instead of the previous line, for this one-file building that needs camlp4 ?

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] OCamlMakefile for Jon's interpreter ?
country flaguser name
France
2007-05-17 02:39:36

"Le petit prince ne renonçait jamais à une question, une fois qu'il l'avait posée."

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] OCamlMakefile for Jon's interpreter ?
country flaguser name
France
2007-05-17 03:20:14

http://www.ocaml-tutorial.org/compiling_with_gnu_make

Thanks to Rich Pages of Merjistuto !

This Makefile works better :

RESULT = interpreter
SOURCES = interpreter.ml

PP = camlp4o
export PP

OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile
include $(OCAMLMAKEFILE)

Remains to put "nc" somewhere - ? - to compile to native code.

Fabrice

__._,_.___
.

__,_._,___
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )