#
# Makefile for the src subdirectory
#   brewster 2/91
#   jonathan 6/91
#   warnock@clark.net 8/94
#
# SGIs want this uncommented
# SHELL=/bin/sh

RELEASE = freeWAIS-0.5

#
# Some default programs
RM	= /bin/rm
#TOP     = 
RMFLAGS	= -f

tags:   
	etags -f TAGS indexer/*.[ch]
	etags -af TAGS ir/*.[ch]
	etags -af TAGS server/*.[ch]
	cd client; make $@

# Remove objects and library.
clean:
	$(RM) $(RMFLAGS) *%
	$(RM) $(RMFLAGS) *~
	$(RM) $(RMFLAGS) \#*\#
	$(RM) $(RMFLAGS) core
	$(RM) $(RMFLAGS) TAGS
	$(RM) $(RMFLAGS) -r SearchLog
	cd indexer; make $@ TOP=$(TOP) RM=$(RM) RMFLAGS=$(RMFLAGS)
	cd ir; make $@ TOP=$(TOP) RM=$(RM) RMFLAGS=$(RMFLAGS)
	cd client; make $@ TOP=$(TOP) RM=$(RM) RMFLAGS=$(RMFLAGS)
	cd server; make $@ TOP=$(TOP) RM=$(RM) RMFLAGS=$(RMFLAGS)

install:
	cd indexer; make $@
	cd client; make  $@
	cd server; make  $@

rlocks:
	$@
	cd ir; $@
	cd server; $@
	cd indexer; $@
	cd client; $@
