diff options
Diffstat (limited to 'sys/arch/beagle/conf/Makefile.beagle')
-rw-r--r-- | sys/arch/beagle/conf/Makefile.beagle | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/beagle/conf/Makefile.beagle b/sys/arch/beagle/conf/Makefile.beagle index 56037ebf76a..9424ed39310 100644 --- a/sys/arch/beagle/conf/Makefile.beagle +++ b/sys/arch/beagle/conf/Makefile.beagle @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.beagle,v 1.9 2010/04/26 20:52:50 deraadt Exp $ +# $OpenBSD: Makefile.beagle,v 1.10 2010/04/26 22:11:37 deraadt Exp $ # This makefile is constructed from a machine description: # config machineid @@ -120,10 +120,11 @@ LINKFLAGS+= -x %LOAD -assym.h: $S/kern/genassym.sh ${_archdir}/arm/genassym.cf Makefile - cat ${_archdir}/arm/genassym.cf | \ - sh $S/kern/genassym.sh ${CC} ${CFLAGS} \ - ${CPPFLAGS} ${PARAM} > assym.h.tmp && \ +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 @@ -173,9 +174,9 @@ depend:: .depend .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} .endif - cat ${_archdir}/arm/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: /' < assym.dep >> .depend @rm -f assym.dep |