From cf73c4ff4bd72c5b565aa20b4d28e922b49c282a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 26 Apr 2010 22:11:39 +0000 Subject: next step towards unification: make all the genassym chunks handle both arch and machine dependent files (and add the missing files) ok miod drahn --- sys/arch/landisk/conf/Makefile.landisk | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'sys/arch/landisk/conf') diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk index fcc8947083a..2d02f0197a6 100644 --- a/sys/arch/landisk/conf/Makefile.landisk +++ b/sys/arch/landisk/conf/Makefile.landisk @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.landisk,v 1.14 2010/04/26 20:50:16 deraadt Exp $ +# $OpenBSD: Makefile.landisk,v 1.15 2010/04/26 22:11:37 deraadt Exp $ # This makefile is constructed from a machine description: # config machineid @@ -110,12 +110,12 @@ LINKFLAGS+= -S -x %LOAD -assym.h: $S/kern/genassym.sh \ - ${_archdir}/sh/genassym.cf Makefile - cat ${_archdir}/sh/genassym.cf | \ - sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \ - > assym.h.tmp && \ - mv -f assym.h.tmp assym.h +assym.h: $S/kern/genassym.sh Makefile \ + ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf + cat ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf | \ + sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PARAM} | \ + sort -u > assym.h.tmp && \ + mv -f assym.h.tmp assym.h param.c: $S/conf/param.c rm -f param.c @@ -163,8 +163,9 @@ depend:: .depend .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} .endif - cat ${_archdir}/sh/genassym.cf | \ - sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} ${CPPFLAGS} + cat ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf | \ + sh $S/kern/genassym.sh ${MKDEP} ${CFLAGS} ${CPPFLAGS} | \ + sort -u > assym.dep @sed -e 's/.*\.o: /assym.h: /' -e 's/\/tmp\/genassym_c.[^ ]*//' \ < assym.dep >> .depend @rm -f assym.dep -- cgit v1.2.3