head	1.18;
access;
symbols
	RELENG_3_5_0_RELEASE:1.16.2.1
	RELENG_3_4_0_RELEASE:1.16.2.1
	RELENG_3_3_0_RELEASE:1.16.2.1
	RELENG_3_2_PAO:1.16.0.4
	RELENG_3_2_PAO_BP:1.16
	RELENG_3_2_0_RELEASE:1.16
	RELENG_3_1_0_RELEASE:1.16
	RELENG_3:1.16.0.2
	RELENG_3_BP:1.16
	RELENG_2_2_8_RELEASE:1.10
	RELENG_3_0_0_RELEASE:1.15
	RELENG_2_2_7_RELEASE:1.10
	RELENG_2_2_6_RELEASE:1.10
	RELENG_2_2_5_RELEASE:1.10
	RELENG_2_2_2_RELEASE:1.10
	RELENG_2_2_1_RELEASE:1.10
	RELENG_2_2_0_RELEASE:1.10
	RELENG_2_1_7_RELEASE:1.8.4.1
	RELENG_2_1_6_1_RELEASE:1.8.4.1
	RELENG_2_1_6_RELEASE:1.8.4.1
	RELENG_2_2:1.10.0.2
	RELENG_2_2_BP:1.10
	RELENG_2_1_5_RELEASE:1.8.4.1
	RELENG_2_1_0_RELEASE:1.8.4.1
	RELENG_2_1_0:1.8.0.4
	RELENG_2_1_0_BP:1.8
	RELENG_2_0_5_RELEASE:1.8
	RELENG_2_0_5:1.8.0.2
	RELENG_2_0_5_BP:1.8
	RELENG_2_0_5_ALPHA:1.8
	RELEASE_2_0:1.8
	BETA_2_0:1.8
	ALPHA_2_0:1.7.0.2
	libmytinfo_3_0_ache:1.1.1.1
	ross_ridge:1.1.1;
locks; strict;
comment	@# @;


1.18
date	99.11.24.12.34.05;	author peter;	state dead;
branches;
next	1.17;

1.17
date	99.08.28.00.05.11;	author peter;	state Exp;
branches;
next	1.16;

1.16
date	98.12.27.15.04.31;	author bde;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	98.09.02.15.22.11;	author bde;	state Exp;
branches;
next	1.14;

1.14
date	98.08.15.07.15.51;	author jb;	state Exp;
branches;
next	1.13;

1.13
date	98.07.07.01.51.18;	author bde;	state Exp;
branches;
next	1.12;

1.12
date	97.02.22.15.07.29;	author peter;	state Exp;
branches;
next	1.11;

1.11
date	97.01.14.06.09.47;	author jkh;	state Exp;
branches;
next	1.10;

1.10
date	96.08.30.01.57.19;	author peter;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	95.08.06.12.37.26;	author bde;	state Exp;
branches;
next	1.8;

1.8
date	94.11.16.11.54.09;	author ache;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	94.10.28.06.58.04;	author ache;	state Exp;
branches;
next	1.6;

1.6
date	94.10.10.01.03.26;	author ache;	state Exp;
branches;
next	1.5;

1.5
date	94.10.10.00.32.17;	author ache;	state Exp;
branches;
next	1.4;

1.4
date	94.10.09.18.38.59;	author ache;	state Exp;
branches;
next	1.3;

1.3
date	94.10.09.17.50.50;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	94.10.09.16.37.19;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	94.10.06.23.38.40;	author ache;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.10.06.23.38.41;	author ache;	state Exp;
branches;
next	;

1.8.4.1
date	95.08.31.21.41.18;	author davidg;	state Exp;
branches;
next	1.8.4.2;

1.8.4.2
date	99.09.05.11.18.37;	author peter;	state Exp;
branches;
next	;

1.10.2.1
date	99.09.05.11.17.03;	author peter;	state Exp;
branches;
next	;

1.16.2.1
date	99.08.29.14.57.16;	author peter;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Ensure libmytinfo stays dead..  I originally left it here so that we might
be able to build the old shared versions rather than taking a binary for
the compat area, but that seems to have caused confusion.
@
text
@# Makefile for libmytinfo
# Use 'make update_term_h' manually after changing internal
# mytinfo structures
# $FreeBSD: src/lib/libmytinfo/Makefile,v 1.17 1999/08/28 00:05:11 peter Exp $

LIB=    mytinfo
SRCS=   addstr.c binorder.c buildpath.c caplist.c capsort.c compar.c\
	fillterm.c findcap.c findterm.c getother.c gettbin.c\
	gettcap.c gettinfo.c tcapconv.c tcapvars.c termcap.c\
	terminfo.c tgoto.c tiget.c tmatch.c tparm.c tputs.c tty.c version.c
