Project

General

Profile

Revision 3b2bd83d Makefile.in

View differences:

Makefile.in
7 7
includedir = ${prefix}/include
8 8

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

  
13
lustrec:
14
$(LOCAL_BINDIR)/lustrec: configure Makefile
14 15
	@echo Compiling binary lustrec
15
	@$(OCAMLBUILD) -cflags -I,@OCAMLGRAPH_PATH@ -lflag @OCAMLGRAPH_PATH@/graph.cmxa -I src -I src/backends/C src/main_lustre_compiler.native
16
	@$(OCAMLBUILD) -cflags -I,@OCAMLGRAPH_PATH@ -lflag @OCAMLGRAPH_PATH@/graph.cmxa -lflag nums.cmxa -I src -I src/backends/C -I src/plugins/scopes src/main_lustre_compiler.native
16 17
	@mkdir -p $(LOCAL_BINDIR)
17 18
	@mv _build/src/main_lustre_compiler.native $(LOCAL_BINDIR)/lustrec
18 19

  
20
configure: configure.ac
21
	@echo configure.ac has changed relaunching autoconf
22
	@autoconf
23

  
24
Makefile: Makefile.in config.status configure
25
	@echo Makefile.in has changed relaunching autoconf
26
	@./config.status --recheck
27

  
19 28
doc:
20 29
	@echo Generating doc
21 30
	@$(OCAMLBUILD) lustrec.docdir/index.html
......
30 39
clean:
31 40
	$(OCAMLBUILD) -clean
32 41

  
33
dist-clean: clean
34
	@rm -f Makefile myocamlbuild.ml config.log config.status configure include/*.lusic include/math.h include/conv.h
42
dist-src-clean: clean
43
	@rm -f config.log config.status include/*.lusic include/math.h include/conv.h include/mpfr_lustre.h
44

  
45
DIST_ARCHIVE_NAME=lustrec-$(shell $(LOCAL_BINDIR)/lustrec -version | grep version | cut -d, -f 2 | sed -e "s/ version //" -e "s/ (/-/" -e "s/ /-/" -e "s/\//-/" -e "s/)//")-src.tar.gz
46

  
47
dist-gzip: $(LOCAL_BINDIR)/lustrec dist-src-clean
48
	@rm -f $(shell ls ../*lustrec*src*tar.gz)
49
	@tar zcvf ../$(DIST_ARCHIVE_NAME) -C .. --exclude-vcs --exclude=Makefile  --exclude=$(LOCAL_BINDIR) $(shell basename $(PWD))
50
	@echo "Source distribution built: ../$(DIST_ARCHIVE_NAME)"
51

  
52
dist-clean: dist-src-clean
53
	@rm -f myocamlbuild.ml configure Makefile
35 54

  
36 55
%.lusic: %.lusi
37 56
	@echo Compiling $<
......
39 58

  
40 59
clean-lusic:
41 60
	@rm -f $(LUSI_LIBS:%.lusi=%.lusic)
61
	@rm -f $(LUSI_MPFR_LIB:%.lusi=%.lusic)
42 62

  
43 63
compile-lusi: $(LUSI_LIBS:%.lusi=%.lusic)
44 64

  
45
install: clean-lusic compile-lusi
65
compile-mpfr-lusi: $(LUSI_MPFR_LIB)
66
	@echo Compiling $<
67
	@$(LOCAL_BINDIR)/lustrec -verbose 0 -mpfr 1 -d include $<
68

  
69
install: clean-lusic compile-lusi compile-mpfr-lusi
46 70
	mkdir -p ${bindir}
47 71
	install -m 0755 $(LOCAL_BINDIR)/* ${bindir}
48 72
	mkdir -p ${includedir}/lustrec

Also available in: Unified diff