home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / gopher / gopher1.01 / gopherd / Makefile.orig < prev    next >
Makefile  |  1992-07-05  |  3KB  |  126 lines

  1. include ../Makefile.config
  2.  
  3. #
  4. # Type of full-text searching to use....  WAIS
  5. # requires that you have a built wais distribution.
  6. #
  7. # Next requires that you have the NeXTtext.tar.Z libraries.
  8. #
  9.  
  10. LIBS    = $(SERVERLIBS)
  11.  
  12. NEXTLIBS    = -ltext -lbtree
  13.  
  14.  
  15. #############################################################################
  16. # Tons o' WAIS Objects follow.  Cruise down a ways to find the next parameter
  17. #############################################################################
  18.  
  19. NEXTOBJ = NeXTindex.o
  20. WAISGEN    = ../ir/cutil.o ../ir/futil.o ../ir/ir.o ../ir/ircfiles.o \
  21.       ../ir/irfileio.o ../ir/irfiles.o ../ir/irretrvl.o ../ir/irtfiles.o \
  22.       ../ir/panic.o ../ir/sockets.o ../ir/stoplist.o ../ir/transprt.o \
  23.       ../ir/ui.o ../ir/ustubs.o ../ir/wmessage.o ../ir/wprot.o ../ir/wutil.o \
  24.       ../ir/zprot.o ../ir/zutil.o ../ir/irsearch.o ../ir/ztype1.o \
  25.       ../ir/docid.o
  26.  
  27. TRIE    = ../ir/trie.o
  28.  
  29. WAISINV    = ../ir/sersrch.o ../ir/irhash.o ../ir/irinv.o
  30. WAISSER = ../bin/libftw.a
  31.  
  32. #################################################
  33. # Stuff for -b4 wais release 
  34. #
  35. #################################################
  36. PROTOBJ    = ../ir/cutil.o ../ir/futil.o ../ir/ircfiles.o ../ir/irfileio.o \
  37.       ../ir/irfiles.o ../ir/panic.o ../ir/sockets.o ../ir/transprt.o \
  38.       ../ir/ustubs.o  ../ir/wmessage.o ../ir/wprot.o ../ir/wutil.o \
  39.       ../ir/zprot.o ../ir/zutil.o ../ir/ztype1.o ../ir/docid.o \
  40.       ../ir/list.o
  41.  
  42.  
  43. IR_OBJ    = ../ir/ir.o ../ir/irretrvl.o ../ir/stoplist.o ../ir/irsearch.o \
  44.       ../ir/irtfiles.o ../ir/trie.o
  45.  
  46. INV_OBJ    = $(PROTOBJ) $(IR_OBJ) ../ir/ui.o ../ir/sersrch.o ../ir/irhash.o ../ir/hash.o ../ir/irinv.o
  47.  
  48. WAISSER     = ../bin/libftw.a
  49. WAISGATEOBJ = ../ui/source.o
  50. WAISLOCK    = ../ir/lock.o
  51. #
  52. # Define WAISOBJ to one of the following depending on your release of
  53. # wais...    If you're not using wais, don't worry about it....
  54. #
  55.  
  56. WAISOBJ-B3-SES = $(WAISGEN) $(WAISINV) $(WAISSER) $(MYWAIS) $(TRIE)
  57. WAISOBJ-B3.1   = $(WAISGEN) $(WAISINV) $(WAISSER) $(MYWAIS)
  58. WAISOBJ-B4     = $(INV_OBJ) $(MYWAIS) 
  59. WAISOBJ-B5     = $(INV_OBJ) $(MYWAIS) $(WAISLOCK)
  60.  
  61. WAISOBJ = $(WAISOBJ-B5) $(WAISGATEOBJ)
  62.  
  63. ###############################################################
  64. # End of user configurable stuff
  65. ###############################################################
  66.  
  67. CCFLAGS    = -g -DDATA_DIRECTORY=\"$(SERVERDATA)\" \
  68.     -DDOMAIN_NAME=\"$(DOMAIN)\" \
  69.     -DGOPHER_PORT=$(SERVERPORT) \
  70.     $(SEARCH) \
  71.     $(SERVEROPTS) \
  72.     $(INCLUDES)
  73.  
  74. OBJS    = error.o globals.o gopherd.o daemon.o special.o \
  75.     dedot.o openers.o index.o Waisindex.o serverutil.o ftp.o \
  76.     waisgopher.o
  77.  
  78. TARGET    = gopherd
  79.  
  80. all:
  81.     (cd ..; $(MAKE) $(MFLAGS) server)
  82.  
  83. #
  84. # Special rule for NeXT text indexing.
  85. #
  86. NeXTindex.o : NeXTindex.c
  87.     $(CC) $(CCFLAGS) -ObjC -I. -c NeXTindex.c
  88.  
  89.  
  90. #
  91. # Special rule for wais gateway
  92. #
  93. waisgopher.o: waisgopher.c
  94.     $(CC) $(CCFLAGS) -c waisgopher.c
  95.  
  96. .c.o:
  97.     $(CC) $(CCFLAGS) -c $<
  98.  
  99. globals.o : globals.h
  100.  
  101. $(OBJS) : ../conf.h
  102.  
  103.  
  104. next: $(OBJS) $(NEXTOBJ)
  105.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) $(NEXTLIBS)
  106.  
  107. wais: $(OBJS)
  108.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(WAISOBJ) $(LIBS)
  109.  
  110. nextwais: $(OBJS) $(NEXTOBJ)
  111.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) \
  112.         $(WAISOBJ) $(NEXTLIBS)
  113.  
  114. none: $(OBJS)
  115.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
  116.  
  117. install : all
  118.     install -c $(TARGET) $(SERVERDIR)
  119.     -rm    $(SERVERDIR)/gopherls $(SERVERDIR)/gindexd
  120.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gopherls
  121.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gindexd
  122.  
  123. clean:
  124.     -rm -f $(TARGET) $(OBJS) $(NEXTOBJ) *.out *~ core
  125.  
  126.