Add example makefile
This commit is contained in:
parent
58c9424398
commit
1b2a9f3fb7
16
README.md
16
README.md
|
|
@ -24,7 +24,7 @@ DESCRIPTION
|
||||||
SUPPORTED IMPLEMENTATIONS
|
SUPPORTED IMPLEMENTATIONS
|
||||||
Some implementations support both compiling and interpreting, in that
|
Some implementations support both compiling and interpreting, in that
|
||||||
case only the compiler functionality is used and the implementation is
|
case only the compiler functionality is used and the implementation is
|
||||||
marked as compiler. Except currently with Gambit.
|
marked as compiler.
|
||||||
|
|
||||||
R6RS Compilers
|
R6RS Compilers
|
||||||
loko
|
loko
|
||||||
|
|
@ -111,5 +111,19 @@ EXAMPLES
|
||||||
|
|
||||||
COMPILE_SCHEME=SCHEME compile-scheme -I ./libs -o foo main.scm
|
COMPILE_SCHEME=SCHEME compile-scheme -I ./libs -o foo main.scm
|
||||||
|
|
||||||
|
Makefile for interpreter
|
||||||
|
|
||||||
|
PREFIX=/usr/local
|
||||||
|
SCHEME=chibi
|
||||||
|
|
||||||
|
build:
|
||||||
|
COMPILE_SCHEME=${SCHEME} compile-scheme -I ${PREFIX}/lib/myapp/librarydirectory -o myapp myapp.scm
|
||||||
|
|
||||||
|
install:
|
||||||
|
mkdir -p ${PREFIX}/lib/myapp
|
||||||
|
cp -r librarydirectory ${PREFIX}/lib/myapp/
|
||||||
|
cp myapp.scm ${PREFIX}/lib/myapp/myapp.scm
|
||||||
|
install myapp ${PREFIX}/bin/myapp
|
||||||
|
|
||||||
compile-scheme(1)
|
compile-scheme(1)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
@ -123,3 +123,22 @@ COMPILE_SCHEME=SCHEME compile-scheme -I ./libs -o foo main.sps
|
||||||
Compile R7RS file with dependencies in libs directory, to output named foo.
|
Compile R7RS file with dependencies in libs directory, to output named foo.
|
||||||
.IP
|
.IP
|
||||||
COMPILE_SCHEME=SCHEME compile-scheme -I ./libs -o foo main.scm
|
COMPILE_SCHEME=SCHEME compile-scheme -I ./libs -o foo main.scm
|
||||||
|
.P
|
||||||
|
Makefile for interpreter
|
||||||
|
.IP
|
||||||
|
.nf
|
||||||
|
.eo
|
||||||
|
PREFIX=/usr/local
|
||||||
|
SCHEME=chibi
|
||||||
|
|
||||||
|
build:
|
||||||
|
COMPILE_SCHEME=${SCHEME} compile-scheme -I ${PREFIX}/lib/myapp/librarydirectory -o myapp myapp.scm
|
||||||
|
|
||||||
|
install:
|
||||||
|
mkdir -p ${PREFIX}/lib/myapp
|
||||||
|
cp -r librarydirectory ${PREFIX}/lib/myapp/
|
||||||
|
cp myapp.scm ${PREFIX}/lib/myapp/myapp.scm
|
||||||
|
install myapp ${PREFIX}/bin/myapp
|
||||||
|
.ec
|
||||||
|
.fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue