home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 529a.lha / A68k_v2.71 / Makefile.a50 < prev    next >
Makefile  |  1991-07-02  |  2KB  |  54 lines

  1. # Simple makefile to compile and link the A68k Assembler.
  2. # Created 23Jun87 by J.A. Lydiatt
  3. # 19Mar90 - This version for Manx 5.0
  4. # protos.h added April 16, 1991 by Charlie Gibbs.
  5.  
  6. OBJ=    A68kmain.o Opcodes.o Operands.o Adirect.o A68kmisc.o\
  7.     Symtab.o Codegen.o wb_parse.o
  8.  
  9. SHARLIB1= A68k.doc makefile A68kdef.h A68kglb.h A68kmain.c Opcodes.c Operands.c\
  10.     Adirect.c A68kmisc.c Symtab.c Codegen.c wb_parse.c isspace.c
  11.  
  12. SRC=    A68kmain.c Opcodes.c Operands.c Adirect.c A68kmisc.c\
  13.     Symtab.c Codegen.c wb_parse.c isspace.c
  14.  
  15. SHARLIB2= A68k.uue
  16.  
  17. # -ps - use 16 bit integers
  18. # -wo - pointer to integer conversions are warnings, not errors
  19. # -so - maximum optimization including:
  20. #     - two pass assembly for branch squeezing and other optimizations
  21. #     - put test at bottom for for(;;) loops
  22. #     - use inline macros for several functions - strlen() etc?
  23. #     - don't generate link/unlink if no local variables.
  24. #     - delay popping arguments until necessary.
  25. #     - allocate registers based on wighted usage counts.
  26. #     - replace duplicate strings with pointers to first occurance.
  27.  
  28. .c.o:
  29.     cc -ps -so -wo $*.c
  30.  
  31. .a.o:
  32.     A68k -d -o$*.o $*.a
  33.  
  34. A68k:    $(OBJ) 
  35.     ln -o A68k $(OBJ) -lc16
  36.  
  37. $(OBJ):    A68kdef.h A68kglb.h protos.h
  38.  
  39. #
  40. # Note: Manx's makefile seems to have a bug that forbids indirection
  41. #    such as "shar >lib a.c  b.c c.c"
  42. #    however "make >lib" seems to work fine if you edit out the
  43. #    commands make echos as it proceeds through the makefile.
  44. #
  45. #    Try make >ram:shardcp Archive 
  46. #
  47.  
  48. Archive:
  49.     shar $(SHARLIB1)
  50.     shar $(SHARLIB2)
  51.  
  52. Lint:
  53.     lint -iAztec:include Aztec:Stdlib.c Aztec:Defaults.c $(SRC)
  54.