/[svn]/Makefile
ViewVC logotype

Contents of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show 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 PARSER = parser/location.cmo
2
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 OBJECTS = $(PARSER) $(TYPES)
12 DEPEND = parser/*.ml parser/*.mli types/*.ml types/*.mli
13 INCLUDES = -I +camlp4 -I parser -I types
14
15 SYNTAX_PARSER = -pp 'camlp4o pa_extend.cmo'
16
17 all.cma: $(OBJECTS)
18 ocamlc -o all.cma -I +camlp4 gramlib.cma -a $(OBJECTS)
19
20 compute_depend:
21 @echo "Computing dependencies ..."
22 ocamldep $(SYNTAX_PARSER) $(DEPEND) > depend
23
24 run_top: all.cma
25 ocaml $(INCLUDES) all.cma
26
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 ocamlc -c $(SYNTAX_PARSER) $(INCLUDES) $<
36 .ml.cmx:
37 ocamlopt -c $(SYNTAX_PARSER) $(INCLUDES) $<
38
39 .mli.cmi:
40 ocamlc -c $(INCLUDES) $<
41
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 include depend

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