home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / freeWAIS-0.202.tar.gz / freeWAIS-0.202.tar / freeWAIS-0.202 / Makefile < prev    next >
Makefile  |  1993-10-06  |  5KB  |  173 lines

  1. #
  2. # Top level make of the WAIS system
  3. #   brewster 2/91
  4. #   jonathan 6/91
  5.  
  6. # $Log:    Makefile-release,v $
  7. # Revision 1.8  92/05/07  15:54:08  jonathan
  8. # Updated for release.
  9. # Revision 1.7  92/03/26  18:29:59  jonathan
  10. # Fixed some broken make lines.
  11. # Revision 1.6  92/03/07  19:45:01  jonathan
  12. # Added recommendation for IBM.
  13. # Revision 1.5  92/02/27  10:07:24  jonathan
  14. # got rid of automatic setting of TOP.  Used Simon's approach instead.
  15.  
  16. # Revision 1.4  92/02/13  12:27:53  jonathan
  17. # Removed references to seeker.
  18. # Revision 1.3  92/02/13  12:05:17  jonathan
  19. # Removed release targets.
  20. # Revision 1.2  92/02/13  11:57:56  jonathan
  21. # Added $Log for RCS.
  22. #
  23. # common customizations:
  24. # see the CFLAGS variable for pointers.
  25. #
  26. # to do:
  27. # create the scripts, install the pointer to this version if it is the
  28. # newest.
  29.  
  30. RELEASE = freeWAIS-0.202
  31.  
  32. RM = /bin/rm -f
  33. AR = ar
  34.  
  35. # on SGIs set this to true
  36. # RANLIB = true
  37. RANLIB = ranlib
  38.  
  39. # on IBM RS6000 this should be c89.
  40. CC = cc
  41. # CC = gcc
  42.  
  43. # set this for your site.  This syntax only works in SunOS
  44. # for other UNIX-like OS's set this to this directory.
  45. #TOP:sh = pwd
  46. # or fill in the blank for other OS's
  47. comment-me:
  48.     @echo You must set "\$$(TOP)" to point to the freeWAIS src directory
  49.  
  50. SUPDIR = $(TOP)/ir
  51.  
  52. # compiler specific stuff
  53. #
  54. # for old BSD add -DBSD
  55. # for newer BSD that needs to use <sys/dir.h>, add -DBSD43
  56. # for System V add -DSYSV 
  57. # for XENIX add -M3e -Zi
  58. # USG for Unix Dirent in lib
  59. # for SGIs running IRIX 4.0.1, add -cckr
  60. #
  61. # For a little better security in the server, add -DSECURE_SERVER
  62. # this sets the server user id to -u argument after startup.
  63. # for relevance feedaback in the search engine, add -DRELEVANCE_FEEDBACK
  64. #
  65. #   dgg additions
  66. # LITERAL == waisserver, search for "literal strings"
  67. # BOOLEANS == waisserver, search with boolean AND, NOT operators
  68. # PARTIALWORD == waisserver, search for partial words, hum* matches human, hummingbird, ...
  69. # BIO == waisindex, waisserver changes including symbol indexing & search & bio data formats
  70. #
  71. # -DUSE_SYSLOG if you want logging to be done with syslog rather than
  72. #   fprintf
  73. # -DNEED_VSYSLOG if your C library does not have a vsyslog() function
  74. #   in it (and you defined USE_SYSLOG)
  75. #
  76. # -DDUMPCORE will force the waisserver to dump the core when aborting
  77. #   otherwise the core will not be dumped
  78. #
  79. # -DEND_MERGE if you want to merge the index files at the end of an
  80. #  index process otherwise they are merged as we go along
  81. #
  82. # -DSTEM_WORDS to stem words during indexing and queries
  83. #
  84. # Note - the default Porter Stemmer removes trailing e's from words -
  85. # variable becomes variabl  - this can impact the use of literals in
  86. #searches!!!!!!!!!!
  87. #
  88. # -DLIST_STEMS to show stemmed words in server log and indexer output
  89. #
  90. CFLAGS = -g -I$(SUPDIR) -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG -DBOOLEANS -DPARTIALWORD -DLITERAL 
  91. #
  92. # Use this version of CFLAGS for SGIs
  93. #CFLAGS = -O -cckr -lmalloc -I$(SUPDIR) -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG -DBOOLEANS -DPARTIALWORD -DLITERAL
  94.  
  95. MFLAGS = -k
  96.  
  97. MAKE = make $(MFLAGS) 
  98.  
  99. #default: config.h lib ir ui bin doc x tags
  100. default: config.h lib ir ui bin x 
  101.     @echo "Welcome to WAIS"
  102.  
  103. config.h: config
  104.     ./config >config.h
  105.  
  106. config: config.c
  107.     $(CC) -o config config.c
  108.  
  109. lib::
  110.     cd lib; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP)
  111.  
  112. ir::
  113.     cd ir; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP) 
  114.  
  115. waisindex::
  116.     cd ir; $(MAKE) waisindex CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP)
  117.  
  118. waisserver::
  119.     cd ir; $(MAKE) waisserver CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP)
  120.  
  121. ui::
  122.     cd ui; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" TOP=$(TOP)
  123.  
  124. # NeXT and ULTRIX don't have an env command, so this doesn't work.
  125. # try going to the x directory and just doing a make -k
  126. # you may have to edit the CFLAGS in the Makefile yourself.
  127.  
  128. x::
  129.     cd x; (env TOP=$(TOP) CC=$(CC) CFLAGS="$(CFLAGS)" MAKE="$(MAKE)" ./makex.sh)
  130.  
  131. bin::
  132.     cd bin; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" TOP=$(TOP)
  133.  
  134. test::
  135.     @echo $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" TOP=$(TOP)
  136.  
  137. # to make the emacs tags table for meta-.:
  138. tags:     
  139.     etags -f TAGS ir/*.[ch]
  140.     etags -af TAGS ui/*.[ch]
  141.     etags -af TAGS x/*.[ch]
  142.  
  143. # Remove objects and library.
  144. clean:
  145.     $(RM) *%
  146.     $(RM) *~
  147.     $(RM) \#*\#
  148.     $(RM) core
  149.     $(RM) TAGS
  150.     $(RM) -r SearchLog
  151.     $(RM) wais-sources/wais-docs*
  152.     $(RM) config config.h
  153.     cd lib; make $@
  154.     cd ir; make $@
  155.     cd ui; make  $@
  156.     cd bin; make  $@
  157.     cd x; $(RM) *.o xwaisq xwais
  158.  
  159. rlocks:
  160.     $@
  161.     cd lib; $@
  162.     cd ir; $@
  163.     cd ui;  $@
  164.     cd bin;  $@
  165.     cd doc;  $@
  166.     cd x; $@
  167.