Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kmod.mk
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | |||||
DEPENDOBJS+= genoffset.o | DEPENDOBJS+= genoffset.o | ||||
.endif | .endif | ||||
assym.inc: genassym.o | assym.inc: genassym.o | ||||
offset.inc: genoffset.o | offset.inc: genoffset.o | ||||
assym.inc: ${SYSDIR}/kern/genassym.sh | assym.inc: ${SYSDIR}/kern/genassym.sh | ||||
sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET} | sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET} | ||||
genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c offset.inc | genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c offset.inc | ||||
genassym.o: ${SRCS:Mopt_*.h} | genassym.o: ${SRCS:Mopt_*.h} | ||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} \ | ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon \ | ||||
${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c | ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c | ||||
offset.inc: ${SYSDIR}/kern/genoffset.sh genoffset.o | offset.inc: ${SYSDIR}/kern/genoffset.sh genoffset.o | ||||
sh ${SYSDIR}/kern/genoffset.sh genoffset.o > ${.TARGET} | sh ${SYSDIR}/kern/genoffset.sh genoffset.o > ${.TARGET} | ||||
genoffset.o: ${SYSDIR}/kern/genoffset.c | genoffset.o: ${SYSDIR}/kern/genoffset.c | ||||
genoffset.o: ${SRCS:Mopt_*.h} | genoffset.o: ${SRCS:Mopt_*.h} | ||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} \ | ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon \ | ||||
${SYSDIR}/kern/genoffset.c | ${SYSDIR}/kern/genoffset.c | ||||
CLEANDEPENDFILES+= ${_ILINKS} | CLEANDEPENDFILES+= ${_ILINKS} | ||||
# .depend needs include links so we remove them only together. | # .depend needs include links so we remove them only together. | ||||
cleanilinks: | cleanilinks: | ||||
rm -f ${_ILINKS} | rm -f ${_ILINKS} | ||||
OBJS_DEPEND_GUESS+= ${SRCS:M*.h} | OBJS_DEPEND_GUESS+= ${SRCS:M*.h} | ||||
.if defined(KERNBUILDDIR) | .if defined(KERNBUILDDIR) | ||||
OBJS_DEPEND_GUESS+= opt_global.h | OBJS_DEPEND_GUESS+= opt_global.h | ||||
.endif | .endif | ||||
.include <bsd.dep.mk> | .include <bsd.dep.mk> | ||||
.include <bsd.clang-analyze.mk> | .include <bsd.clang-analyze.mk> | ||||
.include <bsd.obj.mk> | .include <bsd.obj.mk> | ||||
.include "kern.mk" | .include "kern.mk" |