~ubuntu-branches/ubuntu/intrepid/facile/intrepid

« back to all changes in this revision

Viewing changes to examples/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Steffen Joeris
  • Date: 2005-11-22 19:18:05 UTC
  • Revision ID: james.westby@ubuntu.com-20051122191805-qys7cg0e9np0hx6j
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: Makefile.facile,v 1.2 2003/08/06 14:01:31 brisset Exp $
 
2
 
 
3
# Generic Makefile for single files using FaCiLe. Allow to produce
 
4
# file.out (ocamlc) and file.opt (ocamlopt) from file.ml while linking
 
5
# with the FaCiLe library
 
6
 
 
7
FACILEDIR= +facile
 
8
INCLUDES= -I $(FACILEDIR)
 
9
 
 
10
OCAMLC= ocamlc -g $(INCLUDES)
 
11
OCAMLMLI= ocamlc $(INCLUDES)
 
12
OCAMLOPT= ocamlopt $(INCLUDES)
 
13
OCAMLDEP= ocamldep $(INCLUDES)
 
14
 
 
15
.SUFFIXES:
 
16
.SUFFIXES: .ml .mli .mly .mll .cmi .cmo .cmx .out .opt .p.cmx .popt
 
17
 
 
18
.ml.cmo :
 
19
        $(OCAMLC) -c $<
 
20
.mli.cmi :
 
21
        $(OCAMLMLI) -c $<
 
22
.ml.cmx :
 
23
        $(OCAMLOPT) -c $<
 
24
# To produce profiled objects
 
25
.ml.p.cmx :
 
26
        $(OCAMLOPT) -p -c $<
 
27
        mv $*.cmx $@
 
28
        mv $*.o $*.p.o
 
29
.cmo.out :
 
30
        $(OCAMLC) -o $@ facile.cma $<
 
31
# To produce profiled binaries
 
32
.p.cmx.popt :
 
33
        $(OCAMLOPT) -p -o $@ facile.p.cmxa $<
 
34
.cmx.opt :
 
35
        $(OCAMLOPT) -o $@ facile.cmxa $<
 
36
.mly.ml :
 
37
        ocamlyacc $<
 
38
.mll.ml :
 
39
        ocamllex $<
 
40
 
 
41
clean:
 
42
        \rm -f *.cmo *.cmi *.cmx *.o *~ *.opt *.out .depend *.popt
 
43
 
 
44
.depend:
 
45
        $(OCAMLDEP) *.mli *.ml > $@
 
46
 
 
47
include .depend