# $Header: /cd/ua/sam/src/ss/rest/RCS/Makefile,v 1.3 89/06/09 15:23:22 sam REL-6-9-89 $
#
# $Log:	Makefile,v $
# Revision 1.3  89/06/09  15:23:22  sam
# No changes
# 
# Revision 1.2  89/04/03  21:15:55  sam
# Added new source files
# 
# Revision 1.1  89/03/08  20:57:30  sam
# Initial revision
# 
#
PRG=		rest
OBJ=		dorest.o rest.o tpio.o init.o list.o routines.o inter.o \
		shell.o browse.o
SRC=		dorest.c rest.c tpio.c init.c list.c routines.c inter.c \
		shell.c browse.c
INC=		rest.h ../global.h
DEF=
LIB=
CFLAGS=		-g $(DEF)
INSTALLDIR=	/usr/local/etc/ss

$(PRG): $(OBJ)
	$(CC) $(CFLAGS) -o $(PRG) $(OBJ) $(LIB)

$(OBJ): $(INC)

clean:
	/bin/rm -f a.out core errs dumper $(PRG) $(OBJ)

lint: $(SRC)
	lint -bh $(DEF) $(SRC)

install: $(INSTALLDIR)/$(PRG)

$(INSTALLDIR)/$(PRG): $(PRG)
	install -c -m 755 $(PRG) $(INSTALLDIR)

dumper: dumper.c $(INC)
	cc -g dumper.c -o dumper

shell: shell.c $(INC) routines.o
	cc -g -DTEST shell.c routines.o -o shell
