<commit_before># Makefile for libmytinfo
# Use 'make update_term_h' manually after changing internal
# mytinfo structures
# $Id: Makefile,v 1.12 1997/02/22 15:07:29 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

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

${.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) $(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><commit_msg>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.<commit_after># Makefile for libmytinfo
# Use 'make update_term_h' manually after changing internal
# mytinfo structures
# $Id: Makefile,v 1.13 1998/07/07 01:51:18 bde 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

mkcapsort: mkcapsort.c caplist.o compar.o
	$(CC) -static $(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) -static $(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) -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>
{'fraction_non_alphanumeric': 0.15924148960475212, 'fraction_numerical': 0.010966415352981495, 'mean_word_length': 4.114485981308412, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3792385', 'n_tokens_mistral': 1809, 'n_tokens_neox': 1748, 'n_words': 405}