Project

General

Profile

Download (1.59 KB) Statistics
| Branch: | Tag: | Revision:
1
OCAMLBUILD=@OCAMLBUILD@ -use-ocamlfind -no-links
2

    
3
prefix=@prefix@
4
exec_prefix=@exec_prefix@
5
bindir=@bindir@
6
datarootdir = ${prefix}/share
7
includedir = ${prefix}/include
8

    
9
LUSI_LIBS=include/math.lusi include/conv.lusi
10
LOCAL_BINDIR=../bin
11
LOCAL_DOCDIR=../doc/manual
12

    
13
all: lustrec lustret
14

    
15
lustrec:
16
	@echo Compiling binary lustrec
17
	@$(OCAMLBUILD) main_lustre_compiler.native
18
	@mkdir -p $(LOCAL_BINDIR)
19
	@mv _build/main_lustre_compiler.native $(LOCAL_BINDIR)/lustrec
20

    
21
lustret:
22
	@echo Compiling binary lustret
23
	@$(OCAMLBUILD) main_lustre_testgen.native
24
	@mkdir -p $(LOCAL_BINDIR)
25
	@mv _build/main_lustre_testgen.native $(LOCAL_BINDIR)/lustret
26

    
27
lustresf:
28
	@echo Compiling binary lustresf
29
	@$(OCAMLBUILD) tools/stateflow/sf_sem.native
30
	@mkdir -p $(LOCAL_BINDIR)
31
	@mv _build/tools/stateflow/sf_sem.native $(LOCAL_BINDIR)/lustresf
32

    
33
json-parser-ex:
34
	@echo Compiling binary json-parser-ex
35
	@$(OCAMLBUILD) tools/stateflow/main_with_json.native
36
	@mkdir -p $(LOCAL_BINDIR)
37
	@mv _build/tools/stateflow/main_with_json.native $(LOCAL_BINDIR)/json-parser-ex
38

    
39
doc:
40
	@echo Generating doc
41
	@$(OCAMLBUILD) lustrec.docdir/index.html
42
	@rm -rf $(LOCAL_DOCDIR)
43
	@cp -rf _build/lustrec.docdir $(LOCAL_DOCDIR)
44

    
45
dot: doc
46
	$(OCAMLBUILD) lustrec.docdir/lustrec.dot
47
	dot -T ps -o lustrec.dot _build/lustrec.docdir/lustrec.dot
48
	mv _build/lustrec.docdir/lustrec.dot $(LOCAL_DOCDIR)
49

    
50
clean:
51
	$(OCAMLBUILD) -clean
52

    
53
dist-clean: clean
54
	rm -f Makefile myocamlbuild.ml config.log config.status configure
55
	rm -f include/*.lusic include/math.h include/conv.h
56

    
57
install:
58
	make -C .. install
59

    
60
.PHONY: compile-lusi doc dot lustrec lustret lustrec.odocl clean install dist-clean
(1-1/63)