xref: /freebsd/rescue/librescue/Makefile (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1884c25d1SGordon Tetlow#
2884c25d1SGordon Tetlow#
3884c25d1SGordon Tetlow
4c6063d0dSWarner Losh.include <src.opts.mk>
5ca832df4SGlen BarberPACKAGE=	rescue
6d9ca85fcSRuslan ErmilovMK_SSP=		no
7e1fe3dbaSRuslan Ermilov
8884c25d1SGordon Tetlow# Certain library entries have hard-coded references to
9884c25d1SGordon Tetlow# /bin, /sbin, etc, that require those entries to be
10884c25d1SGordon Tetlow# recompiled for use in /rescue.  This Makefile
11884c25d1SGordon Tetlow# accomplishes that.  Note that this is pure build hackery.
12884c25d1SGordon Tetlow# This library should never be installed, and isn't even linked
13884c25d1SGordon Tetlow# with in the normal way. (See ../rescue/Makefile for details.)
14884c25d1SGordon Tetlow
1523583802SWarner Losh.PATH: ${SRCTOP}/lib/libc/gen \
1623583802SWarner Losh       ${SRCTOP}/lib/libc/net \
1723583802SWarner Losh       ${SRCTOP}/lib/libc/stdlib \
1823583802SWarner Losh       ${SRCTOP}/lib/libutil
19eb550d3cSDavid E. O'Brien
20884c25d1SGordon TetlowLIB=		rescue
21a35d8893SRuslan ErmilovINTERNALLIB=	# Don't install this library
22eb550d3cSDavid E. O'BrienSRCS=		exec.c getusershell.c login_class.c popen.c rcmdsh.c \
23eb550d3cSDavid E. O'Brien		sysctl.c system.c
24884c25d1SGordon Tetlow
25*fe815331SKyle EvansWARNS?=		3
26*fe815331SKyle Evans
27884c25d1SGordon TetlowCFLAGS+=	-DRESCUE
28884c25d1SGordon Tetlow# Flags copied from src/lib/libc and src/lib/libutil
29eb550d3cSDavid E. O'Brien# libc/db/Makefile.inc
30884c25d1SGordon TetlowCFLAGS+=	-D__DBINTERFACE_PRIVATE
31eb550d3cSDavid E. O'Brien# libc/net/Makefile.inc & libutil/Makefile
32bb963f19SYaroslav Tykhiy.if ${MK_INET6_SUPPORT} != "no"
33884c25d1SGordon TetlowCFLAGS+=	-DINET6
34bb963f19SYaroslav Tykhiy.endif
35eb550d3cSDavid E. O'Brien# libc/regex/Makefile.inc & libc/regex/grot/Makefile
36884c25d1SGordon TetlowCFLAGS+=	-DPOSIX_MISTAKE
37eb550d3cSDavid E. O'Brien# libc/rpc/Makefile.inc
38eb550d3cSDavid E. O'BrienCFLAGS+=	-DBROKEN_DES -DPORTMAP -DDES_BUILTIN
39eb550d3cSDavid E. O'Brien# libc/Makefile
40e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
416c58990dSBjoern A. ZeebCFLAGS+=       -DYP
426c58990dSBjoern A. Zeeb.endif
43e1fe3dbaSRuslan Ermilov.if ${MK_HESIOD} != "no"
446c58990dSBjoern A. ZeebCFLAGS+=       -DHESIOD
453d86554cSPoul-Henning Kamp.endif
4623583802SWarner LoshCFLAGS+=	-I${SRCTOP}/lib/libc/include
47884c25d1SGordon Tetlow
48884c25d1SGordon Tetlow.include <bsd.lib.mk>
49