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

  1. #
  2. # Makefile for utils for Atari TOS gcc
  3. # - adjust CROSSDIR below for your setup if cross compiling otherwise
  4. #   adjust CC
  5. #
  6. #
  7. CROSSDIR = /dsrg/bammi/cross-gcc
  8. CROSSBIN = $(CROSSDIR)/bin
  9. CROSSLIB = $(CROSSDIR)/lib
  10. CROSSINC = $(CROSSDIR)/include
  11.  
  12. # Cross GCC
  13. CC=$(CROSSBIN)/cgcc
  14.  
  15. CFLAGS = -O -Datarist -I.
  16.  
  17. ALL = gcc-ld.ttp sym-ld.ttp gcc-nm.ttp gcc-ar.ttp gcc-size.ttp size68.ttp \
  18.       cnm.ttp fixstk.ttp printstk.ttp
  19. all: $(ALL)
  20.  
  21. #
  22. # the 'regular' linker, produces atari executables
  23. #
  24. gcc-ld.ttp : ld.o
  25.     $(CC) -o gcc-ld.ttp ld.o
  26.  
  27. #
  28. # the 'other' linker, produdes atari gdb compat symb files
  29. #
  30. sym-ld.ttp : sym-ld.o
  31.     $(CC) -o sym-ld.ttp sym-ld.o
  32.  
  33. #
  34. # symbol lister (NaMe list) gnu format only -- ie .o's and .olb's only
  35. #
  36. gcc-nm.ttp: nm.o
  37.     $(CC) -o gcc-nm.ttp nm.o
  38.  
  39. # Object file sizes (gnu format only) -- .o's and .olb's only
  40. #
  41. gcc-size.ttp: size.o
  42.     $(CC) -o gcc-size.ttp size.o
  43.  
  44. #
  45. # gcc-ar.ttp - archiver/librarian
  46. #
  47. gcc-ar.ttp : ar.o
  48.     $(CC) -o gcc-ar.ttp ar.o
  49.  
  50. #
  51. # show sizes of tos format executable
  52. #
  53. size68.ttp: size68.c
  54.     $(CC) -O -o size68.ttp size68.c -s
  55.  
  56. #
  57. # show symbols of tos format executable
  58. # absolute minimal functionality.
  59. #
  60. cnm.ttp: cnm.c
  61.     $(CC) -O -o cnm.ttp cnm.c
  62.  
  63. #
  64. # print _stksize
  65. #
  66. printstk.ttp : printstk.c
  67.     $(CC) -O -o printstk.ttp printstk.c -mshort
  68.  
  69. #
  70. # fix _stksize
  71. #
  72. fixstk.ttp : fixstk.c
  73.     $(CC) -O -o fixstk.ttp fixstk.c -mshort
  74.  
  75. clean:
  76.     rm -f *.o core
  77.  
  78. realclean: clean
  79.     rm -f $(ALL)
  80.