allow ${SIZE} to be set from the environment, also allow using genassym.sh (both for cross compiling).

This commit is contained in:
mrg 1998-07-30 13:34:09 +00:00
parent 3a8b550914
commit 7712d62ed7

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sparc64,v 1.1.1.1 1998/06/20 04:58:50 eeh Exp $
# $NetBSD: Makefile.sparc64,v 1.2 1998/07/30 13:34:09 mrg Exp $
# Makefile for NetBSD
#
@ -25,6 +25,7 @@ CC?= cc
LD?= /usr/ccs/bin/ld #Need to use Solaris ld to use the solaris loader
MKDEP?= mkdep
STRIP?= strip
SIZE?= size
COPTS?= -O2
# source tree is located via $S relative to the compilation directory
@ -87,7 +88,7 @@ SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL= @size $@; chmod 755 $@
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
.if ${DEBUG} == "-g"
@ -101,8 +102,10 @@ LINKFLAGS+= -S
%LOAD
.undef .USE_GENASSYM_H
.ifdef .USE_GENASSYM_H
# XXX fix me!
USE_GENASSYM?= yes
.if ${USE_GENASSYM} == "no"
assym.h: $S/kern/genassym.sh ${SPARC64}/sparc64/genassym.cf
sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
< ${SPARC64}/sparc64/genassym.cf > assym.h.tmp && \