Blame view

exec/makefile 1.49 KB
Wojciech Jaworski authored
1
2
3
4
5
6
7
8
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
INCLUDES=-I +xml-light -I +xlib -I +zip -I +bz2 -I +eniam
OCAMLFLAGS=$(INCLUDES) -g
OCAMLOPTFLAGS=$(INCLUDES) unix.cmxa xml-light.cmxa str.cmxa nums.cmxa zip.cmxa bz2.cmxa xlib.cmxa \
  eniam-tokenizer.cmxa eniam-morphology.cmxa eniam-subsyntax.cmxa \
	eniam-lcg-parser.cmxa eniam-lcg-lexicon.cmxa \
Wojciech Jaworski authored
9
	eniam-lexSemantics.cmxa #eniam-exec.cmxa
Wojciech Jaworski authored
10
11
INSTALLDIR=`ocamlc -where`/eniam
Wojciech Jaworski authored
12
SOURCES= ENIAMexecTypes.ml ENIAMexec.ml ENIAMselectSent.ml ENIAMvisualization.ml
Wojciech Jaworski authored
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)
Wojciech Jaworski authored
19
20
	cp ENIAMexecTypes.cmi ENIAMexec.cmi ENIAMselectSent.cmi ENIAMvisualization.cmi $(INSTALLDIR)
	cp ENIAMexecTypes.cmx ENIAMexec.cmx ENIAMselectSent.cmx ENIAMvisualization.cmx $(INSTALLDIR)
Wojciech Jaworski authored
21
22
23
24
25
26
27
28


eniam-exec.cma: $(SOURCES)
	ocamlc -linkall -a -o eniam-exec.cma $(OCAMLFLAGS) $^

eniam-exec.cmxa: $(SOURCES)
	ocamlopt -linkall -a -o eniam-exec.cmxa $(INCLUDES) $^
Wojciech Jaworski authored
29
30
parser: $(SOURCES) parser.ml
	$(OCAMLOPT) -o parser $(OCAMLOPTFLAGS) $(SOURCES) parser.ml
Wojciech Jaworski authored
31
Wojciech Jaworski authored
32
semparser: $(SOURCES) semparser.ml
Wojciech Jaworski authored
33
	mkdir -p results
Wojciech Jaworski authored
34
	$(OCAMLOPT) -o semparser $(OCAMLOPTFLAGS) $(SOURCES) semparser.ml
Wojciech Jaworski authored
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

.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:
	rm -f *~ *.cm[aoix] *.o *.so *.cmxa *.a parser semparser