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.
 
 
 
 
 
 

85 lines
2.2 KiB

  1. #
  2. # Makefile for bwbasic on Linux 10-02-2021 kenunix
  3. # Now version bwbasic-3.20d
  4. #
  5. # 10-02-2021 kenunix add addgui and delgui and corrected typos.
  6. # set DEST to /usr/local/bin
  7. #
  8. # Tested on Ubuntu 18.04 Had to fix compatabily issues
  9. # Ubuntu 20.04 Had to fix compatabily issues
  10. # Debian 10 Buster
  11. # Beaglebone Black with Debian 10
  12. # Raspberry Pi running Debian 10 Buster
  13. # Linux Mint LMDE4
  14. # Linux Lite 4.8
  15. #
  16. # ken.unix.guy@gmail.com
  17. #
  18. CC=gcc
  19. # If running on a Beaglebone you might want to replace
  20. # CFLAGS=-s -ansi with CFLAGS=-Os -ansi
  21. # to have a smaller runtime size
  22. CFLAGS=-s -ansi
  23. LIB=-lm
  24. DEST=/usr/local/bin
  25. # HOME=$HOME
  26. .PHONY: all
  27. all: bwbasic renum
  28. ls -l bwbasic renum
  29. bwbasic: bw*.c bw*.h
  30. $(CC) $(CFLAGS) -o bwbasic bw*.c $(LIB)
  31. renum: renum.c
  32. $(CC) $(CFLAGS) -o renum renum.c $(LIB)
  33. # bwbasic and renum runtime. editfl.bas temp file created by renum
  34. clean:
  35. rm -f *.o bwbasic renum editfl.bas core
  36. install:
  37. ls -l bwbasic renum
  38. cp bwbasic renum GUI/bwbasic.sh $(DEST)/.
  39. ls -l $(DEST)/bwbasic $(DEST)/renum $(DEST)/bwbasic.sh
  40. mkdir -p /usr/share/bwbasic
  41. mkdir -p /usr/share/doc/bwbasic
  42. mkdir -p /usr/share/doc/bwbasic/docs
  43. cp BAS-EXAMPLES/* /usr/share/bwbasic/.
  44. cp DOCS/* /usr/share/doc/bwbasic/docs/.
  45. cp README READMEFIRST /usr/share/doc/bwbasic/.
  46. cp COPYING /usr/share/doc/bwbasic/.
  47. cp bwbasic.png /usr/share/pixmaps/.
  48. cp bwbasic.desktop /usr/share/applications/bwbasic.desktop
  49. remove:
  50. rm $(DEST)/bwbasic $(DEST)/renum $(DEST)/bwbasic.sh
  51. rm -r -f /usr/share/bwbasic
  52. rm -r -f /usr/share/doc/bwbasic
  53. rm -f /usr/share/pixmaps/bwbasic.png
  54. rm -f /usr/share/applications/bwbasic.desktop
  55. uninstall:
  56. rm $(DEST)/bwbasic $(DEST)/renum $(DEST)/bwbasic.sh
  57. rm -r -f /usr/share/bwbasic
  58. rm -r -f /usr/share/doc/bwbasic
  59. rm -f /usr/share/pixmaps/bwbasic.png
  60. rm -f /usr/share/applications/bwbasic.desktop
  61. run:
  62. $(DEST)/bwbasic
  63. runlocal:
  64. ./bwbasic
  65. # Must do as user not root
  66. addgui:
  67. cp bwbasic.desktop ${HOME}/Desktop/bwbasic.desktop
  68. ls -l ${HOME}/Desktop/bwbasic.desktop
  69. # Must do as user not root
  70. delgui:
  71. rm -f ${HOME}/Desktop/bwbasic.desktop