home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / utlsrc33.lzh / UTLSRC33 / MAKEFILE.DEC < prev    next >
Text File  |  1993-07-30  |  2KB  |  94 lines

  1. #
  2. # Makefile for utils for Atari Cross Compilers
  3. # - adjust CROSSDIR below for your setup
  4. # - define CC to be the path to your hosts C compiler (gcc preferred except on sparc
  5. #        on the sparc cc is the preferred host C compiler).
  6. # - If you are going to run the cross linker on a machine that aligns structures
  7. #   at longword boundaries (machines such as Sun-Sparc, Convex etc) add
  8. #   -DWORD_ALIGNED to CFLAGS
  9. # - If you are going to run the cross linker on a machine that has the opposite
  10. #    byte sex to a m68k, ie a little endian host, the add -DBYTE_SWAP to CFLAGS.
  11. # (for instance on a decStation 3x00/5x00 you need -DBYTE_SWAP && -DWORD_ALIGNED=1)
  12. #
  13. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  14. CROSSBIN = $(CROSSDIR)/bin
  15. CROSSLIB = $(CROSSDIR)/lib
  16. CROSSINC = $(CROSSDIR)/include
  17.  
  18. # Host GCC
  19. CC=cc
  20. # Host include dir
  21. HOSTINC = /usr/include
  22.  
  23. CFLAGS = -O -I. -I$(HOSTINC) -I$(CROSSINC) -DCROSSATARI=1 \
  24. -DCROSSDIR=\"$(CROSSDIR)\" -DCROSSLIB=\"$(CROSSLIB)\" -DBYTE_SWAP \
  25. -DWORD_ALIGNED=1
  26.  
  27. ALL = ld sym-ld nm car size size68 tnm xstrip fixstk printstk
  28.  
  29. all: $(ALL)
  30. #
  31. # the 'regular' linker, produces atari executables
  32. #
  33. ld : ld.o cplusdem.o
  34.     $(CC) -o ld ld.o cplusdem.o
  35.  
  36. #
  37. # the 'other' linker, produces atari gdb compat symb files
  38. #
  39. sym-ld : sym-ld.o  cplusdem.o
  40.     $(CC) -o sym-ld sym-ld.o cplusdem.o
  41.  
  42. #
  43. # obj file describer?
  44. #
  45. nm : nm.o cplusdem.o
  46.     $(CC) -o nm nm.o cplusdem.o 
  47.  
  48. # Object file sizes
  49. #
  50. size: size.o
  51.     $(CC) -o size size.o
  52.  
  53. #
  54. # ar - archiver/librarian
  55. #
  56. car : ar.o
  57.     $(CC) -o car ar.o
  58.  
  59. #
  60. # TOS executable file sizes
  61. #
  62. size68: size68.o
  63.     $(CC) -o size68 size68.o
  64.  
  65. #
  66. # TOS format symbol dumper
  67. #
  68. tnm: cnm.o
  69.     $(CC) -o tnm cnm.o
  70.  
  71. #
  72. # TOS format symbol table stripper
  73. #
  74. xstrip: strip.o
  75.     $(CC) -o xstrip strip.o
  76.  
  77. install: $(ALL)
  78.     cp ld $(CROSSLIB)/gcc-ld
  79.     cp nm $(CROSSBIN)/cnm
  80.     cp car $(CROSSBIN)/car
  81.     cp size $(CROSSBIN)/csize
  82.     cp size68 $(CROSSBIN)/csize68
  83.     cp tnm $(CROSSBIN)/tnm
  84.     cp xstrip $(CROSSBIN)/xstrip
  85.     cp sym-ld $(CROSSBIN)/sym-ld
  86.     cp  fixstk printstk $(CROSSBIN)
  87.  
  88. clean:
  89.     rm -f *.o
  90.  
  91. realclean: clean
  92.     rm -f $(ALL) core report
  93.