From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id GAA05856; Fri, 4 Jul 2003 06:11:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 GAA04764 for ; Fri, 4 Jul 2003 06:11:35 +0200 (MET DST) Received: from axiom.anu.edu.au (axiom.anu.edu.au [150.203.127.200]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h644BXT27798 for ; Fri, 4 Jul 2003 06:11:33 +0200 (MET DST) Received: from pulp.anu.edu.au (pulp.anu.edu.au [150.203.126.25]) by axiom.anu.edu.au (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id h644BVX08482 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 4 Jul 2003 14:11:31 +1000 Received: from pulp.anu.edu.au (localhost [127.0.0.1]) by pulp.anu.edu.au (8.12.9/8.12.9/Debian-4) with ESMTP id h644BZPZ020046 for ; Fri, 4 Jul 2003 14:11:35 +1000 Received: (from abate@localhost) by pulp.anu.edu.au (8.12.9/8.12.9/Debian-4) id h644BXF1020043 for caml-list@inria.fr; Fri, 4 Jul 2003 14:11:33 +1000 Date: Fri, 4 Jul 2003 14:11:33 +1000 From: Pietro Abate To: caml-list@inria.fr Subject: [Caml-list] makefile and obj deps Message-ID: <20030704041133.GA19501@anu.edu.au> Mail-Followup-To: Pietro Abate , caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: GNU/Linux X-Organization: Research School of Information Science and Engineering (Australian National University) User-Agent: Mutt/1.5.4i X-Spam: no; 0.00; pietro:01 abate:01 deps:01 dynlink:01 generic:01 ocamldep:01 camlp:01 ocamlc:01 cmo:01 ocaml:01 makefile:02 mottl:02 compile:02 module:03 obj:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi all, I've a problem that I feel can be solved with two lines of makefile... my program uses dynlink to load on the fly byte-code. This .cmo are small programs that use a library and have depencies betwwen them. I'm also using ocamlmakefile and I've the feeling that this problem has already been solved by Markus Mottl in it. to cut it short: give a list of files, say: SMALLSOURCE= a.ml b.ml c.ml d.ml I want to have a generic entry in my makefile that builds all cmo and cmi files (following the dependency list). I'd like to write something like: $(SMALLSOURCE): $(OCAMLDEP) $(CAMLP$OPT) $@ # build the dep list $(OCAMLC) $(CAMLP$OPT) -c $@ # compile the module using camlp4 in the end I'd like to compile the main program and library once (make all) and having a call for ever module (make a b c ...) that builds the module and all its dependency. ... this is not a really ocaml related problem, but I hope somebody can still help me... p -- Civilization advances by extending the number of important operations which we can perform without thinking. (Alfred North Whitehead) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners