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.
 
 
 
 
 
 

116 lines
2.8 KiB

  1. # Unix Makefile for Bywater BASIC Interpreter
  2. ##---------------------------------------------------------------##
  3. ## NOTE: Modifications marked "JBV" were made by Jon B. Volkoff, ##
  4. ## 11/1995 (eidetics@cerf.net). ##
  5. ##---------------------------------------------------------------##
  6. srcdir = @srcdir@
  7. VPATH = @srcdir@
  8. CC = @CC@
  9. INSTALL = @INSTALL@
  10. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  11. INSTALL_DATA = @INSTALL_DATA@
  12. DEFS = @DEFS@
  13. # Revised by JBV
  14. #CFLAGS = -O
  15. CFLAGS = -g -ansi -DHAVE_UNIX
  16. # Revised by JBV
  17. #LDFLAGS = -s
  18. prefix = /usr/local
  19. exec_prefix = $(prefix)
  20. bindir = $(exec_prefix)/bin
  21. SHELL = /bin/sh
  22. CFILES= bwbasic.c bwb_cmd.c bwb_cnd.c bwb_dio.c\
  23. bwb_exp.c bwb_fnc.c bwb_inp.c bwb_int.c\
  24. bwb_prn.c bwb_stc.c bwb_str.c bwb_tbl.c\
  25. bwb_var.c bwd_cmd.c bwd_fun.c bwx_tty.c
  26. OFILES= bwbasic.o bwb_cmd.o bwb_cnd.o bwb_dio.o\
  27. bwb_exp.o bwb_fnc.o bwb_inp.o bwb_int.o\
  28. bwb_prn.o bwb_stc.o bwb_str.o bwb_tbl.o\
  29. bwb_var.o bwd_cmd.o bwd_fun.o bwx_tty.o
  30. HFILES= bwbasic.h
  31. MISCFILES= COPYING INSTALL Makefile.in README bwbasic.doc\
  32. bwbasic.mak configure.in configure makefile.qcl\
  33. bwb_tcc.c bwx_iqc.c bwx_iqc.h
  34. TESTFILES= \
  35. abs.bas assign.bas callfunc.bas callsub.bas chain1.bas\
  36. chain2.bas dataread.bas deffn.bas dim.bas doloop.bas\
  37. dowhile.bas elseif.bas end.bas err.bas fncallfn.bas\
  38. fornext.bas function.bas gosub.bas gotolabl.bas ifline.bas\
  39. index.txt input.bas lof.bas loopuntl.bas main.bas\
  40. mlifthen.bas on.bas onerr.bas onerrlbl.bas ongosub.bas\
  41. opentest.bas option.bas putget.bas random.bas selcase.bas\
  42. snglfunc.bas stop.bas term.bas whilwend.bas width.bas\
  43. writeinp.bas pascaltr.bas
  44. DISTFILES= $(CFILES) $(HFILES) $(MISCFILES)
  45. # Revised by JBV
  46. #all: bwbasic
  47. all: bwbasic renum
  48. bwbasic: $(OFILES)
  49. $(CC) $(OFILES) -lm -o $@ $(LDFLAGS)
  50. # Added by JBV
  51. renum:
  52. $(CC) renum.c -o renum
  53. $(OFILES): $(HFILES)
  54. .c.o:
  55. $(CC) -c $(CPPFLAGS) -I$(srcdir) $(DEFS) $(CFLAGS) $<
  56. install: all
  57. $(INSTALL_PROGRAM) bwbasic $(bindir)/bwbasic
  58. uninstall:
  59. rm -f $(bindir)/bwbasic
  60. Makefile: Makefile.in config.status
  61. $(SHELL) config.status
  62. config.status: configure
  63. $(SHELL) config.status --recheck
  64. configure: configure.in
  65. cd $(srcdir); autoconf
  66. TAGS: $(CFILES)
  67. etags $(CFILES)
  68. clean:
  69. rm -f *.o bwbasic core
  70. mostlyclean: clean
  71. distclean: clean
  72. rm -f Makefile config.status
  73. realclean: distclean
  74. rm -f TAGS
  75. dist: $(DISTFILES)
  76. echo bwbasic-2.61 > .fname
  77. rm -rf `cat .fname`
  78. mkdir `cat .fname`
  79. ln $(DISTFILES) `cat .fname`
  80. mkdir `cat .fname`/bwbtest
  81. cd bwbtest; ln $(TESTFILES) ../`cat ../.fname`/bwbtest
  82. tar czhf `cat .fname`.tar.gz `cat .fname`
  83. rm -rf `cat .fname` .fname
  84. # Prevent GNU make v3 from overflowing arg limit on SysV.
  85. .NOEXPORT: