psl-mac.sh 769 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #! /bin/bash -v
  2. rm -f bpsl
  3. # The Macintosh compiler is very noisy in its complaints about uses of
  4. # deprecated functions - in this case sbrk. So at least for a while I
  5. # will set a compiler flag to stop it from bothering me about things that
  6. # amd well aware of.
  7. # The Linux version of main.s should not be compatible enough for use here.
  8. gcc -g -O0 \
  9. -DMACINTOSH \
  10. -Wno-deprecated-declarations \
  11. -DBPSSIZE=20500000 \
  12. bps.c \
  13. bpsheap.c \
  14. echo.c \
  15. file-status.c \
  16. float.c \
  17. os-hooks.c \
  18. pslextras.c \
  19. pslsocket.c \
  20. pwd-fn.c \
  21. sigs.c \
  22. unix-io.c \
  23. creloc.c \
  24. formlink2.c \
  25. pslstubs.c \
  26. linux-main.s \
  27. linux-dmain.s \
  28. acn.s \
  29. acn1.c \
  30. -lm -ldl -lpthread \
  31. -o bpsl
  32. ./try-bpsl.sh
  33. # end of script