1# $OpenBSD: Makefile,v 1.34 2014/06/09 20:47:10 miod Exp $ 2# 3# The NLS (message catalog) functions are always in libc. To choose that 4# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS 5# functions, put -DNLS on the CFLAGS line below. 6# 7# The YP functions are always in libc. To choose that getpwent() and friends 8# actually call the YP functions, put -DYP on the CFLAGS line below. 9 10.include <bsd.own.mk> 11 12LIB=c 13CLEANFILES+=tags 14CFLAGS+=-Wimplicit 15#CFLAGS+=-Werror 16LDADD=-nodefaultlibs -lgcc 17 18LIBCSRCDIR=${.CURDIR} 19.include "${LIBCSRCDIR}/Makefile.inc" 20 21NLS= C.msg Pig.msg da.ISO8859-1.msg da.UTF-8.msg de.ISO8859-1.msg \ 22 de.UTF-8.msg es.ISO8859-1.msg es.UTF-8.msg fi.ISO8859-1.msg \ 23 fi.UTF-8.msg fr.ISO8859-1.msg fr.UTF-8.msg it.UTF-8.msg \ 24 nl.ISO8859-1.msg nl.UTF-8.msg no.ISO8859-1.msg no.UTF-8.msg \ 25 ru.KOI8-R.msg ru.UTF-8.msg sv.ISO8859-1.msg sv.UTF-8.msg 26 27all: tags 28tags: ${SRCS} 29 ctags -w ${.ALLSRC:M*.c} 30 egrep "^SYSENTRY(.*)|^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" \ 31 /dev/null ${.ALLSRC:M*.S} | \ 32 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 33 >> tags; sort -o tags tags 34 35beforeinstall: 36 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 tags \ 37 ${DESTDIR}/var/db/lib${LIB}.tags 38 39.include <bsd.lib.mk> 40