# Generated automatically from Makefile.in by configure.
# Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
# 
# Permission to use, copy, modify, and distribute this material 
# for any purpose and without fee is hereby granted, provided 
# that the above copyright notice and this permission notice 
# appear in all copies, and that the name of Bellcore not be 
# used in advertising or publicity pertaining to this 
# material without the specific, prior written permission 
# of an authorized representative of Bellcore.  BELLCORE 
# MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
# OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
# WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
#

VERS=2.3.6
#FOOBAR-sun4=-Bstatic
#STATICFLAG=FOOBAR${HOST_ARCH}
CFLAGS = -g -O2  -I.  ${$(STATICFLAG)} 
LDLIBS = 
CONFIGDIR = ..
LOCALCFLAGS= -I${CONFIGDIR} ${CFLAGS}
prefix=/usr/local
exec_prefix=${prefix}
BINDIR=${exec_prefix}/bin
RM=rm -f
SHELL=/bin/sh

.c.o:
	${RM} $@
	$(CC) -c  $(LOCALCFLAGS) $*.c

RICHOBJS=richlex.o richset.o usascii.o iso2022.o
OBJS=richtext richtoatk

all:  ${OBJS}

richtext: richtext.o $(RICHOBJS)
	$(CC) ${LOCALCFLAGS} -o richtext richtext.o $(RICHOBJS) -ltermcap $(LDLIBS)

richtoatk: richtoatk.o $(RICHOBJS)
	$(CC) ${LOCALCFLAGS} -o richtoatk richtoatk.o $(RICHOBJS) $(LDLIBS)

richtext.o:	richlex.h richset.h
richtoatk.o:	richlex.h
richlex.o:	richlex.h richset.h
richset.o:	richlex.h richset.h
usascii.o:	richlex.h richset.h
iso2022.o:	richlex.h richset.h

clean:
	${RM} ${OBJS} *.o *.BAK

distclean: clean
	${RM} Makefile

install: ${OBJS}
	@for x in ${OBJS} ; do \
		echo ${RM} ${BINDIR}/$$x ; \
		echo cp $$x ${BINDIR}/$$x ; \
		echo chmod 755 ${BINDIR}/$$x ; \
	done | ${SHELL} -x

tar:
	tar cvf richtext-$(VERS).tar *.c *.h richtext.1 Makefile COMMANDS NOTES
