home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 363_01 / makefile < prev    next >
Makefile  |  1991-12-17  |  3KB  |  109 lines

  1. # Makefile to make the 68020 assembler.
  2.  
  3. OBJECT =\
  4. assemble.obj bitfield.obj build.obj codegen.obj directiv.obj error.obj \
  5. eval.obj globals.obj instlook.obj insttabl.obj listing.obj main.obj miscel.obj \
  6. movem.obj object.obj opparse.obj symbol.obj trapcc.obj
  7.  
  8.  
  9. MAPOBJECT=\
  10. assemble+bitfield+build+codegen+directiv+error+eval+globals+instlook+insttabl+\
  11. listing+main+miscel+movem+object+opparse+symbol+trapcc
  12.  
  13. # Flags for normal use.
  14.  
  15. CFLAGS = -c -r -m -i
  16.  
  17. # Flags for the debugger.
  18.  
  19. # CFLAGS = -g -c -r -m -i
  20.  
  21. # g - insert line number information in the .obj file (for the debugger)
  22. # c - do not link
  23. # r - enforce strict autoprototyping
  24. # s - check stack overflow at the beginning of each function.
  25. # g - generate .map file for the debugger
  26. # m - small model
  27. # i - integers only
  28.  
  29. # compile rule for the debugger
  30.  
  31. asm.exe: $(OBJECT) asm.lnk
  32.     blink @asm.lnk /co/noi/li/m
  33.  
  34. # rules for .obj files
  35.  
  36. directiv.obj: directiv.c asm.h proto.h
  37.     ztc $(CFLAGS) directiv
  38.  
  39. error.obj: error.c asm.h proto.h
  40.     ztc $(CFLAGS) error
  41.  
  42. eval.obj: eval.c asm.h proto.h
  43.     ztc $(CFLAGS) eval
  44.  
  45. globals.obj: globals.c asm.h proto.h
  46.     ztc $(CFLAGS) globals
  47.  
  48. instlook.obj: instlook.c asm.h proto.h
  49.     ztc $(CFLAGS) instlook
  50.  
  51. listing.obj: listing.c asm.h proto.h
  52.     ztc $(CFLAGS) listing
  53.  
  54. main.obj: main.c asm.h proto.h
  55.     ztc $(CFLAGS) main
  56.  
  57. movem.obj: movem.c asm.h proto.h
  58.     ztc $(CFLAGS) movem
  59.  
  60. object.obj: object.c asm.h proto.h
  61.     ztc $(CFLAGS) object
  62.  
  63. opparse.obj: opparse.c asm.h proto.h
  64.     ztc $(CFLAGS) opparse
  65.  
  66. symbol.obj: symbol.c asm.h proto.h
  67.     ztc $(CFLAGS) symbol
  68.  
  69. assemble.obj: assemble.c asm.h proto.h
  70.     ztc $(CFLAGS) assemble
  71.  
  72. build.obj: build.c asm.h proto.h
  73.     ztc $(CFLAGS) build
  74.  
  75. codegen.obj: codegen.c asm.h proto.h
  76.     ztc $(CFLAGS) codegen
  77.  
  78. insttabl.obj: insttabl.c asm.h proto.h
  79.     ztc $(CFLAGS) insttabl
  80.  
  81. bitfield.obj: bitfield.c asm.h proto.h
  82.     ztc $(CFLAGS) bitfield
  83.  
  84. trapcc.obj: trapcc.c asm.h proto.h
  85.     ztc $(CFLAGS) trapcc
  86.  
  87. miscel.obj: miscel.c asm.h proto.h
  88.     ztc $(CFLAGS) miscel
  89.  
  90. # create linker response file whenever makefile is changed
  91.  
  92. asm.lnk: makefile
  93.     echo assemble.obj+bitfield.obj+build.obj+codegen.obj+ > asm.lnk
  94.     echo directiv.obj+error.obj+eval.obj+globals.obj+instlook.obj+ >> asm.lnk
  95.     echo insttabl.obj+listing.obj+main.obj+miscel.obj+movem.obj+ >> asm.lnk
  96.     echo object.obj+opparse.obj+symbol.obj+trapcc.obj >> asm.lnk
  97.     echo asm.exe >> asm.lnk
  98.  
  99.  
  100. clean:
  101.     del *.obj
  102.     del *.exe
  103.     del *.map
  104.     del *.h68
  105.     del *.lis
  106.     del *.bak
  107.     del *.tmp
  108.     del asm.lnk
  109.