Home | History | Annotate | Line # | Download | only in libc
Makefile.inc revision 1.1
      1 #	$NetBSD: Makefile.inc,v 1.1 2006/03/11 21:07:18 christos Exp $
      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 
     20 USE_SHLIBDIR=	yes
     21 
     22 .include <bsd.own.mk>
     23 
     24 WARNS=4
     25 CPPFLAGS+=	-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
     26 
     27 .if (${USE_HESIOD} != "no")
     28 CPPFLAGS+=	-DHESIOD
     29 .endif
     30 
     31 .if (${USE_INET6} != "no")
     32 CPPFLAGS+=	-DINET6
     33 .endif
     34 
     35 CPPFLAGS+=	-DNLS
     36 
     37 .if (${USE_YP} != "no")
     38 CPPFLAGS+=	-DYP
     39 .endif
     40 
     41 .if ${MACHINE_ARCH} == "i386"
     42 # Set lint to exit on warnings
     43 LINTFLAGS+=	-w
     44 .endif
     45 # ignore 'empty translation unit' warnings.
     46 LINTFLAGS+=	-X 272
     47 
     48 .if exists(${.CURDIR}/arch/${MACHINE_ARCH})
     49 ARCHSUBDIR=	${MACHINE_ARCH}
     50 .elif exists(${.CURDIR}/arch/${MACHINE_CPU})
     51 ARCHSUBDIR=	${MACHINE_CPU}
     52 .else
     53 .BEGIN:
     54 	@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
     55 	@false
     56 .endif
     57 
     58 ARCHDIR=	${.CURDIR}/arch/${ARCHSUBDIR}
     59 AFLAGS+=	-I${ARCHDIR}
     60 .if defined(DESTDIR)
     61 AFLAGS+=	-nostdinc -idirafter ${DESTDIR}/usr/include
     62 .endif
     63 CLEANFILES+=	tags
     64 
     65 # Don't try to lint the C library against itself when creating llib-lc.ln
     66 LLIBS=
     67 
     68 INCSDIR=	/usr/include
     69