home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / dev / gui / triton / programmer / gcc / source / makefile next >
Makefile  |  1994-07-14  |  2KB  |  66 lines

  1. #
  2. #  Triton - The object oriented GUI creation system for the Amiga
  3. #  Written by Stefan Zeiger in 1993-1994
  4. #  (c) 1993-1994 by Stefan Zeiger, All rights reserved
  5. #
  6. #  Makefile - Makefile for making the gcc support code
  7. #             © 1994 by Gunther Nikl and Stefan Zeiger
  8. #
  9. #  I created the Triton support files on my system with gcc 2.5.7
  10. #  (from the 1994 AmiNet CDROM), and a modified version of Markus
  11. #  Wild's conv.p script which recognizes TritonBase. [stz]
  12. #
  13.  
  14.  
  15. CC    = gcc
  16.  
  17. RM    = c:delete
  18.  
  19. COPY    = c:copy
  20.  
  21. CFLAGS    = -O6 -fomit-frame-pointer -fno-function-cse
  22.  
  23. .SUFFIXES: .bo
  24.  
  25. .c.o:
  26.     @$(CC) $(CFLAGS) -o $@ -c $<
  27.  
  28. .c.bo:
  29.     @$(CC) $(CFLAGS) -fbaserel -msmall-code -o $@ -c $<
  30.  
  31. objs    = tr_openproject.o tr_closeproject.o tr_firstoccurance.o tr_numoccurances.o \
  32.       tr_geterrorstring.o tr_createapp.o tr_deleteapp.o tr_getmsg.o tr_replymsg.o \
  33.       tr_wait.o tr_closewindowsafely.o tr_openprojecttags.o tr_autorequesttags.o \
  34.       tr_easyrequesttags.o tr_openclose.o tr_getlasterror.o 
  35.  
  36. bobjs    = tr_openproject.bo tr_closeproject.bo tr_firstoccurance.bo tr_numoccurances.bo \
  37.       tr_geterrorstring.bo tr_createapp.bo tr_deleteapp.bo tr_getmsg.bo tr_replymsg.bo \
  38.       tr_wait.bo tr_closewindowsafely.bo tr_openprojecttags.bo tr_autorequesttags.bo \
  39.       tr_easyrequesttags.bo tr_openclose.bo tr_getlasterror.bo 
  40.  
  41. all: os-lib/libtriton.a os-lib/blibtriton.a os-include/inline/triton.h
  42.  
  43. clean::
  44.     @echo "Deleting old object files..."
  45.     @$(RM) $(objs) $(bobjs)
  46.  
  47. msg:
  48.     @echo "Creating gcc lib..."
  49.  
  50. bmsg:
  51.     @echo "Creating gcc blib..."
  52.  
  53. os-lib/libtriton.a: msg $(objs)
  54.     ar -r os-lib/libtriton.a $(objs)
  55.     ranlib os-lib/libtriton.a
  56.     $(COPY) os-lib/libtriton.a gcc:os-lib/
  57.  
  58. os-lib/blibtriton.a: bmsg $(bobjs)
  59.     ar -r os-lib/blibtriton.a $(bobjs)
  60.     ranlib os-lib/blibtriton.a
  61.     $(COPY) os-lib/blibtriton.a gcc:os-lib/
  62.  
  63. os-include/inline/triton.h: ../triton_lib.fd triton_protos.h /gcc/perl/conv.p
  64.     perl gcc:perl/conv.p triton_protos.h ../triton_lib.fd  >  os-include/inline/triton.h
  65.     $(COPY) os-include/inline/triton.h gcc:os-include/inline/
  66.