home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume26 / banners-1.1 / part01 / Makefile next >
Makefile  |  1993-04-11  |  4KB  |  106 lines

  1. #
  2. # simple Makefile for banners collection
  3. #
  4.  
  5. CC = cc
  6.  
  7. CFLAGS = -O
  8.  
  9. BANNERS = bin/banner-01 bin/banner-02 bin/banner-03 bin/banner-04 \
  10.           bin/banner-05 bin/banner-06 bin/banner-07 bin/banner-08 \
  11.           bin/banner-09 bin/banner-10 bin/banner-11 bin/banner-12 \
  12.           bin/banner-13 bin/cursive-01 bin/cursive-02 bin/gothic
  13.  
  14. all: bin $(BANNERS)
  15.     @echo
  16.     @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  17.     @echo "+        Now look into the bin directory for the executables and           +"
  18.     @echo "+        select the banner(s) you like most (and maybe install             +"
  19.     @echo "+        them in a place like /usr/local/bin).                             +"
  20.     @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  21.     @echo
  22.  
  23. clean:
  24.     rm -rf bin
  25.  
  26. bin:
  27.     mkdir bin
  28.  
  29. bin/banner-01: bin
  30.     cc -c $(CFLAGS) banner-01/banner.c -o bin/banner-01-1.o
  31.     cc -c $(CFLAGS) banner-01/font.c -o bin/banner-01-2.o
  32.     cc $(CFLAGS) bin/banner-01-1.o bin/banner-01-2.o -o bin/banner-01
  33.     rm -f bin/banner-01-1.o bin/banner-01-2.o
  34.  
  35. bin/banner-02: bin
  36.     cc $(CFLAGS) banner-02/banner.c -o bin/banner-02
  37.  
  38. bin/banner-03: bin
  39.     cc $(CFLAGS) banner-03/banr.c -o bin/banner-03 -ltermcap
  40.  
  41. bin/banner-04: bin
  42.     cc $(CFLAGS) banner-04/sysvbanner.c -o bin/banner-04
  43.  
  44. bin/banner-05: bin
  45.     cc $(CFLAGS) -Ibanner-05 banner-05/block.c -o bin/banner-05-1
  46.     cc $(CFLAGS) -Ibanner-05 banner-05/cursive.c -o bin/banner-05-2
  47.     cc $(CFLAGS) -Ibanner-05 banner-05/kban.c -o bin/banner-05-3
  48.     cc $(CFLAGS) -Ibanner-05 banner-05/lban.c -o bin/banner-05-4
  49.     cc $(CFLAGS) -Ibanner-05 banner-05/sban.c -o bin/banner-05-5
  50.     cc $(CFLAGS) -Ibanner-05 banner-05/vban.c -o bin/banner-05-6
  51.     cc $(CFLAGS) -Ibanner-05 banner-05/3db.c -o bin/banner-05-7
  52.     cc $(CFLAGS) -Ibanner-05 banner-05/leb.c -o bin/banner-05-8
  53.     cc $(CFLAGS) -Ibanner-05 banner-05/seb.c -o bin/banner-05-9
  54.     @touch bin/banner-05
  55.  
  56. bin/banner-06: bin
  57.     cc $(CFLAGS) banner-06/banner.c -o bin/banner-06
  58.  
  59. bin/banner-07: bin
  60.     cc $(CFLAGS) banner-07/banner.c -o bin/banner-07
  61.  
  62. bin/banner-08: bin
  63.     cc $(CFLAGS) banner-08/banner.c -o bin/banner-08
  64.  
  65. bin/banner-09: bin
  66.     cc -c $(CFLAGS) banner-09/block.c -o bin/banner-09-1.o
  67.     cc -c $(CFLAGS) banner-09/data.c -o bin/banner-09-2.o
  68.     cc $(CFLAGS) bin/banner-09-1.o bin/banner-09-2.o -o bin/banner-09
  69.     rm -f bin/banner-09-1.o bin/banner-09-2.o
  70.  
  71. bin/banner-10: bin
  72.     @echo "*** Please use your favourite pascal compiler to make banner-10. ***"
  73.     @touch bin/banner-10
  74.  
  75. bin/banner-11: bin
  76.     @cp banner-11/MB_Font.uu bin/MB_Font.uu
  77.     @cd bin ; uudecode MB_Font.uu ; rm -f MB_Font.uu ; mv MB_Font banner-11.font
  78.     cc $(CFLAGS) banner-11/mb.c -o bin/banner-11
  79.     @echo "*** Usage of banner-11: bin/banner-11 -o=bin/banner-11.font. ***"
  80.     @echo "Or alternatively copy bin/banner-11.font to /etc/MB_Font."
  81.  
  82. bin/banner-12: bin
  83.     cc -c $(CFLAGS) -Ibanner-12 banner-12/main.c -o bin/banner-12-1.o
  84.     cc -c $(CFLAGS) -Ibanner-12 banner-12/banner.c -o bin/banner-12-2.o
  85.     cc -c $(CFLAGS) -Ibanner-12 banner-12/font.c -o bin/banner-12-3.o
  86.     cc $(CFLAGS) bin/banner-12-1.o bin/banner-12-2.o bin/banner-12-3.o -o bin/banner-12
  87.     rm -f bin/banner-12-1.o bin/banner-12-2.o bin/banner-12-3.o
  88.  
  89. bin/banner-13: bin
  90.     cc $(CFLAGS) banner-13/cyrban.c -o bin/banner-13
  91.  
  92. bin/cursive-01: bin
  93.     cc -c $(CFLAGS) -Icursive-01 cursive-01/cursive.c -o bin/cursive-01-1.o
  94.     cc -c $(CFLAGS) -Icursive-01 cursive-01/font.c -o bin/cursive-01-2.o
  95.     cc $(CFLAGS) bin/cursive-01-1.o bin/cursive-01-2.o -o bin/cursive-01
  96.     rm -f bin/cursive-01-1.o bin/cursive-01-2.o
  97.  
  98. bin/cursive-02: bin
  99.     cc -c $(CFLAGS) -Icursive-02 cursive-02/cursive.c -o bin/cursive-02-1.o
  100.     cc -c $(CFLAGS) -Icursive-02 cursive-02/font.c -o bin/cursive-02-2.o
  101.     cc $(CFLAGS) bin/cursive-02-1.o bin/cursive-02-2.o -o bin/cursive-02
  102.     rm -f bin/cursive-02-1.o bin/cursive-02-2.o
  103.  
  104. bin/gothic: bin
  105.     cc $(CFLAGS) gothic/gothic.c -o bin/gothic
  106.