mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 23:48:09 +01:00
1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
36 lines
908 B
Makefile
36 lines
908 B
Makefile
# $FreeBSD$
|
|
|
|
# lib must be first, or it will not work. This is because we reference
|
|
# the lib's in the directory where they are built from the binaries we
|
|
# want to build.
|
|
|
|
SUBDIR= lib usr.bin
|
|
|
|
SDIR= ${.CURDIR}/..
|
|
|
|
CODAI= ${MAKE} ${MFLAGS} cleandir; \
|
|
${MAKE} ${MFLAGS} obj; \
|
|
${MAKE} ${MFLAGS} depend all install
|
|
|
|
CODAD= ${MAKE} ${MFLAGS} MAKE_EBONES=yes cleandir; \
|
|
${MAKE} ${MFLAGS} MAKE_EBONES=yes obj; \
|
|
${MAKE} ${MFLAGS} MAKE_EBONES=yes depend all distribute
|
|
|
|
# These are the programs which depend on secure libs
|
|
sprog:
|
|
cd ${SDIR}/bin/ed; ${CODAI}
|
|
cd ${SDIR}/sbin/init; ${CODAI}
|
|
|
|
bootstrap:
|
|
( cd include; ${MAKE} ${MFLAGS} install )
|
|
( cd lib; ${MAKE} ${MFLAGS} depend all install )
|
|
${MAKE} ${MFLAGS} cleandir
|
|
${MAKE} ${MFLAGS} obj
|
|
${MAKE} ${MFLAGS} depend all install sprog
|
|
|
|
help-distribute: distribute
|
|
cd ${SDIR}/bin/ed; ${CODAD}
|
|
cd ${SDIR}/sbin/init; ${CODAD}
|
|
|
|
.include <bsd.subdir.mk>
|