#
# $Header: /home/orchestra5/davy/tmp/index/RCS/Makefile,v 1.3 1992/05/22 20:15:34 davy Exp $
#
# Makefile for the "index" program.
#
# David A. Curry
# Research Institute for Advanced Computer Science
# Mail Stop 230-5
# NASA Ames Research Center
# Moffett Field, CA 94035
# davy@riacs.edu
#
# $Log: Makefile,v $
# linux defines:  David Johnson:  dlj0@lehigh.edu  It should also compile
# under AIX with Linux defined.
#
# Revision 1.3  1992/05/22  20:15:34  davy
# Ported to Solaris 2.0.
#
# Revision 1.2  1989/08/22  08:51:12  davy
# Added install directive.
#
# Revision 1.1  89/08/09  11:06:00  davy
# Initial revision
# 
#

#
# Add -DSYSTEMV to run on a System V system.  -lgen is to get the System V
# regex code (compile() and step()).  You don't need it on BSD.
#
CFLAGS=	-O2 -DLinux
BINDIR= /usr/local/bin
LIBS=	-lcurses -ltermcap 

SRCS=	createdb.c dbfunc.c dbio.c main.c printdb.c screen.c \
	searchdb.c selectdb.c util.c
OBJS=	createdb.o dbfunc.o dbio.o main.o printdb.o screen.o \
	searchdb.o selectdb.o util.o

index: $(OBJS)
	$(CC) $(CFLAGS) -o index $(OBJS) $(LIBS)

install: index
	install -c -s -m 751 index $(BINDIR)/index

clean:
	rm -f a.out core index $(OBJS) \#*

createdb.o:	createdb.c defs.h
dbfunc.o:	dbfunc.c defs.h
dbio.o:		dbio.c defs.h
main.o:		main.c defs.h
printdb.o:	printdb.c defs.h
screen.o:	screen.c defs.h
searchdb.o:	searchdb.c defs.h
selectdb.o:	selectdb.c defs.h
util.o:		util.c defs.h
