1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Don't override standard _EXTRADEPEND actions, add to them.

Fix CLEANFILES.
Collapse openpam_static_modules.o generation.
This commit is contained in:
Ruslan Ermilov 2002-04-10 17:46:59 +00:00
parent c0285beff4
commit f5ef4bac45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94369

View File

@ -141,19 +141,19 @@ STATIC_MODULES = ${MODULES:C/.*/${MODULE_DIR}\/&\/lib&.a/}
STATICOBJS += openpam_static_modules.o
CLEANFILES += openpam_static.o
_EXTRADEPEND: openpam_static.c
# We want to add to _EXTRADEPEND actions, not to override them.
_EXTRADEPEND: _EXTRADEPEND_openpam_static.c
_EXTRADEPEND_openpam_static.c: openpam_static.c
${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BID]*} \
${.ALLSRC}
.if ${OBJFORMAT} == elf
CLEANFILES+= setdef0.o openpam_static_modules.o setdef1.o \
setdef0.c setdef1.c setdefs.h
CLEANFILES+= openpam_static_modules.o
openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
.if ${OBJFORMAT} == elf
${LD} -o ${.TARGET} -r --whole-archive ${.ALLSRC}
.else
openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
${LD} -o ${.TARGET} -r -Bforcearchive ${.ALLSRC}
.endif