* New Makefile for OCAML
@ 1999-06-06 15:26 Markus Mottl
0 siblings, 0 replies; only message in thread
From: Markus Mottl @ 1999-06-06 15:26 UTC (permalink / raw)
To: OCAML
Hello,
I have released a new version of "OcamlMakefile" just recently - it has
greatly improved over the last release!
Some new features:
* Dependency calculation should now be 100% correct (well-tested) -
even for automatically generated sources. As far as I know there is
no other generic Makefile for OCAML that can do this correctly.
* It can now automatically handle IDL-files (.idl) together with C-files
* Distribution comes with some examples
Some of the older and now improved features include:
* byte-code or native-code generation
* builds executables or libraries on request
e.g.:
make bc -> makes byte-code executable
make ncl -> makes native-code library
* "ocamllex" (.mll) and "ocamlyacc" (.mly) support
* easy thread support: just say "THREADS = yes"
* effortless linking against OCAML- and other libraries.
e.g.:
LIBS = str unix graphics
LIBDIRS = /usr/X11/lib
CLIBS = X11
The usability is also much better now - it is sufficient to put the
OcamlMakefile somewhere on the system and make use of its features by
simply "including" it from other Makefiles (see README for details).
Here an example Makefile of a fairly complex project (taken from the
example "calc" in the distribution):
---------------------------------------------------------------------------
OCAMLMAKEFILE = ../OcamlMakefile
SOURCES = test_impl.c test.idl parser.mly lexer.mll calc.ml
RESULT = calc
THREADS = yes
-include $(OCAMLMAKEFILE)
---------------------------------------------------------------------------
This example makes use of a lot of features that normally require somewhat
complex compilation and linkage, but OcamlMakefile can handle all these
steps automatically. Because dependency calculation is correct in contrast
to most other solutions, rebuild times are minimal.
I hope that this project will relieve your from the effort of managing
the compilation process of your sources.
Beginners who are not so familiar with writing Makefiles will have a big
advantage, especially if they want to explore the advanced development
tools of OCAML (ocamllex, ocamlyacc, camlidl).
Read the README of the distribution for more details!
Here the URL (free download):
http://miss.wu-wien.ac.at/~mottl/ocaml_sources/intro.html
Get "ocaml_make.tar.gz" there or browse the distribution... Enjoy it!
Best regards,
Markus Mottl
--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-06-11 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-06 15:26 New Makefile for OCAML Markus Mottl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox