plugin for sql
[afterthought.git] / Makefile
1 all: aft.b
2
3 include .dep
4
5 .SUFFIXES: .ml .cmo
6 .SUFFIXES: .mli .cmi
7 .SUFFIXES: .ml .cmx
8 .SUFFIXES: .mll .ml
9 .SUFFIXES: .mly .ml
10
11 .ml.cmo:
12         ocamlc -g -c $(INCLUDEDIR) $<
13
14 .mli.cmi:
15         ocamlopt -c $<
16
17 .ml.cmx: 
18         ocamlopt $(CFLAGS) -c $(INCLUDEDIR) $<
19
20 .mly.ml: 
21         ocamlyacc $< 
22
23 .mll.ml:
24         ocamllex $< 
25
26 aft_parser.ml: aft_parser.mly
27
28 aft_lexer.ml: aft_lexer.mll 
29
30 aft.b: globals.cmo aft_types.cmo aft_lexer.cmo xpath_syntax.cmo aft_parser.cmo xpath_ext.cmo python.cmo python_dict.cmo aft_minterms.cmo aft.cmo sql.cmo
31         ocamlc -g globals.cmo aft_types.cmo xpath_ext.cmo xpath_syntax.cmo aft_parser.cmo aft_lexer.cmo sql.cmo python.cmo python_dict.cmo aft_minterms.cmo aft.cmo -o aft.b
32
33 dep:
34         ocamldep *.ml *.mly *.mll > .dep
35
36 clean:
37         rm -f *.cmo *.mli *.cmi