1994-10-09 17:37:35 +01:00
|
|
|
# Makefile for libmytinfo
|
1994-10-09 19:39:01 +01:00
|
|
|
# Use 'make update_term_h' manually after changing internal
|
|
|
|
# mytinfo structures
|
1997-02-22 16:12:41 +01:00
|
|
|
# $Id$
|
1994-10-09 17:37:35 +01:00
|
|
|
|
1994-10-07 00:38:41 +01:00
|
|
|
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 \
|
1994-10-09 19:39:01 +01:00
|
|
|
mkcapsort mktermhead mkversion readcaps.o version.c
|
1994-10-07 00:38:41 +01:00
|
|
|
|
1994-10-28 07:58:04 +01:00
|
|
|
CFLAGS+=-Wall -I${.CURDIR}
|
1994-10-07 00:38:41 +01:00
|
|
|
|
|
|
|
CAPS= 1000
|
|
|
|
|
1994-11-16 12:54:09 +01:00
|
|
|
# ${.CURDIR}/term.h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
|
|
|
|
update_term_h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
|
1996-08-30 04:12:07 +02:00
|
|
|
cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h
|
1994-10-09 19:39:01 +01:00
|
|
|
|
|
|
|
beforeinstall:
|
1996-08-30 04:12:07 +02:00
|
|
|
$(INSTALL) -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/term.h \
|
|
|
|
${DESTDIR}/usr/include
|
|
|
|
ln -sf term.h ${DESTDIR}/usr/include/nterm.h
|
1994-10-07 00:38:41 +01:00
|
|
|
|
|
|
|
capsort.c: mkcapsort
|
|
|
|
./mkcapsort > capsort.c
|
|
|
|
|
|
|
|
mkcapsort: mkcapsort.c caplist.o compar.o
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o mkcapsort ${.CURDIR}/mkcapsort.c caplist.o compar.o
|
|
|
|
|
|
|
|
binorder.c: mkbinorder ${.CURDIR}/bin_order
|
|
|
|
./mkbinorder ${.CURDIR}/bin_order > binorder.c
|
|
|
|
|
|
|
|
mkbinorder: mkbinorder.c capsort.o caplist.o compar.o findcap.o
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o mkbinorder ${.CURDIR}/mkbinorder.c capsort.o \
|
|
|
|
caplist.o compar.o findcap.o
|
|
|
|
|
|
|
|
version.c: mkversion
|
|
|
|
./mkversion > version.c
|
|
|
|
|
|
|
|
mkversion: mkversion.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o mkversion ${.CURDIR}/mkversion.c
|
|
|
|
|
1994-10-09 19:39:01 +01:00
|
|
|
${.CURDIR}/term.head: mktermhead ${.CURDIR}/cap_list
|
|
|
|
./mktermhead -n $(CAPS) ${.CURDIR}/cap_list > ${.CURDIR}/term.head
|
1994-10-07 00:38:41 +01:00
|
|
|
|
|
|
|
caplist.c: mkcaplist ${.CURDIR}/cap_list
|
|
|
|
./mkcaplist -n $(CAPS) ${.CURDIR}/cap_list > caplist.c
|
|
|
|
|
|
|
|
mktermhead: mktermhead.c readcaps.o
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o mktermhead ${.CURDIR}/mktermhead.c readcaps.o
|
|
|
|
|
|
|
|
mkcaplist: mkcaplist.c readcaps.o
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o mkcaplist ${.CURDIR}/mkcaplist.c readcaps.o
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|