freebsd-dev/lib/libmytinfo/Makefile

67 lines
2.1 KiB
Makefile
Raw Normal View History

# Makefile for libmytinfo
# Use 'make update_term_h' manually after changing internal
# mytinfo structures
1998-12-27 15:04:33 +00:00
# $Id: Makefile,v 1.15 1998/09/02 15:22:11 bde Exp $
1994-10-06 23:38:41 +00: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
1998-12-27 15:04:33 +00:00
CLEANFILES=binorder.c caplist.c capsort.c mkbinorder mkcaplist \
mkcapsort mktermhead mkversion readcaps.o version.c
1994-10-06 23:38:41 +00:00
1994-10-28 06:58:04 +00:00
CFLAGS+=-Wall -I${.CURDIR}
1994-10-06 23:38:41 +00:00
CAPS= 1000
# ${.CURDIR}/term.h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
update_term_h: ${.CURDIR}/term.head ${.CURDIR}/term.tail
1996-08-30 02:12:07 +00:00
cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h
beforeinstall:
1996-08-30 02:12:07 +00: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-06 23:38:41 +00:00
build-tools: mkbinorder mkcaplist mkcapsort mkversion
1994-10-06 23:38:41 +00:00
capsort.c: mkcapsort
./mkcapsort > capsort.c
.for f in caplist capsort compar findcap
1998-12-27 15:04:33 +00:00
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}
1994-10-06 23:38:41 +00:00
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}
1994-10-06 23:38:41 +00:00
version.c: mkversion
./mkversion > version.c
mkversion: mkversion.c
$(CC) -static $(CFLAGS) $(LDFLAGS) -o mkversion ${.CURDIR}/mkversion.c
1994-10-06 23:38:41 +00:00
${.CURDIR}/term.head: mktermhead ${.CURDIR}/cap_list
./mktermhead -n $(CAPS) ${.CURDIR}/cap_list > ${.CURDIR}/term.head
1994-10-06 23:38:41 +00:00
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
1994-10-06 23:38:41 +00:00
mkcaplist: mkcaplist.c readcaps.o
$(CC) -static $(CFLAGS) $(LDFLAGS) -o mkcaplist ${.CURDIR}/mkcaplist.c readcaps.o
1994-10-06 23:38:41 +00:00
.include <bsd.lib.mk>