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.
 
 
 
 
 
 

101 lines
2.4 KiB

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