# $Id: Makefile,v 2.6 1997/01/05 01:03:01 chip Exp $

#
# *** IMPORTANT ***
#
# You will need to comment out the "include".  Then uncomment
# and tune the configuration settings just below it.
#

include /local/libexec/Make.sysdefs

########################################
#OPTIM = -O
##DEBUG = -g
#STRICT = -Wall
#INSTALL = install -c
#INST_PROG = $(INSTALL) -m 755
#INST_DATA = $(INSTALL) -m 644
#DIR_BIN = /usr/local/bin
#DIR_MAN1 = /usr/local/man/man1
########################################

CFLAGS = $(DEBUG) $(OPTIM) $(STRICT)
LDFLAGS = $(DEBUG)
LIBS =

all : xtail

OBJS = xtail.o entryfuncs.o miscfuncs.o

xtail : $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

$(OBJS) : xtail.h

install : all
	$(INST_PROG) xtail $(DIR_BIN)/xtail
	$(INST_DATA) $${SRCDIR-.}/xtail.1 $(DIR_MAN1)/xtail.1

clean :
	rm -f xtail *.o
	@test ! -d RCS || ( set -x ; rcsclean )

SRCS = README Makefile xtail.h xtail.c entryfuncs.c miscfuncs.c xtail.1

srcs : $(SRCS)

tar : $(SRCS)
	tar cvf xtail.tar $(SRCS)

