Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ppx_rml into rml PR3 : reduce number of warnings #4

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f2ace19
renamed parser misc and asttypes
samsa1 Jan 3, 2022
cfa96ee
Finished changing names of modules
samsa1 Jan 4, 2022
d52eb30
Renammed main.ml -> rmlc.ml
samsa1 Jan 4, 2022
cade929
started to implement a new build sequence
samsa1 Jan 4, 2022
85276ec
corrected rml.opam file
samsa1 Jan 4, 2022
b9a9124
fixed version number
samsa1 Jan 4, 2022
f0a39e5
Added a test
samsa1 Jan 4, 2022
7adfa46
corrected parser location detection as ocamlyacc was changed to menhir
samsa1 Jan 5, 2022
d6838e8
Removed tests from the default build sequence
samsa1 Jan 6, 2022
e7031eb
removed warnings in compiler/parsing files
samsa1 Jan 7, 2022
0ae4a47
removed warnings in compiler/caml files
samsa1 Jan 7, 2022
0e41289
removed warnings in compiler/external/lucky.ml
samsa1 Jan 7, 2022
007617b
removed warnings in compiler/optimization/reac_optimization.ml
samsa1 Jan 7, 2022
96df552
removed warnings in compiler/other_analysis/instantaneous_loop.ml
samsa1 Jan 7, 2022
4a921ce
removed warnings in compiler/lk files
samsa1 Jan 7, 2022
246b956
removed warnings in compiler/lco files
samsa1 Jan 7, 2022
2a6be17
removed warnings in compiler/global files
samsa1 Jan 7, 2022
5445910
removed warnings in compiler/main files
samsa1 Jan 7, 2022
0b6b35a
removed warnings in compiler/reac files
samsa1 Jan 7, 2022
0ad394f
removed warnings in compiler/static files
samsa1 Jan 7, 2022
0f8310d
removed warnings in compiler/typing files
samsa1 Jan 7, 2022
8c17c7e
removed warnings in interpreter files
samsa1 Jan 7, 2022
0645d51
removed warnings in tools/rmldep files
samsa1 Jan 7, 2022
05a0590
removed warnings in toplevel files
samsa1 Jan 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ config
Makefile.common
compiler/global/version.ml
compiler/global/rzi.ml
compiler/parsing/lexer.ml
compiler/parsing/rml_lexer.ml
compiler/parsing/linenum.ml
compiler/parsing/parser.ml
compiler/parsing/parser.mli
compiler/parsing/rml_parser.ml
compiler/parsing/rml_parser.mli
tools/rmlbuild/rmlbuild/boot/
toplevel/rmltop_controller.ml
toplevel/rmltop_lexer.ml
Expand Down
216 changes: 9 additions & 207 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,215 +1,17 @@
# Makefile for ReactiveML
# Taken from Lucid-synchrone
# Organization : SPI team, LIP6 laboratory, University Paris 6

include configure-tools/version
include config
build:
dune build stdlib
RML_RECOMPILE_RZI=0 dune build compiler tools interpreter toplevel

all: config-stamp
(cd compiler; touch .depend; $(MAKE) depend; $(MAKE) $(TARGET))
(cd stdlib; $(MAKE) all)
(cd interpreter; touch .depend; $(MAKE) depend; $(MAKE) all)
(cd toplevel; $(MAKE) all)
(cd tools; $(MAKE) $(TARGET))
test: build
dune runtest

config-stamp:
./configure
touch $@

toplevel: FORCE
(cd toplevel; $(MAKE) all)

toplevel-install:
(cd toplevel; $(MAKE) install)


opt: TARGET := opt
opt: all

byte: TARGET := byte
byte: all

.PHONY: install

install:
(cd compiler; $(MAKE) install)
(cd stdlib; $(MAKE) install)
(cd interpreter; $(MAKE) install)
(cd man; $(MAKE) install)
(cd emacs; $(MAKE) install)
(cd toplevel; $(MAKE) install)
(cd tools; $(MAKE) install)

checkinstall: config
checkinstall -D --deldoc=yes --deldesc=yes --nodoc -y --install=no
install: build
dune install

