ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
1.9 KiB

  1. #
  2. # Makefile for bwbasic on Linux 8-9-2020
  3. # Now version bwbasic-3.20d
  4. #
  5. # Tested on Ubuntu 18.04 Had to fix compatabily issues
  6. # Ubuntu 20.04 Had to fix compatabily issues
  7. # Debian 10 Buster
  8. # Beaglebone Black with Debian 10
  9. # Raspberry Pi running Debian 10 Buster
  10. # Linux Mint LMDE4
  11. # Linux Lite 4.8
  12. #
  13. # ken.at.github@gmail.com
  14. #
  15. CC=gcc
  16. # If running on a Beaglebone you might want to replace
  17. # CFLAGS=-s -ansi with CFLAGS=-Os -ansi
  18. # to have a smaller runtime size
  19. CFLAGS=-s -ansi
  20. LIB=-lm
  21. DEST=/usr/bin
  22. # HOME=$HOME
  23. bwbasic:
  24. $(CC) $(CFLAGS) -o bwbasic bw*.c $(LIB) -DLINUX
  25. $(CC) $(CFLAGS) -o renum renum.c $(LIB)
  26. ls -l bwbasic renum
  27. # bwbasic and renum runtime. editfl temp file created by renum
  28. clean:
  29. rm *.o bwbasic renum editfl core || true
  30. install:
  31. ls -l bwbasic renum
  32. cp bwbasic renum GUI/bwbasic.sh $(DEST)/.
  33. ls -l $(DEST)/bwbasic $(DEST)/renum $(DEST)/bwbasic.sh
  34. mkdir -p /usr/share/bwbasic
  35. mkdir -p /usr/share/doc/cbwbasic
  36. mkdir -p /usr/share/doc/bwbasic/docs
  37. mkdir -p $HOME/Desktop
  38. cp BAS-EXAMPLES/* /usr/share/bwbasic/.
  39. cp DOCS/* /usr/share/doc/bwbasic/docs/.
  40. cp README READMEFIRST /usr/share/doc/bwbasic/.
  41. cp COPYING /usr/share/doc/bwbasic/.
  42. cp bwbasic.png /usr/share/pixmaps/.
  43. cp bwbasic.desktop /usr/share/applications/bwbasic.desktop
  44. # cp bwbasic.desktop $HOME/Desktop/.
  45. # chmod 666 $HOME/Desktop/bwbasic/desktop
  46. remove:
  47. rm $(DEST)/bwbasic $(DEST)/renum $(DEST)/bwbasic.sh
  48. rm -r -f /usr/share/bwbasic
  49. rm -r -f /usr/share/doc/bwbasic
  50. rm -f /usr/share/pixmaps/bwbasic.png
  51. rm -f /usr/share/applications/bwbasic.desktop
  52. uninstall:
  53. rm $(DEST)/bwbasic $(DEST)/renum $(DEST)/bwbasic.sh
  54. rm -r -f /usr/share/bwbasic
  55. rm -r -f /usr/share/doc/bwbasic
  56. rm -f /usr/share/pixmaps/bwbasic.png
  57. rm -f /usr/share/applications/bwbasic.desktop
  58. run:
  59. $(DEST)/bwbasic
  60. runlocal:
  61. ./bwbasic