diff options
author | ru <ru@FreeBSD.org> | 2002-11-18 09:50:57 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-11-18 09:50:57 +0000 |
commit | 40e2359f4b10f61d80f4c8a2f6d4a3fc5c377d95 (patch) | |
tree | 4be9315729643aac6dedae31e641794773358f91 /lib/libc/Makefile | |
parent | c4af534777a866305e481071a13d258079dd2aba (diff) | |
download | FreeBSD-src-40e2359f4b10f61d80f4c8a2f6d4a3fc5c377d95.zip FreeBSD-src-40e2359f4b10f61d80f4c8a2f6d4a3fc5c377d95.tar.gz |
libc_r wasn't so tied to libc for 22 months.
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r-- | lib/libc/Makefile | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 757e2fa..c2fe829 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -16,10 +16,65 @@ CLEANFILES+=tags INSTALL_PIC_ARCHIVE= yes PRECIOUSLIB= yes +# Define (empty) variables so that make doesn't give substitution +# errors if the included makefiles don't change these: +MDSRCS= +MISRCS= +MDASM= +MIASM= +NOASM= + # -# Include make rules that are shared with libc_r. +# If there is a machine dependent makefile, use it: # -.include "${.CURDIR}/Makefile.inc" +.if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc) +.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc" +.endif + +.include "${.CURDIR}/db/Makefile.inc" +.include "${.CURDIR}/compat-43/Makefile.inc" +.include "${.CURDIR}/gen/Makefile.inc" +.if ${MACHINE_ARCH} != "powerpc" +.include "${.CURDIR}/gmon/Makefile.inc" +.endif +.include "${.CURDIR}/locale/Makefile.inc" +.include "${.CURDIR}/net/Makefile.inc" +.include "${.CURDIR}/nls/Makefile.inc" +.include "${.CURDIR}/posix1e/Makefile.inc" +.if !defined(NO_QUAD) +.include "${.CURDIR}/quad/Makefile.inc" +.endif +.include "${.CURDIR}/regex/Makefile.inc" +.include "${.CURDIR}/stdio/Makefile.inc" +.include "${.CURDIR}/stdlib/Makefile.inc" +.include "${.CURDIR}/stdtime/Makefile.inc" +.include "${.CURDIR}/string/Makefile.inc" +.include "${.CURDIR}/sys/Makefile.inc" +.include "${.CURDIR}/rpc/Makefile.inc" +.include "${.CURDIR}/uuid/Makefile.inc" +.include "${.CURDIR}/xdr/Makefile.inc" +.if !defined(NO_YP_LIBC) +CFLAGS+= -DYP +.include "${.CURDIR}/yp/Makefile.inc" +.endif +.if !defined(NO_HESIOD_LIBC) +CFLAGS+= -DHESIOD +.endif + +# If there are no machine dependent sources, append all the +# machine-independent sources: +.if empty(MDSRCS) +SRCS+= ${MISRCS} +.else +# Append machine-dependent sources, then append machine-independent sources +# for which there is no machine-dependent variant. +SRCS+= ${MDSRCS} +.for _src in ${MISRCS} +.if ${MDSRCS:R:M${_src:R}} == "" +SRCS+= ${_src} +.endif +.endfor +.endif KQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ |