home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / utlsrc33.lzh / UTLSRC33 / MAKEFILE.CRO < prev    next >
Text File  |  1993-07-30  |  2KB  |  101 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. #
  12. #
  13. CROSSDIR = /share/gcc-cross/atari
  14. CROSSBIN = $(CROSSDIR)/bin
  15. CROSSLIB = $(CROSSDIR)/lib
  16. CROSSINC = $(CROSSDIR)/include
  17.  
  18. # Host GCC
  19. CC=/usr/local/bin/gcc
  20. # Host include dir
  21. #HOSTINC = /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/include
  22. HOSTINC = /usr/include
  23.  
  24. CFLAGS = -O2 -I. -I$(HOSTINC) -I$(CROSSINC) -DCROSSATARI=1 \
  25. -DCROSSDIR=\"$(CROSSDIR)\" -DCROSSLIB=\"$(CROSSLIB)\" -DWORD_ALIGNED=1
  26.  
  27. ALL = ld sym-ld nm car size size68 tnm xstrip fixstk printstk toglclr
  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. #
  78. # TOS format flags manipulator
  79. #
  80. toglclr: toglclr.o
  81.     $(CC) -o toglclr toglclr.o
  82.  
  83. install: $(ALL)
  84.     cp ld $(CROSSLIB)/gcc-ld
  85.     cp nm $(CROSSBIN)/cnm
  86.     cp car $(CROSSBIN)/car
  87.     cp size $(CROSSBIN)/csize
  88.     cp size68 $(CROSSBIN)/csize68
  89.     cp tnm $(CROSSBIN)/tnm
  90.     cp xstrip $(CROSSBIN)/xstrip
  91.     cp sym-ld $(CROSSBIN)/sym-ld
  92.     cp  fixstk printstk $(CROSSBIN)
  93.     cp  toglclr $(CROSSBIN)
  94.  
  95. clean:
  96.     rm -f *.o
  97.  
  98. realclean: clean
  99.     rm -f $(ALL) core report
  100.