|
1
2
3
|
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
|
|
4
|
INCLUDES=-I +xml-light -I +xlib -I +zip -I +bz2 -I +eniam -I ../corpora
|
|
5
6
|
OCAMLFLAGS=$(INCLUDES) -g
OCAMLOPTFLAGS=$(INCLUDES) unix.cmxa xml-light.cmxa str.cmxa nums.cmxa zip.cmxa bz2.cmxa xlib.cmxa \
|
|
7
|
eniam-tokenizer.cmxa eniam-morphology.cmxa eniam-subsyntax.cmxa eniam-integration.cmxa \
|
|
8
|
eniam-lcg-parser.cmxa eniam-lcg-lexicon.cmxa \
|
|
9
|
eniam-lexSemantics.cmxa eniam-semantics.cmxa #eniam-exec.cmxa
|
|
10
11
|
INSTALLDIR=`ocamlc -where`/eniam
|
|
12
|
SOURCES= ENIAMexecTypes.ml ENIAMexec.ml ENIAMselectSent.ml ENIAMvisualization.ml
|
|
13
14
15
16
17
18
|
all: eniam-exec.cma eniam-exec.cmxa
install: all
mkdir -p $(INSTALLDIR)
cp eniam-exec.cmxa eniam-exec.a eniam-exec.cma $(INSTALLDIR)
|
|
19
20
|
cp ENIAMexecTypes.cmi ENIAMexec.cmi ENIAMselectSent.cmi ENIAMvisualization.cmi $(INSTALLDIR)
cp ENIAMexecTypes.cmx ENIAMexec.cmx ENIAMselectSent.cmx ENIAMvisualization.cmx $(INSTALLDIR)
|
|
21
|
|
|
22
23
24
|
install-local: all
mkdir -p $(INSTALLDIR)
cp eniam-exec.cmxa eniam-exec.a eniam-exec.cma $(INSTALLDIR)
|
|
25
26
|
cp ENIAMexecTypes.cmi ENIAMexec.cmi ENIAMselectSent.cmi ENIAMvisualization.cmi $(INSTALLDIR)
cp ENIAMexecTypes.cmx ENIAMexec.cmx ENIAMselectSent.cmx ENIAMvisualization.cmx $(INSTALLDIR)
|
|
27
28
29
30
31
32
33
|
eniam-exec.cma: $(SOURCES)
ocamlc -linkall -a -o eniam-exec.cma $(OCAMLFLAGS) $^
eniam-exec.cmxa: $(SOURCES)
ocamlopt -linkall -a -o eniam-exec.cmxa $(INCLUDES) $^
|
|
34
35
|
parser: $(SOURCES) parser.ml
$(OCAMLOPT) -o parser $(OCAMLOPTFLAGS) $(SOURCES) parser.ml
|
|
36
|
|
|
37
|
semparser: $(SOURCES) semparser.ml
|
|
38
|
mkdir -p results
|
|
39
|
$(OCAMLOPT) -o semparser $(OCAMLOPTFLAGS) $(SOURCES) semparser.ml
|
|
40
|
|
|
41
42
43
44
45
|
webInterface: ENIAMexecTypes.ml ENIAMvisualization.ml webInterface.ml
$(OCAMLOPT) -o parser3.cgi $(OCAMLOPTFLAGS) $^
apiInterface: ENIAMexecTypes.ml ENIAMvisualization.ml apiInterface.ml
$(OCAMLOPT) -o parser.api $(OCAMLOPTFLAGS) $^
|
|
46
|
|
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
.SUFFIXES: .mll .mly .ml .mli .cmo .cmi .cmx
.mll.ml:
ocamllex $<
.mly.mli:
ocamlyacc $<
.mly.ml:
ocamlyacc $<
.ml.cmo:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.mli.cmi:
$(OCAMLC) $(OCAMLFALGS) -c $<
.ml.cmx:
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
clean:
|
|
68
|
rm -f *~ *.cm[aoix] *.o *.so *.cmxa *.a parser semparser parser3.cgi parser.api
|