Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.post.mk
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | rm -f *.o *.so *.pico *.ko *.s eddep errs \ | ||||
tags vers.c \ | tags vers.c \ | ||||
vnode_if.c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h \ | vnode_if.c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h \ | ||||
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ | ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ | ||||
${CLEAN} | ${CLEAN} | ||||
# This is a hack. BFD "optimizes" away dynamic mode if there are no | # This is a hack. BFD "optimizes" away dynamic mode if there are no | ||||
# dynamic references. We could probably do a '-Bforcedynamic' mode like | # dynamic references. We could probably do a '-Bforcedynamic' mode like | ||||
# in the a.out ld. For now, this works. | # in the a.out ld. For now, this works. | ||||
hack.pico: Makefile | force-dynamic-hack.c: | ||||
:> hack.c | :> force-dynamic-hack.c | ||||
emaste: `:> ${.TARGET}` perhaps? | |||||
${CC} ${CCLDFLAGS} -shared ${CFLAGS} -nostdlib hack.c -o hack.pico | |||||
rm -f hack.c | |||||
Done Inline ActionsWhy is there not simply a hack.c target: hack.c: :> $@ might even be worth renaming it to its purpose force-dynamic-hack.c ? sjg: Why is there not simply a hack.c target:
```
hack.c:
:> $@
```
might even be worth… | |||||
force-dynamic-hack.pico: force-dynamic-hack.c Makefile | |||||
${CC} ${CCLDFLAGS} -shared ${CFLAGS} -nostdlib \ | |||||
force-dynamic-hack.c -o force-dynamic-hack.pico | |||||
emasteUnsubmitted Done Inline Actions-o ${.TARGET} perhaps? emaste: `-o ${.TARGET}` perhaps? | |||||
offset.inc: $S/kern/genoffset.sh genoffset.o | offset.inc: $S/kern/genoffset.sh genoffset.o | ||||
NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genoffset.sh genoffset.o > ${.TARGET} | NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genoffset.sh genoffset.o > ${.TARGET} | ||||
genoffset.o: $S/kern/genoffset.c | genoffset.o: $S/kern/genoffset.c | ||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon $S/kern/genoffset.c | ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon $S/kern/genoffset.c | ||||
# genoffset_test.o is not actually used for anything - the point of compiling it | # genoffset_test.o is not actually used for anything - the point of compiling it | ||||
# is to exercise the CTASSERT that checks that the offsets in the offset.inc | # is to exercise the CTASSERT that checks that the offsets in the offset.inc | ||||
▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
config.o env.o hints.o vers.o vnode_if.o: | config.o env.o hints.o vers.o vnode_if.o: | ||||
${NORMAL_C} | ${NORMAL_C} | ||||
${NORMAL_CTFCONVERT} | ${NORMAL_CTFCONVERT} | ||||
.if ${MK_REPRODUCIBLE_BUILD} != "no" | .if ${MK_REPRODUCIBLE_BUILD} != "no" | ||||
REPRO_FLAG="-R" | REPRO_FLAG="-R" | ||||
.endif | .endif | ||||
vers.c: $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP} | vers.c: .NOMETA_CMP $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP:Nvers.*} | ||||
MAKE="${MAKE}" sh $S/conf/newvers.sh ${REPRO_FLAG} ${KERN_IDENT} | MAKE="${MAKE}" sh $S/conf/newvers.sh ${REPRO_FLAG} ${KERN_IDENT} | ||||
vnode_if.c: $S/tools/vnode_if.awk $S/kern/vnode_if.src | vnode_if.c: $S/tools/vnode_if.awk $S/kern/vnode_if.src | ||||
${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -c | ${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -c | ||||
vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: $S/tools/vnode_if.awk \ | vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: $S/tools/vnode_if.awk \ | ||||
$S/kern/vnode_if.src | $S/kern/vnode_if.src | ||||
vnode_if.h: vnode_if_newproto.h vnode_if_typedef.h | vnode_if.h: vnode_if_newproto.h vnode_if_typedef.h | ||||
Show All 15 Lines |
:> ${.TARGET} perhaps?