/[svn]/Makefile
ViewVC logotype

Contents of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations)
Tue Jul 10 16:57:03 2007 UTC (5 years, 10 months ago) by abate
File size: 1362 byte(s)
[r2002-10-10 15:40:34 by cvscast] Empty log message

Original author: cvscast
Date: 2002-10-10 15:41:10+00:00
1 abate 4 PARSER = parser/location.cmo parser/ast.cmo parser/parser.cmo
2 abate 1
3 abate 5 TYPING = typing/typed.cmo typing/typer.cmo
4 abate 4
5 abate 3 TYPES = types/recursive.cmo types/sortedList.cmo \
6     types/sortedMap.cmo types/boolean.cmo \
7     types/intervals.cmo types/atoms.cmo \
8     types/strings.cmo types/types.cmo \
9 abate 4 types/patterns.cmo
10 abate 3
11 abate 4 DIRS = parser typing types
12 abate 3
13 abate 4 OBJECTS = $(TYPES) $(PARSER) $(TYPING)
14     DEPEND = parser/*.ml parser/*.mli typing/*.ml typing/*.mli types/*.ml types/*.mli
15 abate 5 INCLUDES = -I +camlp4 -I parser -I types -I typing
16 abate 1
17 abate 3 SYNTAX_PARSER = -pp 'camlp4o pa_extend.cmo'
18    
19 abate 1 all.cma: $(OBJECTS)
20     ocamlc -o all.cma -I +camlp4 gramlib.cma -a $(OBJECTS)
21    
22 abate 3 compute_depend:
23     @echo "Computing dependencies ..."
24 abate 4 ocamldep $(INCLUDES) $(SYNTAX_PARSER) $(DEPEND) > depend
25 abate 1
26 abate 3 run_top: all.cma
27 abate 4 ledit ocaml $(INCLUDES) all.cma
28 abate 1
29     clean:
30     (cd parser; rm -f *.cmi *.cmo *.cma *~)
31     (cd types; rm -f *.cmi *.cmo *.cma *~)
32 abate 4 (cd typing; rm -f *.cmi *.cmo *.cma *~)
33 abate 1 rm -f *.cmi *.cmo *.cma *~
34    
35     .SUFFIXES: .ml .mli .cmo .cmi .cmx
36    
37     .ml.cmo:
38 abate 3 ocamlc -c $(SYNTAX_PARSER) $(INCLUDES) $<
39 abate 1 .ml.cmx:
40 abate 3 ocamlopt -c $(SYNTAX_PARSER) $(INCLUDES) $<
41 abate 1
42     .mli.cmi:
43 abate 3 ocamlc -c $(INCLUDES) $<
44 abate 1
45     # FORTPATH = /users/formel8/frisch/solaris/fort/fort
46     FORTPATH = /home/frisch/fort
47     FORTBIN = $(FORTPATH)/fort
48     FORTLIB = $(FORTPATH)
49    
50     test: all.cma
51     $(FORTBIN) -I $(FORTLIB) all.cma test_fort.ml
52    
53 abate 3 include depend

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5