Allow port-specific Makefiles to override the name and location

of locore.[So].
This is in preparation for arch/evbppc.
This commit is contained in:
scw 2002-08-23 12:01:58 +00:00
parent a0d58bf2f5
commit c4fdfebd38
1 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.powerpc,v 1.23 2002/05/19 18:57:33 augustss Exp $
# $NetBSD: Makefile.powerpc,v 1.24 2002/08/23 12:01:58 scw Exp $
#
# Makefile for NetBSD
#
@ -49,11 +49,17 @@ AFLAGS+= ${AOPTS}
##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS= locore.o
.if !defined(SYSTEM_FIRST_OBJ)
SYSTEM_FIRST_OBJ= locore.o
.endif
.if !defined(SYSTEM_FIRST_SFILE)
SYSTEM_FIRST_SFILE= ${THISPPC}/${MACHINE}/locore.S
.endif
MD_OBJS= ${SYSTEM_FIRST_OBJ}
MD_CFILES=
MD_SFILES= ${THISPPC}/${MACHINE}/locore.S
MD_SFILES= ${SYSTEM_FIRST_SFILE}
locore.o: ${THISPPC}/${MACHINE}/locore.S assym.h
${SYSTEM_FIRST_OBJ}: ${SYSTEM_FIRST_SFILE} assym.h
${NORMAL_S}
##