uninstall:
(cd compiler; $(MAKE) uninstall)
(cd stdlib; $(MAKE) uninstall)
(cd interpreter; $(MAKE) uninstall)
(cd man; $(MAKE) uninstall)
(cd emacs; $(MAKE) uninstall)
(cd toplevel; $(MAKE) uninstall)
(cd tools; $(MAKE) uninstall)


### BEGIN Patch from Serge Leblanc

install.findlib:
@echo "Install ReactiveML interpreter in ocamlfind hierarchy."
@(echo "version = \"$(VERSION)\"" > ./META)
@(cat ./configure-tools/META.in >> ./META)
- [ ! -e ./rmllib.a ] && \
ln -s ./interpreter/rmllib.a ./rmllib.a
- [ ! -e ./rmllib.cma ] && \
ln -s ./interpreter/rmllib.cma ./rmllib.cma
- [ ! -e ./rmllib.cmxa ] && \
ln -s ./interpreter/rmllib.cmxa ./rmllib.cmxa
- [ -r ./META -a -r ./rmllib.a -a -r ./rmllib.cma -a -r ./rmllib.cmxa ] && \
ocamlfind install rmlc ./META ./rmllib.a ./rmllib.cma ./rmllib.cmxa
- rm -rf rmllib.a rmllib.cma rmllib.cmxa

uninstall.findlib:
ocamlfind remove rmlc

### END


doc: dvi
dvi:
(cd doc; $(MAKE) dvi)
html:
(cd doc; $(MAKE) html)

wc:
(cd compiler;$(MAKE) wc)
(cd interpreter; $(MAKE) wc)
(cd toplevel; $(MAKE) wc)
(cd tools; $(MAKE) wc)
dune uninstall

clean:
(cd compiler;$(MAKE) clean)
(cd stdlib; $(MAKE) clean)
(cd interpreter; $(MAKE) clean)
(cd toplevel; $(MAKE) clean)
(cd tools; $(MAKE) clean)
(cd man; $(MAKE) clean)
(cd doc; $(MAKE) clean)
(cd patch; $(MAKE) clean)
(cd examples; $(MAKE) clean)

realclean: clean-distrib
(cd compiler;$(MAKE) realclean)
(cd stdlib; $(MAKE) realclean)
(cd interpreter; $(MAKE) realclean)
(cd toplevel; $(MAKE) realclean)
(cd tools; $(MAKE) realclean)
(cd man; $(MAKE) realclean)
(cd doc; $(MAKE) realclean)
(cd patch; $(MAKE) realclean)
(cd examples; $(MAKE) realclean)
rm -rf META
rm -rf config config-stamp Makefile.common distrib/rml/rmlc.in distrib/rml/Makefile *~
touch config
rm -rf configure-tools/rmlbuild.config

cleanall: realclean

# Making distribution
DATE=`date "+%Y-%m-%d"`

public-distrib:
touch config
$(MAKE) realclean
mkdir -p distrib/rml-$(VERSION)-$(DATE)
cp -r compiler interpreter stdlib toplevel tools emacs doc man examples \
distrib/rml-$(VERSION)-$(DATE)
cp -r configure configure-tools patch Makefile CHANGES INSTALL LICENSE \
distrib/rml-$(VERSION)-$(DATE)
mkdir -p distrib/rml-$(VERSION)-$(DATE)/distrib
cp -r distrib/rml distrib/Makefile.byte distrib/Makefile.opt \
distrib/rmlc.in.byte distrib/rmlc.in.opt \
distrib/rml-$(VERSION)-$(DATE)/distrib
(cd distrib/rml-$(VERSION)-$(DATE)/patch; \
$(MAKE) public-distrib)
(cd distrib; \
tar --exclude=CVS --exclude=.svn --exclude=.git -zcvf rml-$(VERSION)-$(DATE).tar.gz rml-$(VERSION)-$(DATE); \
rm -rf rml-$(VERSION)-$(DATE); \
mv rml-$(VERSION)-$(DATE).tar.gz ..)


