Commit 2121accb authored by Camil Staps's avatar Camil Staps 🚀

Move to svn version of clean-compiler (#12, #34)

parent 9eabc3d0
......@@ -6,3 +6,4 @@ CloogleServer
types.json
cloogle.log
node_modules/
backend/clean-compiler/
Subproject commit fcc8c1f97b7a6e6310fb233fc0f24073fb01409d
Subproject commit d5ccd38caf96b6f511c26d6d1707b1946eb8469f
......@@ -6,16 +6,22 @@ CPM:=cpm
SED:=sed
.SECONDARY: $(PRJ)
.PHONY: all
.PHONY: all clean distclean
all: $(BIN) $(DB)
clean-compiler:
svn checkout https://svn.cs.ru.nl/repos/clean-compiler/branches/itask/ clean-compiler
make -C clean-compiler/main/Unix
make -C clean-compiler/backendC/CleanCompilerSources -f Makefile.linux64
ln -s ../../backendC/CleanCompilerSources/backend.a clean-compiler/backend/Clean\ System\ Files/backend_library
man: $(MAN)
%.1: %
help2man -N ./$< > $@
%: %.prj
$(BIN): %: %.prj clean-compiler
$(CPM) $< \
| grep -v "^Analyzing" \
| grep -v "^Warning: Unable to setup directory cache"
......@@ -23,14 +29,17 @@ man: $(MAN)
%.prj:
$(CPM) project $(basename $@) create
$(SED) -i 's/\(Target:[ \t]\+\)StdEnv/\1CleanPlatform/' $@
$(SED) -i 's/[ \t]\+Path:[ \t]\+{Project}/&\n&\/CleanLevenshtein\n&\/CleanPrettyPrint\n&\/CleanTypeUnifier\n&\/CleanTypeUnifier\/clean-compiler\/main\/\n&\/CleanTypeUnifier\/clean-compiler\/frontend\/\n&\/CleanTypeUnifier\/clean-compiler\/backend\/\n&\/CleanTypeUnifier\/clean-compiler\/main\/Unix\//' $@
$(SED) -i 's/[ \t]\+Path:[ \t]\+{Project}/&\n&\/CleanLevenshtein\n&\/CleanPrettyPrint\n&\/CleanTypeUnifier\n&\/clean-compiler\/main\/\n&\/clean-compiler\/frontend\/\n&\/clean-compiler\/backend\/\n&\/clean-compiler\/main\/Unix\//' $@
$(SED) -i 's/\([ \t]\+Path:[ \t]\+\){Project}$$/&\n\1{Application}\/lib\/ArgEnv\/\n\1{Application}\/lib\/TCPIP\//' $@
$(SED) -i 's/\($(basename $@)\).exe/\1/' $@
$(SED) -i 's/\(Output:[ \t]\+\)ShowConstructors/\1NoConsole/' $@
$(SED) -i 's/\(HeapSize:[ \t]\+\)2097152/\141943040/' $@
$(DB): builddb
./builddb > $(DB)
./$< > $(DB)
clean:
$(RM) -r 'Clean System Files' $(BIN) $(PRJ) $(MAN) $(DB)
distclean: clean
$(RM) -r clean-compiler
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