CLEANFILES=binorder.c caplist.c capsort.c mkbinorder mkcaplist \
	mkcapsort mktermhead mkversion readcaps.o version.c

CFLAGS+=-Wall -I${.CURDIR}

CAPS=   1000

# ${.CURDIR}/term.h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
update_term_h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
	cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h

beforeinstall:
	$(INSTALL) -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/term.h \
		${DESTDIR}/usr/include
	ln -sf term.h ${DESTDIR}/usr/include/nterm.h

build-tools: mkbinorder mkcaplist mkcapsort mkversion

capsort.c: mkcapsort
	./mkcapsort > capsort.c

.for f in caplist capsort compar findcap
CLEANFILES+=cross-$f.o
cross-$f.o: $f.c
	${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
.endfor

mkcapsort: mkcapsort.c cross-caplist.o cross-compar.o
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o ${.TARGET} ${.ALLSRC}

binorder.c: mkbinorder ${.CURDIR}/bin_order
	./mkbinorder ${.CURDIR}/bin_order > binorder.c

mkbinorder: mkbinorder.c cross-capsort.o cross-caplist.o cross-compar.o \
	    cross-findcap.o
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o ${.TARGET} ${.ALLSRC}

version.c: mkversion
	./mkversion > version.c

mkversion: mkversion.c
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o mkversion ${.CURDIR}/mkversion.c

${.CURDIR}/term.head: mktermhead ${.CURDIR}/cap_list
	./mktermhead -n $(CAPS) ${.CURDIR}/cap_list > ${.CURDIR}/term.head

caplist.c: mkcaplist ${.CURDIR}/cap_list
	./mkcaplist -n $(CAPS) ${.CURDIR}/cap_list > caplist.c

mktermhead: mktermhead.c readcaps.o
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o mktermhead ${.CURDIR}/mktermhead.c readcaps.o

mkcaplist: mkcaplist.c readcaps.o
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o mkcaplist ${.CURDIR}/mkcaplist.c readcaps.o

.include <bsd.lib.mk>
@


1.17
log
@$Id$ -> $FreeBSD$
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.16
log
@Fixed CLEANFILES.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.15 1998/09/02 15:22:11 bde Exp $
@


1.16.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.15
log
@Keep build-tools objects separate from `all' objects so that my
cross-builds work.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.14 1998/08/15 07:15:51 jb Exp $
d11 1
a11 1
CLEANFILES+= binorder.c caplist.c capsort.c mkbinorder mkcaplist \
d33 1
a33 1
CLANFILES+= cross-$f.o
@


1.14
log
@Make the locally built and executed build tools in this directory
static to avoid them trying to use shared libraries before we're
ready. During the initial elf buildworld, the shared loader only
exists in the obj tree, so it can't be used.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.13 1998/07/07 01:51:18 bde Exp $
d32 8
a39 2
mkcapsort: mkcapsort.c caplist.o compar.o
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o mkcapsort ${.CURDIR}/mkcapsort.c caplist.o compar.o
d44 3
a46 3
mkbinorder: mkbinorder.c capsort.o caplist.o compar.o findcap.o
	$(CC) -static $(CFLAGS) $(LDFLAGS) -o mkbinorder ${.CURDIR}/mkbinorder.c capsort.o \
		caplist.o compar.o findcap.o
@


1.13
log
@Added a `build-tools' target for internal tools.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.12 1997/02/22 15:07:29 peter Exp $
d33 1
a33 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o mkcapsort ${.CURDIR}/mkcapsort.c caplist.o compar.o
d39 1
a39 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o mkbinorder ${.CURDIR}/mkbinorder.c capsort.o \
d46 1
a46 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o mkversion ${.CURDIR}/mkversion.c
d55 1
a55 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o mktermhead ${.CURDIR}/mktermhead.c readcaps.o
d58 1
a58 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o mkcaplist ${.CURDIR}/mkcaplist.c readcaps.o
@


1.12
log
@Revert $FreeBSD$ to $Id$
@
text
@d4 1
a4 1
# $Id$
d26 2
@


1.11
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.10
log
@cmp -s || install -c ==> install -C
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.9 1995/08/06 12:37:26 bde Exp $
@


1.10.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.9
log
@Install source files with the -c flag, not with the optional flag ${COPY}.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.8 1994/11/16 11:54:09 ache Exp $
d20 1
a20 1
	 cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h
d23 3
a25 6
	-cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h && \
	 cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/nterm.h || \
	  ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${.CURDIR}/term.h ${DESTDIR}/usr/include; \
	    rm -f ${DESTDIR}/usr/include/nterm.h; \
	    ln -s term.h ${DESTDIR}/usr/include/nterm.h )