source-distrib:
touch config
$(MAKE) realclean
mkdir -p distrib/rml-$(VERSION)-$(DATE)
cp -r compiler interpreter stdlib toplevel tools emacs doc man examples \
distrib/rml-$(VERSION)-$(DATE)
cp -r configure configure-tools patch Makefile CHANGES INSTALL LICENSE \
distrib/rml-$(VERSION)-$(DATE)
mkdir -p distrib/rml-$(VERSION)-$(DATE)/distrib
cp -r distrib/rml distrib/Makefile.byte distrib/Makefile.opt \
distrib/rmlc.in.byte distrib/rmlc.in.opt \
distrib/rml-$(VERSION)-$(DATE)/distrib
(cd distrib; \
tar --exclude=CVS --exclude=.svn --exclude=.git -zcvf rml-$(VERSION)-$(DATE).tar.gz rml-$(VERSION)-$(DATE); \
rm -rf rml-$(VERSION)-$(DATE); \
mv rml-$(VERSION)-$(DATE).tar.gz ..)

binary-distrib: binary-distrib.opt

binary-distrib.opt: clean-distrib
touch config
$(MAKE) realclean
./configure
(cd compiler; touch .depend; $(MAKE) depend; $(MAKE) opt)
(cd stdlib; $(MAKE) all)
(cd interpreter; $(MAKE) all)
(cd toplevel; $(MAKE) all)
(cd tools; $(MAKE) opt)
(cd distrib/rml/; \
mkdir bin lib lib/rml; \
cp ../../compiler/rmlc.opt bin/rmlc.opt ; \
cp ../../toplevel/rmltop bin/rmltop ; \
cp ../../stdlib/*.rzi ../../stdlib/*.rmli lib/rml ; \
cp ../../interpreter/*.cma ../../interpreter/*.cmxa ../../interpreter/*.a ../../interpreter/*.cmi lib/rml ; \
cp ../../toplevel/*.cmo ../../toplevel/*.cmi lib/rml ; \
cp ../../tools/rmldep/rmldep.opt bin/rmldep ; \
cp -r ../../emacs . ; \
cp ../Makefile.opt Makefile; \
cp ../rmlc.in.opt rmlc.in; \
cd ..; \
tar --exclude=CVS --exclude=.svn --exclude=.git -zcvf rml-`../compiler/rmlc -version`.opt.tar.gz rml; \
mv rml-`../compiler/rmlc -version`.opt.tar.gz ..)

binary-distrib.byte: clean-distrib
touch config
$(MAKE) realclean
./configure
(cd compiler; touch .depend; $(MAKE) depend; $(MAKE) byte)
(cd stdlib; $(MAKE) all)
(cd interpreter; $(MAKE) all)
(cd toplevel; $(MAKE) all)
(cd tools; $(MAKE) all)
(cd distrib/rml/ ; \
mkdir bin lib lib/rml ; \
cp ../../compiler/rmlc.byte bin/rmlc.byte ; \
cp ../../toplevel/rmltop bin/rmltop ; \
cp ../../stdlib/*.rzi ../../stdlib/*.rmli lib/rml ; \
cp ../../interpreter/*.cma ../../interpreter/*.cmxa ../../interpreter/*.a ../../interpreter/*.cmi lib/rml ; \
cp ../../toplevel/*.cmo ../../toplevel/*.cmi lib/rml ; \
cp ../../tools/rmldep/rmldep.byte bin/rmldep ; \
cp -r ../../emacs . ; \
cp ../Makefile.byte Makefile ; \
cp ../rmlc.in.byte rmlc.in ; \
cd ..; tar --exclude=CVS --exclude=.svn --exclude=.git -zcvf rml-`../compiler/rmlc -version`.byte.tar.gz rml ; \
mv rml-`../compiler/rmlc -version`.byte.tar.gz ..)

clean-distrib:
rm -rf distrib/rml/bin \
distrib/rml/lib \
distrib/rml/emacs \
distrib/rml/man
- rm -f rml-`./compiler/rmlc -version`.*.tar.gz
rm -f rml-$(VERSION)-????-??-??.tar.gz

FORCE:
dune clean
Loading