mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
Split all binaries from makefile now
This commit is contained in:
parent
f849e2cf15
commit
f404a9f3aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3465
@ -1,38 +1,25 @@
|
||||
# Makefile for libmytinfo
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.2 1994/10/09 16:37:19 ache Exp $
|
||||
|
||||
LIB= mytinfo
|
||||
BINDIR= /usr/bin
|
||||
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
|
||||
MAN1= tconv.1
|
||||
MLINKS= tconv.1 tic.1 tconv.1 captoinfo.1
|
||||
CLEANFILES+= binorder.c caplist.c capsort.c mkbinorder mkcaplist \
|
||||
mkcapsort mktermhead mkversion readcaps.o term.h* \
|
||||
version.c quit.o tconv
|
||||
version.c
|
||||
|
||||
CFLAGS+=-Wall
|
||||
|
||||
CAPS= 1000
|
||||
|
||||
all: $${_LIBS} tconv
|
||||
|
||||
beforeinstall: term.h
|
||||
-cmp -s term.h ${DESTDIR}/usr/include/term.h > \
|
||||
/dev/null 2>&1 || \
|
||||
$(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 term.h \
|
||||
${DESTDIR}/usr/include
|
||||
|
||||
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
|
||||
|
||||
capsort.c: mkcapsort
|
||||
./mkcapsort > capsort.c
|
||||
|
||||
@ -67,8 +54,4 @@ mktermhead: mktermhead.c readcaps.o
|
||||
mkcaplist: mkcaplist.c readcaps.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o mkcaplist ${.CURDIR}/mkcaplist.c readcaps.o
|
||||
|
||||
tconv: tconv.c quit.o $${_LIBS}
|
||||
$(CC) ${CFLAGS} $(LDFLAGS) -L. -o tconv ${.CURDIR}/tconv.c quit.o -l$(LIB)
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user