caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* OCaml makefile template comments
@ 1999-11-24 10:12 David Mentré
  1999-11-24 20:49 ` Markus Mottl
  2000-01-09  0:22 ` Porting OCaml to A Custom OS Ravi Chamarty
  0 siblings, 2 replies; 6+ messages in thread
From: David Mentré @ 1999-11-24 10:12 UTC (permalink / raw)
  To: caml-list

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
-- 
 David.Mentre@irisa.fr -- http://www.irisa.fr/prive/dmentre/
 Opinions expressed here are only mine.




^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <Pine.LNX.4.10.10002231549560.5472-100000@george.ittc.ukans.edu>]

end of thread, other threads:[~2000-02-25 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-24 10:12 OCaml makefile template comments David Mentré
1999-11-24 20:49 ` Markus Mottl
1999-11-25 12:38   ` Recursive Makefile (was: Re: OCaml makefile template comments) David Mentré
2000-01-09  0:22 ` Porting OCaml to A Custom OS Ravi Chamarty
2000-01-10 13:14   ` Xavier Leroy
     [not found] <Pine.LNX.4.10.10002231549560.5472-100000@george.ittc.ukans.edu>
2000-02-25 14:05 ` Porting OCaml to a " Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).