No need to make a copy to build genoffset_test.o
This commit is contained in:
parent
8f8092f8e7
commit
4cee7eae0d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335906
@ -191,14 +191,12 @@ offset.inc: $S/kern/genoffset.sh genoffset.o
|
||||
genoffset.o: $S/kern/genoffset.c
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c
|
||||
|
||||
genoffset_test.c: $S/kern/genoffset.c
|
||||
cp $S/kern/genoffset.c genoffset_test.c
|
||||
|
||||
# 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
|
||||
# _lite struct(s) match those in the original(s).
|
||||
genoffset_test.o: genoffset_test.c offset.inc
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c
|
||||
genoffset_test.o: $S/kern/genoffset.c offset.inc
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST ${.ALLSRC:M*.c} \
|
||||
-o ${.TARGET}
|
||||
|
||||
assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o
|
||||
NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.TARGET}
|
||||
|
Loading…
Reference in New Issue
Block a user