/[svn]/Makefile
ViewVC logotype

Contents of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations)
Tue Jul 10 16:58:13 2007 UTC (5 years, 11 months ago) by abate
File size: 1580 byte(s)
[r2002-10-19 15:56:14 by cvscast] Empty log message

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

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