@


1.8
log
@Change rules to not generate term.h on second make depend
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.7 1994/10/28 06:58:04 ache Exp $
d25 1
a25 1
	  ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
@


1.8.4.1
log
@Brought in change from rev 1.9: use -c, not COPY.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.8 1994/11/16 11:54:09 ache Exp $
d25 1
a25 1
	  ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
@


1.8.4.2
log
@$Id$ -> $FreeBSD$
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.7
log
@Add -I${.CURDIR}
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.6 1994/10/10 01:03:26 ache Exp $
d18 3
a20 1
update_term_h: ${.CURDIR}/term.h
a47 3

${.CURDIR}/term.h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
	cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h
@


1.6
log
@Change link to symbolic link (term.h)
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.5 1994/10/10 00:32:17 ache Exp $
d14 1
a14 1
CFLAGS+=-Wall
@


1.5
log
@Merge term.h and nterm.h
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.4 1994/10/09 18:38:59 ache Exp $
d26 1
a26 1
	    ln ${DESTDIR}/usr/include/term.h ${DESTDIR}/usr/include/nterm.h )
@


1.4
log
@Generate term.h only once, not each beforeinstall.
Add 'update_term_h' target for manual update
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.3 1994/10/09 17:50:50 ache Exp $
d21 6
a26 4
	-cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h > \
	    /dev/null 2>&1 || \
	    $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/term.h \
	    ${DESTDIR}/usr/include
@


1.3
log
@Split all binaries from makefile now
@
text
@d2 3
a4 1
# $Id: Makefile,v 1.2 1994/10/09 16:37:19 ache Exp $
d12 1
a12 2
		mkcapsort mktermhead mkversion readcaps.o term.h* \
		version.c
d18 4
a21 2
beforeinstall: term.h
	-cmp -s term.h ${DESTDIR}/usr/include/term.h > \
d23 1
a23 1
	    $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 term.h \
d45 2
a46 2
term.h: term.head ${.CURDIR}/term.tail
	cat term.head ${.CURDIR}/term.tail > term.h
d48 2
a49 2
term.head: mktermhead ${.CURDIR}/cap_list
	./mktermhead -n $(CAPS) ${.CURDIR}/cap_list > term.head
@


1.2
log
@Preparation to split binary away, move caps to TESTS
Add some testing bits to TESTS directory
@
text
@d2 1
a2 1
# $Id$
a4 1
BINDIR= /usr/bin
a8 2
MAN1=   tconv.1
MLINKS= tconv.1 tic.1  tconv.1 captoinfo.1
d11 1
a11 1
		version.c quit.o tconv
a16 2
all: $${_LIBS} tconv

a22 8
afterinstall:
	$(INSTALL) $(COPY) $(STRIP) -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) \
		tconv ${DESTDIR}${BINDIR}
	rm -f ${DESTDIR}${BINDIR}/tic
	ln ${DESTDIR}${BINDIR}/tconv ${DESTDIR}${BINDIR}/tic
	rm -f ${DESTDIR}${BINDIR}/captoinfo
	ln ${DESTDIR}${BINDIR}/tconv ${DESTDIR}${BINDIR}/captoinfo

a56 3
tconv: tconv.c quit.o $${_LIBS}
	$(CC) ${CFLAGS} $(LDFLAGS) -L. -o tconv ${.CURDIR}/tconv.c quit.o -l$(LIB)

a57 1

@


1.1
log
@Initial revision
@
text
@d1 3
d14 1
a14 2
		version.c quit.o tconv clear.t* *.test caps tput \
		tset ttest
d20 1
a20 1
all: $${_LIBS} tconv caps
d30 1
a30 1
		tconv caps ${DESTDIR}${BINDIR}
d70 2
a71 5
tconv: tconv.c quit.o version.o $${_LIBS}
	$(CC) ${CFLAGS} $(LDFLAGS) -L. -o tconv ${.CURDIR}/tconv.c quit.o version.o -l$(LIB)

caps: caps.c quit.o version.o $${_LIBS}
	$(CC) $(CFLAGS) -o caps $(LDFLAGS) -L. ${.CURDIR}/caps.c quit.o version.o -l$(LIB)
@


1.1.1.1
log
@Moved from ports + several enhacmenets
@
text
@@
