Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # 12apr18abu
- BIN=../bin
- LIB=../lib
- OS=Disneyland
- PIE=
- MAIN="-Wl,--no-as-needed -rdynamic -lc -lm -ldl"
- SHARED="-shared -export-dynamic"
- gcc -o sysdefs -D_FILE_OFFSET_BITS=64 sysdefs.c
- strip sysdefs
- ./mkAsm emu "" .c ${OS} base "" ${LIB}/map \
- version.l glob.l main.l \
- gc.l apply.l flow.l sym.l subr.l big.l io.l db.l net.l err.l \
- sys/emu.code.l
- ./mkAsm emu "" .c ${OS} ext T "" ext.l
- ./mkAsm emu "" .c ${OS} ht T "" ht.l
- gcc -c -O -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.base.c
- gcc -c -O -fpic -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.ext.c
- gcc -c -O -fpic -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.ht.c
- gcc -o ${BIN}/picolisp emu.base.o ${MAIN} ${PIE}
- gcc -o ${LIB}/ext emu.ext.o ${SHARED}
- gcc -o ${LIB}/ht emu.ht.o ${SHARED}
- strip ${BIN}/picolisp
- strip ${LIB}/ext
- strip ${LIB}/ht
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement