ed401558f2
be changed in the future to "yes". If MKDYNAMICROOT == "no", there is no change from existing behaviour of a static /bin and /sbin (and a few programs in elsewhere). If MKDYNAMICROOT == "yes", the following changes occur: in <bsd.own.mk>: SHLIBDIR?= /lib SHLINKDIR?= /lib in various Makefiles, the following entry is DISABLED. LDSTATIC?=-static This results in all programs (except those "standalone" programs built in sys/arch/*/stand) are linked dynamically, the shared linker is moved from /usr/libexec to /lib (with a compat symlink), and the shared libraries used by /bin and /sbin programs are moved from /usr/lib to /lib (with compat symlinks).
32 lines
852 B
Makefile
32 lines
852 B
Makefile
# $NetBSD: Makefile,v 1.12 2002/08/27 14:46:18 lukem Exp $
|
|
|
|
NOMAN= # defined
|
|
|
|
.include <bsd.own.mk> # for MKDYNAMICROOT definition
|
|
|
|
PROG= ktruss
|
|
SRCS= ktrace.c dump.c subr.c ioctl.c misc.c setemul.c
|
|
CPPFLAGS+= -I. -I${.CURDIR}/../ktrace -I${.CURDIR}/../../sys \
|
|
-I${.CURDIR}/../kdump -DKTRUSS
|
|
CLEANFILES+= misc.c misc.h ioctl.c
|
|
WFORMAT=1
|
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
|
LDSTATIC?=-static
|
|
.endif
|
|
|
|
dump.c misc.c: misc.h
|
|
misc.h: ${DESTDIR}/usr/include/sys/errno.h \
|
|
${DESTDIR}/usr/include/sys/signal.h
|
|
CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} sh ${.CURDIR}/makeerrnos.sh \
|
|
${DESTDIR}/usr/include/sys/errno.h \
|
|
${DESTDIR}/usr/include/sys/signal.h misc
|
|
|
|
# XXX It looks like .NOTPARALLEL doesn't works.
|
|
.NOTPARALLEL:
|
|
|
|
.include "${.CURDIR}/../kdump/Makefile.ioctl-c"
|
|
.include <bsd.prog.mk>
|
|
|
|
.PATH: ${.CURDIR}/../ktrace ${.CURDIR}/../kdump
|