diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-26 22:11:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-26 22:11:39 +0000 |
commit | cf73c4ff4bd72c5b565aa20b4d28e922b49c282a (patch) | |
tree | 47f31973b2218f31aa239bf603f7e139c6f6e20f /sys/arch/mvmeppc | |
parent | a76c37785eb21eb31565d5c29545230eb5eafee4 (diff) |
next step towards unification: make all the genassym chunks handle both
arch and machine dependent files (and add the missing files)
ok miod drahn
Diffstat (limited to 'sys/arch/mvmeppc')
-rw-r--r-- | sys/arch/mvmeppc/conf/Makefile.mvmeppc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/mvmeppc/conf/Makefile.mvmeppc b/sys/arch/mvmeppc/conf/Makefile.mvmeppc index 5235b8c9623..6078ace0cc8 100644 --- a/sys/arch/mvmeppc/conf/Makefile.mvmeppc +++ b/sys/arch/mvmeppc/conf/Makefile.mvmeppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvmeppc,v 1.33 2010/04/26 20:50:17 deraadt Exp $ +# $OpenBSD: Makefile.mvmeppc,v 1.34 2010/04/26 22:11:38 deraadt Exp $ # This makefile is constructed from a machine description: # config machineid @@ -111,9 +111,11 @@ LINKFLAGS+= -S -x %LOAD -assym.h: $S/kern/genassym.sh ${_machdir}/mvmeppc/genassym.cf Makefile - sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \ - < ${_machdir}/mvmeppc/genassym.cf > 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 @@ -162,8 +164,9 @@ depend:: .depend .if ${SFILES} != "" ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES} .endif - sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \ - ${CPPFLAGS} < ${_machdir}/mvmeppc/genassym.cf + 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 |