home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / scm / wb1a1.lha / wb / Makefile < prev    next >
Encoding:
Makefile  |  1993-06-29  |  4.2 KB  |  148 lines

  1. # Makefile for WB-tree File Based Associative String Data Base.
  2. # Copyright (C) 1991, 1992, 1993 Holland Mark Martin
  3. #
  4. #Permission to use, copy, modify, and distribute this software and its
  5. #documentation for educational, research, and non-profit purposes and
  6. #without fee is hereby granted, provided that the above copyright
  7. #notice appear in all copies and that both that copyright notice and
  8. #this permission notice appear in supporting documentation, and that
  9. #the name of Holland Mark Martin not be used in advertising or
  10. #publicity pertaining to distribution of the software without specific,
  11. #written prior consent in each case.  Permission to incorporate this
  12. #software into commercial products can be obtained from Jonathan
  13. #Finger, Holland Mark Martin, 174 Middlesex Turnpike, Burlington, MA,
  14. #01803-4467, USA.  Holland Mark Martin makes no representations about
  15. #the suitability or correctness of this software for any purpose.  It
  16. #is provided "as is" without express or implied warranty.  Holland Mark
  17. #Martin is under no obligation to provide any services, by way of
  18. #maintenance, update, or otherwise.
  19.  
  20. mfiles = Makefile make.scm all.scm VMSBUILD.COM
  21. sfiles = handle.scm blink.scm defs.scm sys.h sys.c sys.scm prev.scm \
  22.     del.scm ent.scm comp.scm scan.scm
  23. tfiles = example.scm test.scm test2.scm db.scm db.c stats.scm blkio.scm \
  24.     view.c check.c
  25. dfiles = README dbscm.doc ChangeLog Design.doc TBD ANNOUNCE # old.scm
  26. afiles = $(tfiles) $(sfiles) $(mfiles) $(dfiles)
  27. # ofiles and hfiles are built by compilation from *.scm
  28. ofiles = handle.o blink.o prev.o ent.o sys.o del.o stats.o blkio.o scan.o
  29. shfiles = defs.h ent.h blink.h handle.h prev.h del.h stats.h blkio.h scan.h
  30. scfiles = ent.c blink.c handle.c prev.c del.c stats.c blkio.c scan.c
  31. hfiles = $(shfiles) sys.h
  32. SHELL = /bin/sh
  33. scheme = scm
  34. #CC = cc -Aa
  35. #CFLAGS = -p    #for profiling
  36. #CC = cc -Wall
  37.  
  38. all:    dbscm check view
  39.  
  40. dbscm:    db.a
  41.     cd ../scm;make dbscm
  42.     -rm -f dbscm
  43.     mv ../scm/dbscm ./dbscm
  44.     rm db.a
  45. db.a:    $(ofiles) db.o Makefile
  46.     ar crv db.a db.o $(ofiles)
  47. lint:    blink.c sys.c handle.c sys.h defs.h
  48.     lint db.c handle.c blink.c prev.c ent.c sys.c
  49. check:    check.o $(ofiles)
  50.     $(CC) $(CFLAGS) -o check check.o $(ofiles)
  51. view:    view.c
  52.     $(CC) $(CFLAGS) -o view view.c
  53.  
  54. check.o: check.c $(hfiles)
  55. scan.o: scan.c $(hfiles)
  56. blkio.o: blkio.c $(hfiles)
  57. stats.o: stats.c $(hfiles)
  58. del.o:    del.c $(hfiles)
  59. ent.o:    ent.c $(hfiles)
  60. sys.o:    sys.c $(hfiles)
  61. blink.o:    blink.c $(hfiles)
  62. handle.o:    handle.c $(hfiles)
  63. db.o:    db.c $(hfiles)
  64.     $(CC) $(CFLAGS) -I../scm -c db.c
  65.  
  66. scan.c scan.h:    scan.scm
  67.     echo '(compile "scan.scm")(quit 0)' | $(scheme) comp.scm
  68.  
  69. blkio.c blkio.h:    blkio.scm
  70.     echo '(compile "blkio.scm")(quit 0)' | $(scheme) comp.scm
  71.  
  72. stats.c stats.h:    stats.scm
  73.     echo '(compile "stats.scm")(quit 0)' | $(scheme) comp.scm
  74.  
  75. blink.c blink.h:    blink.scm
  76.     echo '(compile "blink.scm")(quit 0)' | $(scheme) comp.scm
  77.  
  78. ent.c ent.h:    ent.scm
  79.     echo '(compile "ent.scm")(quit 0)' | $(scheme) comp.scm
  80.  
  81. del.c del.h:    del.scm
  82.     echo '(compile "del.scm")(quit 0)' | $(scheme) comp.scm
  83.  
  84. prev.c prev.h:    prev.scm
  85.     echo '(compile "prev.scm")(quit 0)' | $(scheme) comp.scm
  86.  
  87. handle.c handle.h:    handle.scm
  88.     echo '(compile "handle.scm")(quit 0)' | $(scheme) comp.scm
  89.  
  90. defs.h:    defs.scm
  91.     echo '(compileh "defs.scm")(quit 0)' | $(scheme) comp.scm
  92.  
  93. tar:    wb.tar
  94. wb.tar:    temp/wb
  95.     cd temp; tar chf ../wb.tar wb
  96. shar:    wb.shar
  97. wb.shar:    temp/wb
  98.     cd temp; shar wb >../wb.shar
  99. dclshar:    wb.com
  100. com:    wb.com
  101. wb.com:    temp/wb
  102.     cd temp; dclshar wb >../wb.com
  103. zip:    wb.zip
  104. wb.zip:    temp/wb
  105.     cd temp; zip -ru ../wb.zip wb
  106. pubzip:    temp/wb
  107.     cd temp; zip -ru ../../pub/wb.zip wb
  108.  
  109. temp/wb:    $(afiles)
  110.     -rm -rf temp
  111.     mkdir temp
  112.     mkdir temp/wb
  113.     ln  $(afiles) temp/wb
  114.  
  115. dist:    tar.z
  116. tar.Z:    wb.tar.Z
  117. wb.tar.Z:    wb.tar
  118.     -rm -f wb.tar.Z
  119.     compress wb.tar
  120. tar.z:    wb.tar.z
  121. wb.tar.z:    wb.tar
  122.     -rm -f wb.tar.z
  123.     gzip wb.tar
  124. shar.Z:    wb.shar.Z
  125. wb.shar.Z:    wb.shar
  126.     -rm -f wb.shar.Z
  127.     compress wb.shar
  128.  
  129. diffs:    temp/wb
  130.     mv temp/wb temp/nwb
  131.     cd temp;unzip ../../pub/wb.zip
  132.     -rm -f wb.pat
  133.     -diff -c temp/wb temp/nwb > wb.pat
  134.     -rm -rf temp
  135.     ls -l wb.pat
  136.  
  137. TAGS:
  138. tags:    $(sfiles) $(tfiles) $(rfiles)
  139.     etags $(tfiles) $(sfiles) $(rfiles)
  140. clean:
  141.     -rm -f *~ \#* *.orig a.out core TAGS lints tmp* db.a
  142.     -rm -rf temp
  143. distclean:
  144.     -rm -f *~ \#* *.o *.orig a.out core TAGS lints tmp* db.a
  145.     -rm -f $(shfiles) $(scfiles)
  146.     -rm -f *.bv *.db *.rec
  147.     -rm -rf temp
  148.