home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / util_src / makefile.cro < prev    next >
Encoding:
Makefile  |  1993-07-29  |  1.3 KB  |  71 lines

  1. #
  2. # Makefile for utils for Atari Cross Compilers
  3. # - adjust CROSSDIR below for your setup
  4. # - define GCC to be the path to your hosts C compiler (gcc preferred)
  5. # - If you are going to run the cross linker on a machine that aligns structures
  6. #   at longword boundaries (machines such as Sun-Sparc, Convex etc) add
  7. #   -DWORD_ALIGNED to CFLAGS
  8. #
  9. #
  10. CROSSDIR = /dsrg/bammi/cross-gcc
  11. CROSSBIN = $(CROSSDIR)/bin
  12. CROSSLIB = $(CROSSDIR)/lib
  13. CROSSINC = $(CROSSDIR)/include
  14.  
  15. # Host GCC
  16. CC=/usr/local/bin/gcc
  17. # Host include dir
  18. HOSTINC = /usr/include
  19.  
  20. CFLAGS = -O -g -I. -I$(HOSTINC) -I$(CROSSINC) -DCROSSATARI=1 \
  21. -DCROSSDIR=\"$(CROSSDIR)\" -DCROSSLIB=\"$(CROSSLIB)\"
  22.  
  23. ALL = ld sym-ld nm car size size68
  24.  
  25. #
  26. # the 'regular' linker, produces atari executables
  27. #
  28. ld : ld.o
  29.     $(CC) -o ld ld.o
  30.  
  31. #
  32. # the 'other' linker, produces atari gdb compat symb files
  33. #
  34. sym-ld : sym-ld.o
  35.     $(CC) -o sym-ld sym-ld.o
  36.  
  37. #
  38. # obj file describer?
  39. #
  40. nm : nm.o
  41.     $(CC) -o nm nm.o
  42.  
  43. # Object file sizes
  44. #
  45. size: size.o
  46.     $(CC) -o size size.o
  47.  
  48. #
  49. # ar - archiver/librarian
  50. #
  51. car : ar.o
  52.     $(CC) -o car ar.o
  53.  
  54. size68: size68.c
  55.     $(CC) -O -o size68 size68.c -s
  56.  
  57. install: $(ALL)
  58.     cp ld $(CROSSLIB)/gcc-ld
  59.     cp nm $(CROSSBIN)/cnm
  60.     cp car $(CROSSBIN)/car
  61.     cp size $(CROSSBIN)/csize
  62.     cp size68 $(CROSSBIN)/csize68
  63.     cp sym-ld $(CROSSBIN)/sym-ld
  64.  
  65. clean:
  66.     rm -f *.o
  67.  
  68. realclean: clean
  69.     rm -f $(ALL) core report
  70.