NetBSD/lib/libc/Makefile

111 lines
3.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.127 2006/03/11 21:07:18 christos Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
1993-03-21 12:45:37 +03:00
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure. To produce a library that does
# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
# from CPPFLAGS below. To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
#
# The NLS (message catalog) functions are always in libc. To choose that
# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
# functions, put -DNLS on the CPPFLAGS line below.
#
# The YP functions are always in libc. To choose that getpwent() and friends
# actually call the YP functions, put -DYP on the CPPFLAGS line below.
1999-01-15 15:48:41 +03:00
#
# The Hesiod functions are always in libc. To choose that getpwent() and friends
# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
.include "Makefile.inc"
LIB= c
2004-05-21 06:30:03 +04:00
CPPFLAGS+= -I${.CURDIR}/include -I${.CURDIR}
.if exists (${ARCHDIR}/Makefile.inc)
.PATH: ${ARCHDIR}
.include "${ARCHDIR}/Makefile.inc"
.endif
.if exists (${ARCHDIR}/genassym.cf)
DPSRCS+= assym.h
CLEANFILES+= assym.h assym.h.tmp
assym.h: ${ARCHDIR}/genassym.cf
${_MKTARGET_CREATE}
${TOOL_GENASSYM} -- ${CC} ${CFLAGS} \
${CPPFLAGS} ${CPPFLAGS.assym.h} ${PROF} \
< ${ARCHDIR}/genassym.cf > assym.h.tmp && \
mv -f assym.h.tmp assym.h
.endif
# The following controls how to build compatibility code for old NetBSD
# binaries. If BUILDCOLD is yes, then we build a separate library; otherwise
# we include the code in libc.
BUILDCOLD?= no
.if "${BUILDCOLD}" == "yes"
SUBDIR=compat
.include <bsd.subdir.mk>
.else
COMPATDIR=${.CURDIR}/compat
.include "${.CURDIR}/compat/Makefile.inc"
.endif
.include "${.CURDIR}/../../common/lib/libc/Makefile.inc"
.include "${.CURDIR}/db/Makefile.inc"
.include "${.CURDIR}/citrus/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/compat-43/Makefile.inc"
.include "${.CURDIR}/dlfcn/Makefile.inc"
.include "${.CURDIR}/gdtoa/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/gen/Makefile.inc"
.include "${.CURDIR}/gmon/Makefile.inc"
1999-02-04 08:08:58 +03:00
.include "${.CURDIR}/hash/Makefile.inc"
.include "${.CURDIR}/iconv/Makefile.inc"
2004-05-21 06:30:03 +04:00
.include "${.CURDIR}/inet/Makefile.inc"
.include "${.CURDIR}/isc/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/locale/Makefile.inc"
1997-01-30 04:02:17 +03:00
.include "${.CURDIR}/md/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/net/Makefile.inc"
2004-05-21 06:30:03 +04:00
.include "${.CURDIR}/nameser/Makefile.inc"
1994-05-30 02:09:13 +04:00
.include "${.CURDIR}/nls/Makefile.inc"
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
.include "${.CURDIR}/quad/Makefile.inc"
1995-02-10 20:45:39 +03:00
.endif
.include "${.CURDIR}/regex/Makefile.inc"
2004-05-21 06:30:03 +04:00
.include "${.CURDIR}/resolv/Makefile.inc"
.include "${.CURDIR}/rpc/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/stdio/Makefile.inc"
.include "${.CURDIR}/stdlib/Makefile.inc"
.include "${.CURDIR}/string/Makefile.inc"
1995-04-25 04:00:58 +04:00
.include "${.CURDIR}/termios/Makefile.inc"
2003-01-18 13:52:16 +03:00
.include "${.CURDIR}/thread-stub/Makefile.inc"
1995-03-13 08:26:07 +03:00
.include "${.CURDIR}/time/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/sys/Makefile.inc"
.include "${.CURDIR}/uuid/Makefile.inc"
.if (${MKYP} != "no")
.include "${.CURDIR}/yp/Makefile.inc"
.endif
1993-03-21 12:45:37 +03:00
NLS= C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \
no.msg pl.msg sk.msg sv.msg
2002-03-06 00:25:08 +03:00
realall: tags
tags: ${SRCS}
2004-07-31 18:13:05 +04:00
${_MKTARGET_CREATE}
-${TOOL_CTAGS} -w ${.ALLSRC:M*.c}
-egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}
2002-03-06 00:25:08 +03:00
FILES= tags
FILESNAME= libc.tags
FILESDIR= /var/db
# workaround for I18N stuffs: build singlebyte setlocale() for libc.a,
# multibyte for libc.so. the quirk should be removed when we support
# dlopen() from within statically linked binaries.
CSHLIBFLAGS+= -D_I18N_DYNAMIC
.include <bsd.lib.mk>