Verified Commit 3ec9f2c8 authored by Camil Staps's avatar Camil Staps

Use git version of the compiler

parent b5307d3d
Clean System Files/
clean-compiler/
*.abc
*.o
*.tcl
......@@ -4,3 +4,6 @@
[submodule "CleanRegex"]
path = CleanRegex
url = https://gitlab.science.ru.nl/cstaps/CleanRegex
[submodule "compiler"]
path = compiler
url = https://gitlab.science.ru.nl/clean-compiler-and-rts/compiler
REVISION:=3061
compiler: .FORCE
$(MAKE) -j -C compiler/main/Unix
$(MAKE) -j -C compiler/backendC/CleanCompilerSources -f Makefile.linux64
$(RM) compiler/backend/Clean\ System\ Files/backend_library
mkdir -p compiler/backend/Clean\ System\ Files
ln -s ../../backendC/CleanCompilerSources/backend.a compiler/backend/Clean\ System\ Files/backend_library
clean-compiler: clean-compiler/$(REVISION)
.FORCE:
clean-compiler/$(REVISION):
svn checkout -r $(REVISION) https://svn.cs.ru.nl/repos/clean-compiler/branches/itask/ clean-compiler
$(MAKE) -j -C clean-compiler/main/Unix
$(MAKE) -j -C clean-compiler/backendC/CleanCompilerSources -f Makefile.linux64
$(RM) clean-compiler/backend/Clean\ System\ Files/backend_library
ln -s ../../backendC/CleanCompilerSources/backend.a clean-compiler/backend/Clean\ System\ Files/backend_library
touch clean-compiler/$(REVISION)
.PHONY: .FORCE
......@@ -17,16 +17,15 @@ database, using the common Cloogle types defined by
[libcloogle](https://gitlab.science.ru.nl/cloogle/libcloogle).
## Dependencies
The Clean compiler is needed to build the database (not to use it).
Unfortunately, it is [developed on subversion][cocl] which means we can't add
it as a git submodule. To get the latest version of the compiler that this
project is compatible with, run `make clean-compiler`. This rule should always
be run, because it checks itself whether an update is needed. If you depend on
Cloogle in your project, a good rule to add to your Makefile is:
The latest Clean compiler that this library is compatible with is bundled as a
git submodule. However, several object files must be built. This can be done
with `make compiler`. If your project depends on Cloogle, you should add the
following to your `Makefile` to ensure that the compiler is updated when
needed:
```make
Cloogle/clean-compiler: .FORCE
$(MAKE) -C Cloogle clean-compiler
Cloogle/compiler: .FORCE
$(MAKE) -C Cloogle compiler
.FORCE:
......
Subproject commit a07b9204a6c0bc338355df3c9af88dbbf76ea517
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment