/[svn]/Makefile
ViewVC logotype

Contents of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Tue Jul 10 16:56:57 2007 UTC (5 years, 10 months ago) by abate
File size: 1356 byte(s)
[r2002-10-10 15:02:36 by cvscast] Empty log message

Original author: cvscast
Date: 2002-10-10 15:02:36+00:00
1 PARSER = parser/location.cmo parser/ast.cmo parser/parser.cmo
2
3 TYPING = typing/parse_pat.cmo typing/typed.cmo
4
5 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 types/patterns.cmo
10
11 DIRS = parser typing types
12
13 OBJECTS = $(TYPES) $(PARSER) $(TYPING)
14 DEPEND = parser/*.ml parser/*.mli typing/*.ml typing/*.mli types/*.ml types/*.mli
15 INCLUDES = -I +camlp4 -I parser -I types
16
17 SYNTAX_PARSER = -pp 'camlp4o pa_extend.cmo'
18
19 all.cma: $(OBJECTS)
20 ocamlc -o all.cma -I +camlp4 gramlib.cma -a $(OBJECTS)
21
22 compute_depend:
23 @echo "Computing dependencies ..."
24 ocamldep $(INCLUDES) $(SYNTAX_PARSER) $(DEPEND) > depend
25
26 run_top: all.cma
27 ledit ocaml $(INCLUDES) all.cma
28
29 clean:
30 (cd parser; rm -f *.cmi *.cmo *.cma *~)
31 (cd types; rm -f *.cmi *.cmo *.cma *~)
32 (cd typing; rm -f *.cmi *.cmo *.cma *~)
33 rm -f *.cmi *.cmo *.cma *~
34
35 .SUFFIXES: .ml .mli .cmo .cmi .cmx
36
37 .ml.cmo:
38 ocamlc -c $(SYNTAX_PARSER) $(INCLUDES) $<
39 .ml.cmx:
40 ocamlopt -c $(SYNTAX_PARSER) $(INCLUDES) $<
41
42 .mli.cmi:
43 ocamlc -c $(INCLUDES) $<
44
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 include depend

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