Moved the rule for locore.o from kern.post.mk to Makefile.$ARCH.

This commit is contained in:
jake 2002-07-31 14:59:05 +00:00
parent 92be6d985e
commit 3172b6f1b7
8 changed files with 21 additions and 3 deletions

View File

@ -90,6 +90,9 @@ __reml.S: $S/$M/$M/divrem.m4
@(echo "define(NAME,\`__reml')define(OP,\`rem')define(S,\`true')"; \
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -45,6 +45,9 @@ MKMODULESENV+= MACHINE=x86_64
%CLEAN
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -44,6 +44,9 @@ MKMODULESENV+= MACHINE=i386
%CLEAN
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -46,6 +46,9 @@ ASM_CFLAGS= -x assembler-with-cpp -Wa,-x -DLOCORE ${CFLAGS}
%CLEAN
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -45,6 +45,9 @@ MKMODULESENV+= MACHINE=pc98
%CLEAN
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -54,6 +54,9 @@ COPTS+= -msoft-float
%CLEAN
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -63,6 +63,9 @@ SYSTEM_OBJS= locore.o exception.o vnode_if.o ${OBJS} hints.o env.o config.o hack
exception.o: $S/$M/$M/exception.s assym.s
${NORMAL_S}
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
%RULES
.include "$S/conf/kern.post.mk"

View File

@ -60,9 +60,6 @@ kernel-clobber:
lint: ${CFILES}
${LINT} ${LINTKERNFLAGS} ${CFLAGS:M-[DILU]*} ${.ALLSRC}
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
# This is a hack. BFD "optimizes" away dynamic mode if there are no
# dynamic references. We could probably do a '-Bforcedynamic' mode like
# in the a.out ld. For now, this works.