/[svn]/Makefile
ViewVC logotype

Contents of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations)
Tue Jul 10 16:56:52 2007 UTC (5 years, 10 months ago) by abate
File size: 1190 byte(s)
[r2002-10-10 09:23:36 by cvscast] Empty log message

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

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