More cleanup
This commit is contained in:
parent
d784de2d80
commit
12f6aa7640
94
Makefile
94
Makefile
|
|
@ -5,7 +5,7 @@ DOCKER_INIT=cd /workdir && make clean &&
|
||||||
VERSION=$(shell grep "version:" README.md | awk '{split\($0,a\); print a[2];}')
|
VERSION=$(shell grep "version:" README.md | awk '{split\($0,a\); print a[2];}')
|
||||||
|
|
||||||
# apt-get install pandoc weasyprint
|
# apt-get install pandoc weasyprint
|
||||||
documentation:
|
docs:
|
||||||
mkdir -p documentation
|
mkdir -p documentation
|
||||||
pandoc --standalone \
|
pandoc --standalone \
|
||||||
--template templates/documentation.html README.md \
|
--template templates/documentation.html README.md \
|
||||||
|
|
@ -19,9 +19,51 @@ documentation:
|
||||||
chibi:
|
chibi:
|
||||||
make -C retropikzel/pffi chibi
|
make -C retropikzel/pffi chibi
|
||||||
|
|
||||||
|
chicken:
|
||||||
|
make -C retropikzel/pffi chicken
|
||||||
|
|
||||||
|
cyclone:
|
||||||
|
make -C retropikzel/pffi cyclone
|
||||||
|
|
||||||
|
gambit:
|
||||||
|
make -C retropikzel/pffi gambit
|
||||||
|
|
||||||
gauche:
|
gauche:
|
||||||
make -C retropikzel/pffi gauche
|
make -C retropikzel/pffi gauche
|
||||||
|
|
||||||
|
gerbil:
|
||||||
|
make -C retropikzel/pffi gerbil
|
||||||
|
|
||||||
|
guile:
|
||||||
|
make -C retropikzel/pffi guile
|
||||||
|
|
||||||
|
kawa:
|
||||||
|
make -C retropikzel/pffi kawa
|
||||||
|
|
||||||
|
larceny:
|
||||||
|
make -C retropikzel/pffi larceny
|
||||||
|
|
||||||
|
mosh:
|
||||||
|
make -C retropikzel/pffi mosh
|
||||||
|
|
||||||
|
racket:
|
||||||
|
make -C retropikzel/pffi racket
|
||||||
|
|
||||||
|
sagittarius:
|
||||||
|
make -C retropikzel/pffi sagittarius
|
||||||
|
|
||||||
|
skint:
|
||||||
|
make -C retropikzel/pffi skint
|
||||||
|
|
||||||
|
stklos:
|
||||||
|
make -C retropikzel/pffi stklos
|
||||||
|
|
||||||
|
tr7:
|
||||||
|
make -C retropikzel/pffi tr7
|
||||||
|
|
||||||
|
ypsilon:
|
||||||
|
make -C retropikzel/pffi tr7
|
||||||
|
|
||||||
test-compile-r7rs: tmp/test/libtest.o tmp/test/libtest.so
|
test-compile-r7rs: tmp/test/libtest.o tmp/test/libtest.so
|
||||||
make ${COMPILE_R7RS}
|
make ${COMPILE_R7RS}
|
||||||
cp -r retropikzel tmp/test/
|
cp -r retropikzel tmp/test/
|
||||||
|
|
@ -34,62 +76,17 @@ test-compile-r7rs-docker:
|
||||||
docker build --build-arg COMPILE_R7RS=${COMPILE_R7RS} --tag=r7rs-pffi-test-${COMPILE_R7RS} -f dockerfiles/test .
|
docker build --build-arg COMPILE_R7RS=${COMPILE_R7RS} --tag=r7rs-pffi-test-${COMPILE_R7RS} -f dockerfiles/test .
|
||||||
docker run -v "${PWD}":/workdir -w /workdir -t r7rs-pffi-test-${COMPILE_R7RS} sh -c "make COMPILE_R7RS=${COMPILE_R7RS} test-compile-r7rs"
|
docker run -v "${PWD}":/workdir -w /workdir -t r7rs-pffi-test-${COMPILE_R7RS} sh -c "make COMPILE_R7RS=${COMPILE_R7RS} test-compile-r7rs"
|
||||||
|
|
||||||
#chicken-objects:
|
tmp/test/libtest.o: tests/c-src/libtest.c
|
||||||
#cd chicken/src && gcc -Os -fomit-frame-pointer -DHAVE_CHICKEN_CONFIG_H -c *.c -I../include
|
|
||||||
|
|
||||||
#test-chicken-c: libtest.o
|
|
||||||
#csc -R r7rs -X r7rs -t -J -I ./retropikzel retropikzel/pffi.sld -o retropikzel.pffi.c
|
|
||||||
#csc -R r7rs -X r7rs -t tests/compliance.scm -o tests/compliance.c
|
|
||||||
#gcc -Os -fomit-frame-pointer -DHAVE_CHICKEN_CONFIG_H -o tests/compliance chicken/src/*.o tests/compliance.c -ltest -L. -I./include -I./chicken/include
|
|
||||||
|
|
||||||
#test-chicken: libtest.o
|
|
||||||
#csc -R r7rs -X r7rs -c -J -I ./retropikzel retropikzel/pffi.sld -o retropikzel.pffi.o
|
|
||||||
#csc -v -R r7rs -X r7rs -static tests/compliance.scm -o tests/compliance -C -ltest -I./include
|
|
||||||
#csc -R r7rs -X r7rs -J -t -I ./retropikzel retropikzel/pffi.sld
|
|
||||||
#csc -R r7rs -X r7rs -uses retropikzel.pffi -static tests/compliance.scm -L -ltest -L. -I./include -L./retropikzel
|
|
||||||
#csc -R r7rs -X r7rs -t -I ./retropikzel retropikzel/pffi.sld -o retropikzel/pffi.c
|
|
||||||
#cp retropikzel/pffi.sld retropikzel.pffi.scm
|
|
||||||
#csc -J -t -I ./retropikzel retropikzel/pffi.sld -o retropikzel/pffi.c
|
|
||||||
#csc -R r7rs -X r7rs -t -I retropikzel retropikzel/pffi.sld tests/compliance.scm -optimize-level 3 -o tests/compliance.c
|
|
||||||
#csc -t tests/compliance.scm -o tests/compliance.c #-L -ltest -I./include -L. -L./tests
|
|
||||||
#./tests/compliance
|
|
||||||
|
|
||||||
#jenkinsfile:
|
|
||||||
#gosh -r7 -I ./snow build.scm
|
|
||||||
|
|
||||||
tmp/test/libtest.o: src/libtest.c
|
|
||||||
mkdir -p tmp/test
|
mkdir -p tmp/test
|
||||||
${CC} -o tmp/test/libtest.o -fPIC -c tests/c-src/libtest.c -I./include
|
${CC} -o tmp/test/libtest.o -fPIC -c tests/c-src/libtest.c -I./include
|
||||||
|
|
||||||
tmp/test/libtest.so: src/libtest.c
|
tmp/test/libtest.so: tests/c-src/libtest.c
|
||||||
mkdir -p tmp/test
|
mkdir -p tmp/test
|
||||||
${CC} -o tmp/test/libtest.so -shared -fPIC tests/c-src/libtest.c -I./include
|
${CC} -o tmp/test/libtest.so -shared -fPIC tests/c-src/libtest.c -I./include
|
||||||
|
|
||||||
tmp/test/libtest.a: tmp/test/libtest.o src/libtest.c
|
tmp/test/libtest.a: tmp/test/libtest.o src/libtest.c
|
||||||
ar rcs tmp/test/libtest.a tmp/test/libtest.o
|
ar rcs tmp/test/libtest.a tmp/test/libtest.o
|
||||||
|
|
||||||
#test-interpreter-compliance: tests/libtest.so
|
|
||||||
#SCHEME=${SCHEME} script-r7rs -I . -I .. tests/compliance.scm
|
|
||||||
|
|
||||||
#test-interpreter-compliance-docker:
|
|
||||||
#docker build -f dockerfiles/test . --build-arg SCHEME=${SCHEME} --tag=pffi-${SCHEME}
|
|
||||||
#docker run -v ${PWD}:/workdir pffi-${SCHEME} bash -c "cd /workdir && SCHEME=${SCHEME} script-r7rs -I . -I .. tests/compliance.scm"
|
|
||||||
|
|
||||||
#test-compile-library: tests/libtest.so libtest.a libtest.o
|
|
||||||
#SCHEME=${SCHEME} compile-r7rs-library retropikzel/pffi.sld
|
|
||||||
|
|
||||||
#test-compiler-compliance-compile: test-compile-library
|
|
||||||
#SCHEME=${SCHEME} CFLAGS="-I./include -L." LDFLAGS="-ltest -L." compile-r7rs -I . tests/compliance.scm
|
|
||||||
#./tests/compliance
|
|
||||||
|
|
||||||
#test-compiler-compliance: test-compiler-compliance-compile
|
|
||||||
#./tests/compliance
|
|
||||||
|
|
||||||
#test-compiler-compliance-docker: tests/libtest.so libtest.a
|
|
||||||
#docker build -f dockerfiles/test . --build-arg SCHEME=${SCHEME} --tag=pffi-${SCHEME}
|
|
||||||
#docker run -v ${PWD}:/workdir pffi-${SCHEME} bash -c "cd /workdir && SCHEME=${SCHEME} compile-r7rs-library retropikzel/pffi.sld"
|
|
||||||
#docker run -v ${PWD}:/workdir pffi-${SCHEME} bash -c "cd /workdir && SCHEME=${SCHEME} compile-r7rs -I . compliance.scm && ./test"
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf retropikzel/pffi/*.o*
|
@rm -rf retropikzel/pffi/*.o*
|
||||||
@rm -rf retropikzel/pffi/*.so
|
@rm -rf retropikzel/pffi/*.so
|
||||||
|
|
@ -101,7 +98,6 @@ clean:
|
||||||
@rm -rf test/pffi-define
|
@rm -rf test/pffi-define
|
||||||
@rm -rf test/*gambit*
|
@rm -rf test/*gambit*
|
||||||
find . -name "*.link" -delete
|
find . -name "*.link" -delete
|
||||||
#find . -name "*.c" -not -name "libtest.c" -and -not -name "pffi.c" -delete
|
|
||||||
find . -name "*.o" -delete
|
find . -name "*.o" -delete
|
||||||
find . -name "*.o[1-9]" -delete
|
find . -name "*.o[1-9]" -delete
|
||||||
find . -name "*.so" -delete
|
find . -name "*.so" -delete
|
||||||
|
|
|
||||||
|
|
@ -268,12 +268,6 @@ in it:
|
||||||
cd snow/retropikzel/pffi
|
cd snow/retropikzel/pffi
|
||||||
make <SCHEME>
|
make <SCHEME>
|
||||||
|
|
||||||
If make says:
|
|
||||||
|
|
||||||
make: *** No rule to make target 'SCHEME'. Stop.
|
|
||||||
|
|
||||||
then implementation does not need anything to be built.
|
|
||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
<a name="installation-project-local-windows"></a>
|
<a name="installation-project-local-windows"></a>
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -4,6 +4,15 @@ chibi: chibi-src/pffi.stub
|
||||||
chibi-ffi chibi-src/pffi.stub
|
chibi-ffi chibi-src/pffi.stub
|
||||||
${CC} -g3 -o chibi-pffi.so chibi-src/pffi.c -fPIC -lffi -shared
|
${CC} -g3 -o chibi-pffi.so chibi-src/pffi.c -fPIC -lffi -shared
|
||||||
|
|
||||||
|
chicken:
|
||||||
|
@echo "Nothing to build for Chicken"
|
||||||
|
|
||||||
|
cyclone:
|
||||||
|
@echo "Nothing to build for Cyclone"
|
||||||
|
|
||||||
|
gambit:
|
||||||
|
@echo "Nothing to build for Gambit"
|
||||||
|
|
||||||
gauche: gauche-src/gauche-pffi.c gauche-src/gauchelib.scm
|
gauche: gauche-src/gauche-pffi.c gauche-src/gauchelib.scm
|
||||||
gauche-package compile \
|
gauche-package compile \
|
||||||
--srcdir=gauche-src \
|
--srcdir=gauche-src \
|
||||||
|
|
@ -11,3 +20,36 @@ gauche: gauche-src/gauche-pffi.c gauche-src/gauchelib.scm
|
||||||
--cflags="-I./include" \
|
--cflags="-I./include" \
|
||||||
--libs=-lffi \
|
--libs=-lffi \
|
||||||
gauche-pffi gauche-pffi.c gauchelib.scm
|
gauche-pffi gauche-pffi.c gauchelib.scm
|
||||||
|
|
||||||
|
gerbil:
|
||||||
|
@echo "Nothing to build for Gerbil"
|
||||||
|
|
||||||
|
guile:
|
||||||
|
@echo "Nothing to build for Guile"
|
||||||
|
|
||||||
|
kawa:
|
||||||
|
@echo "Nothing to build for Kawa"
|
||||||
|
|
||||||
|
larceny:
|
||||||
|
@echo "Nothing to build for Larceny"
|
||||||
|
|
||||||
|
mosh:
|
||||||
|
@echo "Nothing to build for Mosh"
|
||||||
|
|
||||||
|
racket:
|
||||||
|
@echo "Nothing to build for Racket"
|
||||||
|
|
||||||
|
sagittarius:
|
||||||
|
@echo "Nothing to build for Sagittarius"
|
||||||
|
|
||||||
|
skint:
|
||||||
|
@echo "Nothing to build for Skint"
|
||||||
|
|
||||||
|
stklos:
|
||||||
|
@echo "Nothing to build for Stklos"
|
||||||
|
|
||||||
|
tr7:
|
||||||
|
@echo "Nothing to build for tr7"
|
||||||
|
|
||||||
|
ypsilon:
|
||||||
|
@echo "Nothing to build for Ypsilon"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue