home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / utlsrc33.lzh / UTLSRC33 / MAKEFILE.ST < prev    next >
Text File  |  1993-07-30  |  2KB  |  96 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 = /share/gcc-cross/atari
  8. CROSSBIN = $(CROSSDIR)/bin
  9. CROSSLIB = $(CROSSDIR)/lib
  10. CROSSINC = $(CROSSDIR)/include
  11.  
  12. # Cross GCC
  13. CC=$(CROSSBIN)/cgcc
  14.  
  15. CFLAGS = -O2 -fstrength-reduce -fomit-frame-pointer -Datarist -I.
  16. LDFLAGS = -liio
  17.  
  18. #ALL = gcc-ld.ttp sym-ld.ttp gcc-nm.ttp gcc-ar.ttp gcc-size.ttp size68.ttp 
  19. #      cnm.ttp fixstk.ttp printstk.ttp
  20. ALL = gcc-ld.ttp gcc-nm.ttp gcc-ar.ttp gcc-size.ttp size68.ttp \
  21.       cnm.ttp fixstk.ttp printstk.ttp xstrip.ttp sym-ld.ttp toglclr.ttp
  22. all: $(ALL)
  23.  
  24. #
  25. # the 'regular' linker, produces atari executables
  26. #
  27. gcc-ld.ttp : ld.o cplusdem.o
  28.     $(CC) -o gcc-ld.ttp ld.o cplusdem.o $(LDFLAGS)
  29.  
  30. #
  31. # the 'other' linker, produdes atari gdb compat symb files
  32. #
  33. sym-ld.ttp : sym-ld.o cplusdem.o
  34.     $(CC) -o sym-ld.ttp sym-ld.o cplusdem.o $(LDFLAGS)
  35.  
  36. #
  37. # symbol lister (NaMe list) gnu format only -- ie .o's and .olb's only
  38. #
  39. gcc-nm.ttp: nm.o cplusdem.o
  40.     $(CC) -o gcc-nm.ttp nm.o cplusdem.o $(LDFLAGS)
  41.  
  42. # Object file sizes (gnu format only) -- .o's and .olb's only
  43. #
  44. gcc-size.ttp: size.o
  45.     $(CC) -o gcc-size.ttp size.o $(LDFLAGS)
  46.  
  47. #
  48. # gcc-ar.ttp - archiver/librarian
  49. #
  50. gcc-ar.ttp : ar.o
  51.     $(CC) -o gcc-ar.ttp ar.o $(LDFLAGS)
  52.  
  53. #
  54. # show sizes of tos format executable
  55. #
  56. size68.ttp: size68.c
  57.     $(CC) -O -o size68.ttp size68.c -s $(LDFLAGS)
  58.  
  59. #
  60. # show symbols of tos format executable
  61. # absolute minimal functionality.
  62. #
  63. cnm.ttp: cnm.c
  64.     $(CC) -O -o cnm.ttp cnm.c $(LDFLAGS)
  65.  
  66. #
  67. # print _stksize
  68. #
  69. printstk.ttp : printstk.c
  70.     $(CC) -O -o printstk.ttp printstk.c -mshort -liio16
  71.  
  72. #
  73. # fix _stksize
  74. #
  75. fixstk.ttp : fixstk.c
  76.     $(CC) -O -o fixstk.ttp fixstk.c -mshort -liio16
  77.  
  78. #
  79. # Strip symbols from TOS format executable
  80. #
  81. xstrip.ttp: strip.c
  82.     $(CC) -O -o xstrip.ttp strip.c -mshort -liio16
  83.  
  84. #
  85. # Manipulate TOS executable header  flags
  86. #
  87. toglclr.ttp: toglclr.c
  88.     $(CC) -O -o toglclr.ttp toglclr.c -mshort -liio16
  89.  
  90. clean:
  91.     rm -f *.o core
  92.  
  93. realclean: clean
  94.     rm -f $(ALL)
  95.