From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA18466 for caml-redistribution; Wed, 24 Nov 1999 19:03:27 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA17342 for ; Wed, 24 Nov 1999 11:12:09 +0100 (MET) Received: from parasite.irisa.fr (parasite.irisa.fr [131.254.12.47]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id LAA06364 for ; Wed, 24 Nov 1999 11:12:08 +0100 (MET) Received: from parate.irisa.fr (parate.irisa.fr [131.254.12.25]) by parasite.irisa.fr (8.9.3/8.9.3) with ESMTP id LAA08947 for ; Wed, 24 Nov 1999 11:12:08 +0100 (MET) Sender: weis To: caml-list@inria.fr Subject: OCaml makefile template comments From: David.Mentre@irisa.fr (David =?iso-8859-1?q?Mentré?=) Date: 24 Nov 1999 11:12:07 +0100 Message-ID: User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.