home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / RiscOS / APP / DEVS / FORTH / BEETLE / BEETLE.ZIP / Beetle / Makefile < prev    next >
Makefile  |  1997-04-22  |  2KB  |  66 lines

  1. # Makefile for C Beetle
  2. # Reuben Thomas   11/94-31/3/97
  3.  
  4.  
  5. # The next few lines are user modifiable
  6.  
  7. # The names of your C compiler and linker; here we assume it's GCC
  8. CC = gcc
  9. LD = gcc -o $@
  10.  
  11. # If your machine is big-endian, you should uncomment the next line
  12. #ENDISM = -DBIG_ENDIAN
  13.  
  14. # Flags for the C compiler; the uncommented version of CCflags is recommended
  15. # as the commented one is meant for development
  16. # If you change CCflags, make sure it still ends in $(ENDISM)
  17. # add -DB_DEBUG for debugging output
  18. CFLAGS = -O3 $(ENDISM)
  19. #CFLAGS = -pedantic-errors -Wall $(ENDISM)
  20.  
  21.  
  22. # The rest of the file is not user-modifiable
  23.  
  24. BeetleObjs = storage.o tests.o step.o run.o lib.o debug.o loadobj.o saveobj.o
  25. TestHeaders = beetle.h opcodes.h debug.h btests.h
  26. BTests = aritmtit brancht comparet createt doloopt initialt libt literalt \
  27.     logict memoryt stackt stept runt loadobjt saveobjt exceptst linkt
  28. BTestsO = aritmtit.o brancht.o comparet.o createt.o doloopt.o initialt.o \
  29.     libt.o literalt.o logict.o memoryt.o stackt.o stept.o runt.o \
  30.     loadobjt.o saveobjt.o exceptst.o linkt.o
  31.  
  32.  
  33. # Targets
  34.  
  35. all:        beetle uiface btests
  36.  
  37.  
  38. beetle:        beetle.o $(BeetleObjs)
  39.     $(LD)    $@.o $(BeetleObjs)
  40.  
  41. beetle.o:    $(TestHeaders)
  42.  
  43.  
  44. btests:        $(BTests)
  45.  
  46. $(BTests):    $(BTestsO) $(BeetleObjs)
  47.     $(LD)    $@.o $(BeetleObjs)
  48.  
  49. uiface:        uiface.o $(BeetleObjs)
  50.     $(LD)    $@.o $(BeetleObjs)
  51.  
  52. uiface.o:    $(TestHeaders)
  53.  
  54.  
  55. # Other dependencies
  56.  
  57. step.o:        beetle.h opcodes.h execute.c excepts.c
  58. run.o:            beetle.h opcodes.h execute.c excepts.c
  59. storage.o:    beetle.h
  60. debug.o:    beetle.h opcodes.h debug.h
  61.  
  62. beetle.h:    bportab.h
  63.     touch beetle.h
  64. debug.h:    beetle.h
  65.     touch debug.h
  66.