Blame view

exec/makefile 2.5 KB
Wojciech Jaworski authored
1
2
3
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
Wojciech Jaworski authored
4
INCLUDES=-I +xml-light -I +xlib -I +zip -I +bz2 -I +eniam -I ../corpora
Wojciech Jaworski authored
5
OCAMLFLAGS=$(INCLUDES) -g
Daniel Oklesiński authored
6
7
8
OCAMLOPTFLAGS=$(INCLUDES) unix.cmxa xml-light.cmxa str.cmxa nums.cmxa zip.cmxa bz2.cmxa xlib.cmxa xt.cmxa \
  eniam-tokenizer.cmxa eniam-morphology.cmxa eniam-subsyntax.cmxa eniam-lcg-parser.cmxa eniam-integration.cmxa \
	eniam-lcg-lexicon.cmxa \
Wojciech Jaworski authored
9
	eniam-lexSemantics.cmxa eniam-semantics.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 ENIAMexecXMLof.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 ENIAMexecXMLof.cmi ENIAMvisualization.cmi $(INSTALLDIR)
	cp ENIAMexecTypes.cmx ENIAMexec.cmx ENIAMselectSent.cmx ENIAMexecXMLof.cmx ENIAMvisualization.cmx $(INSTALLDIR)
Wojciech Jaworski authored
21
Wojciech Jaworski authored
22
23
24
install-local: all
	mkdir -p $(INSTALLDIR)
	cp eniam-exec.cmxa eniam-exec.a eniam-exec.cma $(INSTALLDIR)
Wojciech Jaworski authored
25
26
	cp ENIAMexecTypes.cmi ENIAMexec.cmi ENIAMselectSent.cmi ENIAMexecXMLof.cmi ENIAMvisualization.cmi $(INSTALLDIR)
	cp ENIAMexecTypes.cmx ENIAMexec.cmx ENIAMselectSent.cmx ENIAMexecXMLof.cmx ENIAMvisualization.cmx $(INSTALLDIR)
Wojciech Jaworski authored
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) $^
Wojciech Jaworski authored
34
parser: parser.ml
Wojciech Jaworski authored
35
	$(OCAMLOPT) -o parser $(OCAMLOPTFLAGS) eniam-fuzzyAnalyzer.cmxa $^
Wojciech Jaworski authored
36
Daniel Oklesiński authored
37
38
39
40
41
42
test: test.ml
	$(OCAMLOPT) -o test $(OCAMLOPTFLAGS) $^

mergertest: parserMerger.ml mergertest.ml
	$(OCAMLOPT) -o mergertest $(OCAMLOPTFLAGS) $^
Wojciech Jaworski authored
43
semparser: semparser.ml
Wojciech Jaworski authored
44
	mkdir -p results
Wojciech Jaworski authored
45
	$(OCAMLOPT) -o semparser $(OCAMLOPTFLAGS) $^
Wojciech Jaworski authored
46
Daniel Oklesiński authored
47
webInterface: webInterface.ml
Wojciech Jaworski authored
48
49
	$(OCAMLOPT) -o parser3.cgi $(OCAMLOPTFLAGS) $^
Daniel Oklesiński authored
50
51
52
53
54
55
56
57
webInterface2: webInterface2.ml
	$(OCAMLOPT) -o parser4.cgi $(OCAMLOPTFLAGS) $^
	sudo cp parser4.cgi /usr/lib/cgi-bin/

webInterface3: webInterface3.ml
	$(OCAMLOPT) -o parser5.cgi $(OCAMLOPTFLAGS) $^
	sudo cp parser5.cgi /usr/lib/cgi-bin/
Wojciech Jaworski authored
58
59
apiInterface: ENIAMexecTypes.ml ENIAMvisualization.ml apiInterface.ml
	$(OCAMLOPT) -o parser.api $(OCAMLOPTFLAGS) $^
Wojciech Jaworski authored
60
Wojciech Jaworski authored
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.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:
Daniel Oklesiński authored
82
	rm -f *~ *.cm[aoix] *.o *.so *.cmxa *.a parser test mergertest semparser parser3.cgi parser.api