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 JAA03918; Thu, 15 Apr 2004 09:33:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA02178 for ; Thu, 15 Apr 2004 09:33:47 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3F7XiYM018434 for ; Thu, 15 Apr 2004 09:33:46 +0200 Received: from [192.168.1.200] (ppp119-162.lns1.syd2.internode.on.net [150.101.119.162]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i3F7XdZq077149; Thu, 15 Apr 2004 17:03:40 +0930 (CST) Subject: Re: [Caml-list] Re: GODI vs. Ocamake From: skaller Reply-To: skaller@users.sourceforge.net To: Kenneth Knowles Cc: caml-list In-Reply-To: <20040415063426.GA24925@tallman.kefka.frap.net> References: <005e01c421f5$2dd45210$ef01a8c0@warp> <1081943666.20677.685.camel@pelican> <20040414164957.GA24089@tallman.kefka.frap.net> <1081991111.20677.877.camel@pelican> <20040415063426.GA24925@tallman.kefka.frap.net> Content-Type: text/plain Message-Id: <1082014418.20677.1125.camel@pelican> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 15 Apr 2004 17:33:38 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamake:01 sourceforge:01 2004:99 knowles:99 2004:99 fragment:01 autoconf:01 opt':01 ocamlc:01 opt':01 ocamlc:01 ocamlopt:01 ocamlopt:01 optimise:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 369 On Thu, 2004-04-15 at 16:34, Kenneth Knowles wrote: > On Thu, Apr 15, 2004 at 11:05:12AM +1000, skaller wrote: > I never said they were perfect. I don't use them. However, I don't know of > anything other than a custom-rolled Makefile that handles such things. Are you > suggesting one? If so, I'm very interested, and I may have missed it in your > previous messages. I'm suggesting a whole class of them: general purpose languages. Here's a fragment from the Felix build script. Who needs autoconf? if "compiler" in options or "bytecode" in options: # invoke ocaml interface compiler OCAML_OBJDIR='src' try: xqt('ocamlopt.opt') OCAMLCC = 'ocamlopt.opt ' OCAMLLEX = 'ocamllex.opt ' OCAMLYACC = 'ocamlyacc ' BYTECODE = 0 except: try: xqt('ocamlopt') OCAMLCC = 'ocamlopt ' OCAMLLEX = 'ocamllex ' OCAMLYACC = 'ocamlyacc ' BYTECODE = 0 except: try: xqt('ocamlc') OCAMLCC = 'ocamlc ' if "debug" in options: OCAMLCC = 'ocamlc -g ' OCAMLLEX = 'ocamllex ' BYTECODE = 1 OCAMLYACC = 'ocamlyacc ' except: BYTECODE = -1 OCAMLCC = '#ocamlc ' OCAMLLEX = '#ocamllex ' OCAMLYACC = '#ocamlyacc ' try: xqt('ocamlc.opt') OCAMLB = 'ocamlc.opt ' except: try: xqt('ocamlc') OCAMLB = 'ocamlc ' except: OCAMLB = '#ocamlc ' if "debug" in options: OCAMLB = OCAMLB + "-g " if "bytecode" in options: OCAMLOPT= OCAMLB + ' -I '+OCAML_OBJDIR+' ' if BYTECODE <> -1: BYTECODE = 1 else: OCAMLOPT= OCAMLCC + ' -I '+OCAML_OBJDIR+' ' if "optimise" in options: OCAMLOPT = OCAMLOPT + "-unsafe -noassert -inline 5 " #OCAMLC=OCAMLB + ' -I '+OCAML_OBJDIR+' -rectypes ' OCAMLC=OCAMLB + ' -I '+OCAML_OBJDIR+' ' if BYTECODE == 0: OCAML_OBJECT_EXTENSION = '.cmx' OCAML_LIB_EXTENSION = '.cmxa' else: OCAML_OBJECT_EXTENSION = '.cmo' OCAML_LIB_EXTENSION = '.cma' # where the ocaml is installed result,x = get_stdout(OCAMLC + " -where") OCAML_INCLUDE_DIRECTORY= x[0][0:-1] print "OCAML at",OCAML_INCLUDE_DIRECTORY -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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