Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Markus Mottl <mottl@miss.wu-wien.ac.at>
To: caml-list@inria.fr (OCAML)
Subject: New Makefile for OCAML
Date: Sun, 6 Jun 1999 16:26:31 +0100 (MET DST)	[thread overview]
Message-ID: <199906061426.QAA02401@miss.wu-wien.ac.at> (raw)

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




                 reply	other threads:[~1999-06-11 22:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199906061426.QAA02401@miss.wu-wien.ac.at \
    --to=mottl@miss.wu-wien.ac.at \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox