Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/microcode/aic7xxx make this work with objdir, drop u...



details:   https://anonhg.NetBSD.org/src/rev/fb16b415ac02
branches:  trunk
changeset: 935209:fb16b415ac02
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 27 16:00:34 2020 +0000

description:
make this work with objdir, drop unused -ll

diffstat:

 sys/dev/microcode/aic7xxx/Makefile |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r d6f7c13954a4 -r fb16b415ac02 sys/dev/microcode/aic7xxx/Makefile
--- a/sys/dev/microcode/aic7xxx/Makefile        Sat Jun 27 15:49:30 2020 +0000
+++ b/sys/dev/microcode/aic7xxx/Makefile        Sat Jun 27 16:00:34 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2003/04/19 19:26:10 fvdl Exp $
+#      $NetBSD: Makefile,v 1.8 2020/06/27 16:00:34 jdolecek Exp $
 
 7XXX_SEQ=      aic7xxx.seq
 7XXX_SEQHDR=   aic7xxx_seq.h
@@ -8,7 +8,7 @@
 79XX_SEQHDR=   aic79xx_seq.h
 79XX_REGHDR=   aic79xx_reg.h
 
-AICASMINCS=-I/usr/include -I${.CURDIR}/../../.. -I.
+AICASMINCS=-I/usr/include -I${.CURDIR}/../../.. -I. -I${.CURDIR}
 
 PROG=  aicasm
 
@@ -18,7 +18,7 @@
 YHEADER=1
 
 DPADD+= ${LIBL} ${LIBY}
-LDADD+= -ll -ly
+LDADD+= -ly
 
 NOSHARE=# defined
 
@@ -29,11 +29,12 @@
 #
 LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
 YFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/}
+CPPFLAGS+=     -I${.CURDIR}
 
 regen: 7xxx_headers 79xx_headers
 
 7xxx_headers: ${PROG} ${7XXX_SEQ}
-       ./${PROG} ${AICASMINCS} -o ${7XXX_SEQHDR} -r ${7XXX_REGHDR} ${7XXX_SEQ}
+       ./${PROG} ${AICASMINCS} -o ${.CURDIR}/${7XXX_SEQHDR} -r ${.CURDIR}/${7XXX_REGHDR} ${.CURDIR}/${7XXX_SEQ}
 
 79xx_headers: ${PROG} ${79XX_SEQ}
-       ./${PROG} ${AICASMINCS} -o ${79XX_SEQHDR} -r ${79XX_REGHDR} ${79XX_SEQ}
+       ./${PROG} ${AICASMINCS} -o ${.CURDIR}/${79XX_SEQHDR} -r ${.CURDIR}/${79XX_REGHDR} ${.CURDIR}/${79XX_SEQ}



Home | Main Index | Thread Index | Old Index