Makefile 2.18 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
PARSER = parser/location.cmo
TYPES  = types/recursive.cmo types/sortedList.cmo types/sortedMap.cmo types/boolean.cmo types/intervals.cmo types/atoms.cmo types/strings.cmo types/types.cmo types/patterns.cmo types/syntax.cmo

OBJECTS = $(PARSER) $(TYPES)

all.cma: $(OBJECTS)
	ocamlc -o all.cma -I +camlp4 gramlib.cma -a $(OBJECTS)

depend:
	ocamldep -pp 'camlp4o pa_extend.cmo' parser/*.ml* types/*.ml*


clean:
	(cd parser; rm -f *.cmi *.cmo *.cma *~)
	(cd types; rm -f *.cmi *.cmo *.cma *~)
	rm -f *.cmi *.cmo *.cma *~

.SUFFIXES: .ml .mli .cmo .cmi .cmx

.ml.cmo:
	ocamlc -c -pp 'camlp4o pa_extend.cmo' -I +camlp4 $<

.ml.cmx:
	ocamlopt -c $<

.mli.cmi:
	ocamlc -c $<

# FORTPATH = /users/formel8/frisch/solaris/fort/fort
FORTPATH = /home/frisch/fort
FORTBIN = $(FORTPATH)/fort
FORTLIB = $(FORTPATH)

test: all.cma
	$(FORTBIN) -I $(FORTLIB) all.cma test_fort.ml

atoms.cmo: sortedList.cmi atoms.cmi 
atoms.cmx: sortedList.cmx atoms.cmi 
boolean.cmo: recursive.cmi sortedList.cmi boolean.cmi 
boolean.cmx: recursive.cmx sortedList.cmx boolean.cmi 
intervals.cmo: intervals.cmi 
intervals.cmx: intervals.cmi 
patterns.cmo: sortedList.cmi sortedMap.cmi types.cmi patterns.cmi 
patterns.cmx: sortedList.cmx sortedMap.cmx types.cmx patterns.cmi 
recursive.cmo: recursive.cmi 
recursive.cmx: recursive.cmi 
sortedList.cmo: sortedList.cmi 
sortedList.cmx: sortedList.cmi 
sortedMap.cmo: sortedMap.cmi 
sortedMap.cmx: sortedMap.cmi 
location.cmo: location.cmi
strings.cmo: boolean.cmi recursive.cmi sortedMap.cmi strings.cmi 
strings.cmx: boolean.cmx recursive.cmx sortedMap.cmx strings.cmi 
syntax.cmo: location.cmi patterns.cmi sortedList.cmi types.cmi syntax.cmi 
syntax.cmx: location.cmi patterns.cmx sortedList.cmx types.cmx syntax.cmi 
test_fort.cmo: strings.cmi types.cmi 
test_fort.cmx: strings.cmx types.cmx 
test_types.cmo: strings.cmi types.cmi 
test_types.cmx: strings.cmx types.cmx 
types.cmo: atoms.cmi boolean.cmi intervals.cmi recursive.cmi sortedList.cmi \
    strings.cmi types.cmi 
types.cmx: atoms.cmx boolean.cmx intervals.cmx recursive.cmx sortedList.cmx \
    strings.cmx types.cmi 
patterns.cmi: sortedList.cmi types.cmi 
syntax.cmi: patterns.cmi types.cmi 
types.cmi: atoms.cmi boolean.cmi intervals.cmi strings.cmi