Makefile revision 188895
1285612Sdelphij# 2275970Scy# $FreeBSD: head/rescue/librescue/Makefile 188895 2009-02-21 15:04:31Z ru $ 3275970Scy# 4285612Sdelphij 5285612Sdelphij.include <bsd.own.mk> 6275970ScyMK_SSP= no 7275970Scy 8275970Scy# Certain library entries have hard-coded references to 9275970Scy# /bin, /sbin, etc, that require those entries to be 10275970Scy# recompiled for use in /rescue. This Makefile 11275970Scy# accomplishes that. Note that this is pure build hackery. 12275970Scy# This library should never be installed, and isn't even linked 13275970Scy# with in the normal way. (See ../rescue/Makefile for details.) 14275970Scy 15275970Scy.PATH: ${.CURDIR}/../../lib/libc/gen \ 16275970Scy ${.CURDIR}/../../lib/libc/net \ 17285612Sdelphij ${.CURDIR}/../../lib/libc/stdlib \ 18285612Sdelphij ${.CURDIR}/../../lib/libutil 19285612Sdelphij 20285612SdelphijLIB= rescue 21285612SdelphijINTERNALLIB= # Don't install this library 22285612SdelphijSRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \ 23285612Sdelphij sysctl.c system.c 24285612Sdelphij 25285612SdelphijCFLAGS+= -DRESCUE 26285612Sdelphij# Flags copied from src/lib/libc and src/lib/libutil 27285612Sdelphij# libc/db/Makefile.inc 28285612SdelphijCFLAGS+= -D__DBINTERFACE_PRIVATE 29285612Sdelphij# libc/net/Makefile.inc & libutil/Makefile 30285612Sdelphij.if ${MK_INET6_SUPPORT} != "no" 31285612SdelphijCFLAGS+= -DINET6 32285612Sdelphij.endif 33285612Sdelphij# libc/regex/Makefile.inc & libc/regex/grot/Makefile 34285612SdelphijCFLAGS+= -DPOSIX_MISTAKE 35285612Sdelphij# libc/rpc/Makefile.inc 36285612SdelphijCFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN 37285612Sdelphij# libc/Makefile 38285612Sdelphij.if ${MK_NIS} != "no" 39285612SdelphijCFLAGS+= -DYP 40285612Sdelphij.endif 41285612Sdelphij.if ${MK_HESIOD} != "no" 42285612SdelphijCFLAGS+= -DHESIOD 43285612Sdelphij.endif 44285612SdelphijCFLAGS+= -I${.CURDIR}/../../lib/libc/include 45285612Sdelphij 46285612Sdelphij.include <bsd.lib.mk> 47285612Sdelphij