~ubuntu-branches/ubuntu/oneiric/ocsigen/oneiric

« back to all changes in this revision

Viewing changes to xmlp4/oldocaml/exemple/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stephane Glondu
  • Date: 2009-07-02 10:02:08 UTC
  • mfrom: (1.1.9 upstream) (4.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090702100208-n158b1sqwzn0asil
Tags: 1.2.0-2
Fix build on non-native architectures

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
NAME = essai
2
 
NAME2 = essai2
3
 
 
4
 
FILES = essai2.ml essai.ml
5
 
 
6
 
CAMLC = ocamlc $(LIB)
7
 
CAMLOPT = ocamlopt $(LIB)
8
 
CAMLDEP = ocamldep
9
 
CAMLP4 = camlp4
10
 
LIB = -I `$(CAMLP4) -where` -I ..
11
 
PP = -pp "camlp4o ../xmllexer.cmo ../xmlparser.cmo ../xmlsyntax.cmo -- -loc loc"
12
 
 
13
 
OBJS = $(FILES:.ml=.cmo)
14
 
 
15
 
all: $(OBJS) $(NAME) $(NAME2)
16
 
 
17
 
.SUFFIXES:
18
 
.SUFFIXES: .ml .mli .cmo .cmi .cmx
19
 
 
20
 
$(NAME): $(NAME).ml
21
 
        $(CAMLC) -o $(NAME) $(NAME).cmo
22
 
 
23
 
$(NAME2): $(NAME2).ml
24
 
        $(CAMLC) -o $(NAME2) ../xhtmlpp.cmo $(NAME2).cmo
25
 
 
26
 
.ml.cmo:
27
 
        $(CAMLC) $(PP) ../xhtmlpp.cmo -c $<
28
 
.mli.cmi:
29
 
        $(CAMLC) ../xhtmlpp.cmo -c $<
30
 
.ml.cmx:
31
 
        $(CAMLOPT) $(PP) ../xhtmlpp.cmo -c $<
32
 
 
33
 
clean:
34
 
        -rm -f *.cm[iox] *~ essai essai2