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