Change the default entry for ELF.

This commit is contained in:
matt 2002-02-24 00:17:42 +00:00
parent e2d6f22138
commit 17a0652faf
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2002/02/09 09:36:02 lukem Exp $
# $NetBSD: Makefile,v 1.24 2002/02/24 00:17:42 matt Exp $
S= ${.CURDIR}/../../../..
NOMAN= # defined
@ -43,12 +43,19 @@ machine-links:
CLEANFILES+= machine ${MACHINE_ARCH}
.endif
.if ${OBJECT_FMT} == "ELF"
START=start
.else
START=nisse
.endif
.PHONY: vers.c
vers.c: ${.CURDIR}/version
sh ${S}/conf/newvers_stand.sh -NM ${.CURDIR}/version "${MACHINE}"
${PROG}: machine-links ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${LD} -N -Ttext ${RELOC} -e nisse -o ${PROG}.sym ${OBJS} \
${LD} -N -Ttext ${RELOC} -e ${START} -o ${PROG}.sym ${OBJS} \
${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
.if ${OBJECT_FMT} != "ELF"
/usr/sbin/mopa.out ${PROG}.sym ${PROG}.mop