Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/stand/bootxx Make sure that we can link again...



details:   https://anonhg.NetBSD.org/src/rev/1b713f1aac26
branches:  trunk
changeset: 472133:1b713f1aac26
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Apr 22 07:17:01 1999 +0000

description:
Make sure that we can link against the libsa.a library. It looks like a
gross hack, but I don't know how to fix this in another way.

diffstat:

 sys/arch/atari/stand/bootxx/Makefile |  19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 715ba8b3dc98 -r 1b713f1aac26 sys/arch/atari/stand/bootxx/Makefile
--- a/sys/arch/atari/stand/bootxx/Makefile      Thu Apr 22 04:50:05 1999 +0000
+++ b/sys/arch/atari/stand/bootxx/Makefile      Thu Apr 22 07:17:01 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 1999/02/19 21:51:20 leo Exp $
+#      $NetBSD: Makefile,v 1.7 1999/04/22 07:17:01 leo Exp $
 
 PROG=  bootxx
 SRCS=  bootxx.c bsdstart.s filesystem.c
@@ -10,9 +10,6 @@
 
 LIBCRT0=
 
-DPADD= ${S_MACHSA}/libsa.a
-LDADD= ${S_MACHSA}/libsa.a
-
 DEFS=  -D_STANDALONE
 INCL=  -I. -I${S_LIBTOS} -I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S}
 
@@ -27,6 +24,20 @@
 S_MACHSA=${S}/arch/atari/stand/libsa
 S_LIBTOS=${S}/arch/atari/stand/tostools/libtos
 
+.if exists(${S_MACHSA}/libsa.a)
+LIBSA=${S_MACHSA}/libsa.a
+.else
+.      if exists(${S_MACHSA}/obj/libsa.a)
+LIBSA=${S_MACHSA}/obj/libsa.a
+.      else
+LIBSA=${S_MACHSA}/obj.${MACHINE}/libsa.a
+.      endif
+.endif
+
+DPADD= ${LIBSA}
+LDADD= ${LIBSA}
+
+
 beforeinstall:
        @len=`size ${PROG} | awk 'NR==2 { print $$1+$$2 }'`;    \
         if [ $$len -gt 6656 ]; then                            \



Home | Main Index | Thread Index | Old Index