home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / CLISP-2.LHA / CLISP960530-ki.lha / ffcall / avcall / Makefile.devel < prev    next >
Encoding:
Makefile  |  1996-04-15  |  4.0 KB  |  110 lines

  1. HOST = i486-linux
  2. CPU = i386
  3. GCC = gcc
  4. GCCFLAGS = -O2 -fomit-frame-pointer
  5. LN = ln -s
  6. RM = rm -f
  7. SED = sed
  8. ROFF_MAN = groff -Tascii -mandoc
  9.  
  10. all : avcall-i386.S avcall-m68k.s avcall-m68k-amiga.s avcall-mips.s avcall-sparc.S avcall-alpha.s avcall-hppa.s avcall-arm.s avcall-rs6000.s avcall-m88k.s avcall-convex.s avcall.man
  11.  
  12. avcall-i386.S : avcall-i386.c avcall.h.in
  13.     $(GCC) $(GCCFLAGS) -D__i386__ -fno-omit-frame-pointer -b i486-linux -S avcall-i386.c -o avcall-i386.s
  14.     (cat underscore.h ; sed -e 's/_\(_[A-Za-z_:]*\)/C(\1)/' -e '/\.align.*,0x90$$/d' avcall-i386.s) > avcall-i386.S
  15.     $(RM) avcall-i386.s
  16.  
  17. avcall-m68k.s : avcall-m68k.c avcall.h.in
  18.     $(GCC) $(GCCFLAGS) -D__m68k__ -b m68k-sun -S avcall-m68k.c -o avcall-m68k.s
  19.  
  20. avcall-m68k-amiga.s : avcall-m68k-amiga.c avcall.h.in
  21.     $(GCC) $(GCCFLAGS) -D__m68k__ -b m68k-sun -m68000 -DAMIGA -S avcall-m68k-amiga.c -o avcall-m68k-amiga-temp.s
  22.     avcall-m68k-amiga-swap < avcall-m68k-amiga-temp.s > avcall-m68k-amiga.s
  23.     $(RM) avcall-m68k-amiga-temp.s
  24.  
  25. avcall-mips.s : avcall-mips.c avcall.h.in
  26.     $(GCC) $(GCCFLAGS) -D__mips__ -b mips-sgi -S avcall-mips.c -o avcall-mips.s
  27.  
  28. avcall-sparc.S : avcall-sparc.c avcall.h.in
  29.     $(GCC) $(GCCFLAGS) -D__sparc__ -b sparc-sun -S avcall-sparc.c -o avcall-sparc.s
  30.     (cat underscore.h ; sed -e 's/_\(_[A-Za-z_:]*\)/C(\1)/' avcall-sparc.s) > avcall-sparc.S
  31.     $(RM) avcall-sparc.s
  32.  
  33. avcall-alpha.s : avcall-alpha.c avcall.h.in
  34.     $(GCC) $(GCCFLAGS) -D__alpha__ -b alpha-dec-osf -S avcall-alpha.c -o avcall-alpha.s
  35.  
  36. avcall-hppa.s : avcall-hppa.c avcall.h.in
  37.     $(GCC) $(GCCFLAGS) -D__hppa__ -b hppa1.0-hpux -S avcall-hppa.c -o avcall-hppa-temp.s
  38.     $(SED) -e 's/120/1060/g' < avcall-hppa-temp.s > avcall-hppa.s
  39.     $(RM) avcall-hppa-temp.s
  40.  
  41. avcall-arm.s : avcall-arm.c avcall.h.in
  42.     $(GCC) $(GCCFLAGS) -D__arm__ -b arm-acorn-riscix -S avcall-arm.c -o avcall-arm.s
  43.  
  44. avcall-rs6000.s : avcall-rs6000.c avcall.h.in
  45.     $(GCC) $(GCCFLAGS) -D__rs6000__ -b rs6000 -S avcall-rs6000.c -o avcall-rs6000.s
  46.  
  47. avcall-m88k.s : avcall-m88k.c avcall.h.in
  48.     $(GCC) $(GCCFLAGS) -D__m88k__ -b m88k-dgux -S avcall-m88k.c -o avcall-m88k.s
  49.  
  50. avcall-convex.s : avcall-convex.c avcall.h.in
  51.     $(GCC) $(GCCFLAGS) -D__convex__ -b convex-c2 -S avcall-convex.c -o avcall-convex.s
  52.  
  53. avcall.man : avcall.3
  54.     $(ROFF_MAN) avcall.3 > avcall.man
  55.  
  56.  
  57. tests : tests-i386.s tests-m68k.s tests-mips.s tests-sparc.s tests-alpha.s tests-hppa.s tests-arm.s tests-rs6000.s tests-m88k.s tests-convex.s
  58.     true
  59.  
  60. tests-i386.s : tests.c avcall.h.in
  61.     $(LN) avcall.h.in avcall.h
  62.     $(GCC) $(GCCFLAGS) -I/usr/include -D__i386__ -b i486-linux -S tests.c -o tests-i386.s
  63.     $(RM) avcall.h
  64.  
  65. tests-m68k.s : tests.c avcall.h.in
  66.     $(LN) avcall.h.in avcall.h
  67.     $(GCC) $(GCCFLAGS) -I/usr/include -D__m68k__ -b m68k-sun -S tests.c -o tests-m68k.s
  68.     $(RM) avcall.h
  69.  
  70. tests-mips.s : tests.c avcall.h.in
  71.     $(LN) avcall.h.in avcall.h
  72.     $(GCC) $(GCCFLAGS) -I/usr/include -D__mips__ -b mips-sgi -S tests.c -o tests-mips.s
  73.     $(RM) avcall.h
  74.  
  75. tests-sparc.s : tests.c avcall.h.in
  76.     $(LN) avcall.h.in avcall.h
  77.     $(GCC) $(GCCFLAGS) -I/usr/include -D__sparc__ -b sparc-sun -S tests.c -o tests-sparc.s
  78.     $(RM) avcall.h
  79.  
  80. tests-alpha.s : tests.c avcall.h.in
  81.     $(LN) avcall.h.in avcall.h
  82.     $(GCC) $(GCCFLAGS) -I/usr/include -D__alpha__ -b alpha-dec-osf -S tests.c -o tests-alpha.s
  83.     $(RM) avcall.h
  84.  
  85. tests-hppa.s : tests.c avcall.h.in
  86.     $(LN) avcall.h.in avcall.h
  87.     $(GCC) $(GCCFLAGS) -I/usr/include -D__hppa__ -b hppa1.0-hpux -S tests.c -o tests-hppa.s
  88.     $(RM) avcall.h
  89.  
  90. tests-arm.s : tests.c avcall.h.in
  91.     $(LN) avcall.h.in avcall.h
  92.     $(GCC) $(GCCFLAGS) -I/usr/include -D__arm__ -b arm-acorn-riscix -S tests.c -o tests-arm.s
  93.     $(RM) avcall.h
  94.  
  95. tests-rs6000.s : tests.c avcall.h.in
  96.     $(LN) avcall.h.in avcall.h
  97.     $(GCC) $(GCCFLAGS) -I/usr/include -D__rs6000__ -b rs6000 -S tests.c -o tests-rs6000.s
  98.     $(RM) avcall.h
  99.  
  100. tests-m88k.s : tests.c avcall.h.in
  101.     $(LN) avcall.h.in avcall.h
  102.     $(GCC) $(GCCFLAGS) -I/usr/include -D__m88k__ -b m88k-dgux -S tests.c -o tests-m88k.s
  103.     $(RM) avcall.h
  104.  
  105. tests-convex.s : tests.c avcall.h.in
  106.     $(LN) avcall.h.in avcall.h
  107.     $(GCC) $(GCCFLAGS) -I/usr/include -D__convex__ -b convex-c2 -S tests.c -o tests-convex.s
  108.     $(RM) avcall.h
  109.  
  110.