[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc

Annotation of src/lib/libc/Makefile.inc, Revision 1.4

1.4     ! mrg         1: #      $NetBSD: Makefile.inc,v 1.3 2007/06/03 17:36:08 christos Exp $
1.1       christos    2: #      @(#)Makefile    8.2 (Berkeley) 2/3/94
                      3: #
                      4: # All library objects contain sccsid strings by default; they may be
                      5: # excluded as a space-saving measure.  To produce a library that does
                      6: # not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
                      7: # from CPPFLAGS below.  To remove these strings from just the system call
                      8: # stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
                      9: #
                     10: # The NLS (message catalog) functions are always in libc.  To choose that
                     11: # strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
                     12: # functions, put -DNLS on the CPPFLAGS line below.
                     13: #
                     14: # The YP functions are always in libc. To choose that getpwent() and friends
                     15: # actually call the YP functions, put -DYP on the CPPFLAGS line below.
                     16: #
                     17: # The Hesiod functions are always in libc. To choose that getpwent() and friends
                     18: # actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
                     19:
1.3       christos   20: USE_FORT?=     yes
1.2       tls        21:
1.1       christos   22: USE_SHLIBDIR=  yes
                     23:
                     24: .include <bsd.own.mk>
                     25:
                     26: WARNS=4
                     27: CPPFLAGS+=     -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
                     28:
                     29: .if (${USE_HESIOD} != "no")
                     30: CPPFLAGS+=     -DHESIOD
                     31: .endif
                     32:
                     33: .if (${USE_INET6} != "no")
                     34: CPPFLAGS+=     -DINET6
                     35: .endif
                     36:
                     37: CPPFLAGS+=     -DNLS
                     38:
                     39: .if (${USE_YP} != "no")
                     40: CPPFLAGS+=     -DYP
                     41: .endif
                     42:
                     43: .if ${MACHINE_ARCH} == "i386"
                     44: # Set lint to exit on warnings
                     45: LINTFLAGS+=    -w
                     46: .endif
                     47: # ignore 'empty translation unit' warnings.
                     48: LINTFLAGS+=    -X 272
                     49:
1.4     ! mrg        50: .include "libcincludes.mk"
1.1       christos   51:
                     52: ARCHDIR=       ${.CURDIR}/arch/${ARCHSUBDIR}
                     53: AFLAGS+=       -I${ARCHDIR}
                     54: .if defined(DESTDIR)
                     55: AFLAGS+=       -nostdinc -idirafter ${DESTDIR}/usr/include
                     56: .endif
                     57: CLEANFILES+=   tags
                     58:
                     59: # Don't try to lint the C library against itself when creating llib-lc.ln
                     60: LLIBS=
                     61:
                     62: INCSDIR=       /usr/include

CVSweb <webmaster@jp.NetBSD.org>