]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - rescue/librescue/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / rescue / librescue / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 .include <bsd.own.mk>
6
7 # Certain library entries have hard-coded references to
8 # /bin, /sbin, etc, that require those entries to be
9 # recompiled for use in /rescue.  This Makefile
10 # accomplishes that.  Note that this is pure build hackery.
11 # This library should never be installed, and isn't even linked
12 # with in the normal way. (See ../rescue/Makefile for details.)
13
14 .PATH: ${.CURDIR}/../../lib/libc/gen \
15        ${.CURDIR}/../../lib/libc/net \
16        ${.CURDIR}/../../lib/libc/stdlib \
17        ${.CURDIR}/../../lib/libutil 
18
19 LIB=            rescue
20 INTERNALLIB=    # Don't install this library
21 SRCS=           exec.c getusershell.c login_class.c popen.c rcmdsh.c \
22                 sysctl.c system.c
23
24 CFLAGS+=        -DRESCUE
25 # Flags copied from src/lib/libc and src/lib/libutil
26 # libc/db/Makefile.inc
27 CFLAGS+=        -D__DBINTERFACE_PRIVATE
28 # libc/net/Makefile.inc & libutil/Makefile
29 .if ${MK_INET6_SUPPORT} != "no"
30 CFLAGS+=        -DINET6
31 .endif
32 # libc/regex/Makefile.inc & libc/regex/grot/Makefile
33 CFLAGS+=        -DPOSIX_MISTAKE
34 # libc/rpc/Makefile.inc
35 CFLAGS+=        -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
36 # libc/Makefile
37 .if ${MK_NIS} != "no"
38 CFLAGS+=       -DYP
39 .endif
40 .if ${MK_HESIOD} != "no"
41 CFLAGS+=       -DHESIOD
42 .endif
43 CFLAGS+=        -I${.CURDIR}/../../lib/libc/include
44
45 .include <bsd.lib.mk>