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
< prev
next >
Wrap
Makefile
|
1992-07-06
|
3KB
|
126 lines
include ../Makefile.config
#
# Type of full-text searching to use.... WAIS
# requires that you have a built wais distribution.
#
# Next requires that you have the NeXTtext.tar.Z libraries.
#
LIBS = $(SERVERLIBS)
NEXTLIBS = -ltext -lbtree
#############################################################################
# Tons o' WAIS Objects follow. Cruise down a ways to find the next parameter
#############################################################################
NEXTOBJ = NeXTindex.o
WAISGEN = ../ir/cutil.o ../ir/futil.o ../ir/ir.o ../ir/ircfiles.o \
../ir/irfileio.o ../ir/irfiles.o ../ir/irretrvl.o ../ir/irtfiles.o \
../ir/panic.o ../ir/sockets.o ../ir/stoplist.o ../ir/transprt.o \
../ir/ui.o ../ir/ustubs.o ../ir/wmessage.o ../ir/wprot.o ../ir/wutil.o \
../ir/zprot.o ../ir/zutil.o ../ir/irsearch.o ../ir/ztype1.o \
../ir/docid.o
TRIE = ../ir/trie.o
WAISINV = ../ir/sersrch.o ../ir/irhash.o ../ir/irinv.o
WAISSER = ../bin/libftw.a
#################################################
# Stuff for -b4 wais release
#
#################################################
PROTOBJ = ../ir/cutil.o ../ir/futil.o ../ir/ircfiles.o ../ir/irfileio.o \
../ir/irfiles.o ../ir/panic.o ../ir/sockets.o ../ir/transprt.o \
../ir/ustubs.o ../ir/wmessage.o ../ir/wprot.o ../ir/wutil.o \
../ir/zprot.o ../ir/zutil.o ../ir/ztype1.o ../ir/docid.o \
../ir/list.o
IR_OBJ = ../ir/ir.o ../ir/irretrvl.o ../ir/stoplist.o ../ir/irsearch.o \
../ir/irtfiles.o ../ir/trie.o
INV_OBJ = $(PROTOBJ) $(IR_OBJ) ../ir/ui.o ../ir/sersrch.o ../ir/irhash.o ../ir/hash.o ../ir/irinv.o
WAISSER = ../bin/libftw.a
WAISGATEOBJ = ../ui/source.o
WAISLOCK = ../ir/lock.o
#
# Define WAISOBJ to one of the following depending on your release of
# wais... If you're not using wais, don't worry about it....
#
WAISOBJ-B3-SES = $(WAISGEN) $(WAISINV) $(WAISSER) $(MYWAIS) $(TRIE)
WAISOBJ-B3.1 = $(WAISGEN) $(WAISINV) $(WAISSER) $(MYWAIS)
WAISOBJ-B4 = $(INV_OBJ) $(MYWAIS)
WAISOBJ-B5 = $(INV_OBJ) $(MYWAIS) $(WAISLOCK)
WAISOBJ = $(WAISOBJ-B5) $(WAISGATEOBJ)
###############################################################
# End of user configurable stuff
###############################################################
CCFLAGS = -O -DDATA_DIRECTORY=\"$(SERVERDATA)\" \
-DDOMAIN_NAME=\"$(DOMAIN)\" \
-DGOPHER_PORT=$(SERVERPORT) \
$(SEARCH) \
$(SERVEROPTS) \
$(INCLUDES)
OBJS = error.o globals.o gopherd.o daemon.o special.o \
dedot.o openers.o index.o Waisindex.o serverutil.o ftp.o \
waisgopher.o
TARGET = gopherd
all:
(cd ..; $(MAKE) $(MFLAGS) server)
#
# Special rule for NeXT text indexing.
#
NeXTindex.o : NeXTindex.c
$(CC) $(CCFLAGS) -ObjC -I. -c NeXTindex.c
#
# Special rule for wais gateway
#
waisgopher.o: waisgopher.c
$(CC) $(CCFLAGS) -c waisgopher.c
.c.o:
$(CC) $(CCFLAGS) -c $<
globals.o : globals.h
$(OBJS) : ../conf.h
next: $(OBJS) $(NEXTOBJ)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) $(NEXTLIBS)
wais: $(OBJS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(WAISOBJ) $(LIBS)
nextwais: $(OBJS) $(NEXTOBJ)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) \
$(WAISOBJ) $(NEXTLIBS)
none: $(OBJS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
install : all
install -c $(TARGET) $(SERVERDIR)
-rm $(SERVERDIR)/gopherls $(SERVERDIR)/gindexd
-ln -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gopherls
-ln -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gindexd
clean:
-rm -f $(TARGET) $(OBJS) $(NEXTOBJ) *.out *~ core