Advertisement
Guest User

Untitled

a guest
Apr 12th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #!/bin/bash
  2. # 12apr18abu
  3.  
  4. BIN=../bin
  5. LIB=../lib
  6.  
  7. OS=Disneyland
  8.  
  9. PIE=
  10. MAIN="-Wl,--no-as-needed -rdynamic -lc -lm -ldl"
  11. SHARED="-shared -export-dynamic"
  12.  
  13. gcc -o sysdefs -D_FILE_OFFSET_BITS=64 sysdefs.c
  14. strip sysdefs
  15.  
  16. ./mkAsm emu "" .c ${OS} base "" ${LIB}/map \
  17. version.l glob.l main.l \
  18. gc.l apply.l flow.l sym.l subr.l big.l io.l db.l net.l err.l \
  19. sys/emu.code.l
  20. ./mkAsm emu "" .c ${OS} ext T "" ext.l
  21. ./mkAsm emu "" .c ${OS} ht T "" ht.l
  22.  
  23. gcc -c -O -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.base.c
  24. gcc -c -O -fpic -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.ext.c
  25. gcc -c -O -fpic -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.ht.c
  26.  
  27. gcc -o ${BIN}/picolisp emu.base.o ${MAIN} ${PIE}
  28. gcc -o ${LIB}/ext emu.ext.o ${SHARED}
  29. gcc -o ${LIB}/ht emu.ht.o ${SHARED}
  30.  
  31. strip ${BIN}/picolisp
  32. strip ${LIB}/ext
  33. strip ${LIB}/ht
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement