English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
OCaml makefile template comments
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-11-24 (18:03)
From: David.Mentre@i...
Subject: OCaml makefile template comments
I've used the generic OCaml Makfile (at:
http://caml.inria.fr/FAQ/Makefile_ocaml.tpl) and I have 2 comments:

 1. target $(EXEC).opt

$(EXEC).opt: $(OPTOBJS)
        $(CAMLOPT) -o $(EXEC) $(LIBS:.cma=.cmxa) $(OPTOBJS)
                      ^^^^^^I think it is $(EXEC).opt here, no?

 2. Makefile with subdirectories. This makefile is not made to allow
    subdirectories. I've managed to use it for a subdir by adding a '-I
    subdir' option to $(CAMLC) and $(CAMLOPT) and modifying targets
    depend:, .depend: (to add -I option) and clean:.

    Does anybody know a good makefile model to compile in subdirs
    (without recursive makefile) for OCaml?

Best regards,
 David.Mentre@irisa.fr -- http://www.irisa.fr/prive/dmentre/
 Opinions expressed here are only mine.