home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / libraries / tri12dev.lha / Triton / Developer / gcc / source / Makefile next >
Encoding:
Makefile  |  1995-01-14  |  2.4 KB  |  87 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. #             (c) 1994 by Gunther Nikl and Stefan Zeiger
  8. #
  9. #  [stz] I created the Triton support files on my system with gcc 2.6.0
  10. #  (from the AmiNet CDROM #4), the gcc 2.3.3 compilers and the 'perl' binary
  11. #  from the gcc 2.5.8 distribution on AmiNet. The version from FreshFish
  12. #  7/94 does not work correctly with conv.p. trConv.p is a modified version
  13. #  of conv.p, which recognizes TritonBase as (struct Library *).
  14. #
  15.  
  16.  
  17. CC    = gcc
  18. RM    = /c/delete quiet
  19. COPY    = /c/copy
  20. PERL    = /sys/shell-tools/perl
  21.  
  22. CVERS    = -V2.3.3
  23. CFLAGS    = -O6 -Ios-include -fno-function-cse $(CPUID) $(COPTS)
  24.  
  25. .SUFFIXES: $(O)
  26.  
  27. # common rule
  28.  
  29. .c$(O):
  30.     @$(CC) $(CVERS) $(CFLAGS) -o $@ -c $<
  31.  
  32. # all object files
  33.  
  34. objs    = tr_openproject$(O) tr_closeproject$(O) tr_firstoccurance$(O) tr_numoccurances$(O) \
  35.       tr_geterrorstring$(O) tr_createapp$(O) tr_deleteapp$(O) tr_getmsg$(O) tr_replymsg$(O) \
  36.       tr_wait$(O) tr_closewindowsafely$(O) tr_getlasterror$(O) tr_lockscreen$(O) tr_unlockscreen$(O) \
  37.       tr_createapptags$(O) tr_openprojecttags$(O) tr_autorequesttags$(O) tr_easyrequesttags$(O) \
  38.       tr_openclose$(O) \
  39.       tr_trlogo$(O)
  40.  
  41. # default target
  42.  
  43. all: os-include/inline/triton.h os-lib/libtriton.a os-lib/blibtriton.a os-lib/libtriton020.a os-lib/blibtriton020.a copylib
  44.  
  45. # several library versions
  46.  
  47. os-lib/libtriton.a:
  48.         @$(MAKE) lib NAME=$@ O=.o 
  49.  
  50. os-lib/blibtriton.a:
  51.         @$(MAKE) lib NAME=$@ O=.bo COPTS=-fbaserel
  52.  
  53. os-lib/libtriton020.a:
  54.         @$(MAKE) lib NAME=$@ O=.o20 CPUID=-m68020
  55.  
  56. os-lib/blibtriton020.a:
  57.         @$(MAKE) lib NAME=$@ O=.bo20 CPUID=-m68020 COPTS=-fbaserel
  58.  
  59. # cleanup 
  60.  
  61. clean:
  62.     @echo "Cleaning up..."
  63.     -@$(RM) \#?.o \#?.bo \#?.o20 \#?.bo20 os-include/inline/triton.h os-lib/\#?
  64.  
  65. # common target to build a special library
  66.  
  67. lib: os-include/inline/triton.h msg $(objs)
  68.         @-$(RM) $(NAME)
  69.         @ar -q $(NAME) $(objs)
  70.         @ranlib $(NAME)
  71.         @echo "done."
  72.  
  73. msg:
  74.         @echo "creating -->" $(NAME) "<-- ..."
  75.  
  76. # install libraries
  77.  
  78. copylib:
  79.     $(COPY) os-lib/\#?.a GNU:os-lib/
  80.  
  81. # inline header file
  82.  
  83. os-include/inline/triton.h: ../triton_lib.fd triton_protos.h trConv.p
  84.     @echo "Creating inline header..."
  85.     $(PERL) trConv.p triton_protos.h ../triton_lib.fd  >  os-include/inline/triton.h
  86.     $(COPY) os-include/inline/triton.h GNU:os-include/inline/
  87.