diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-30 22:10:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-30 22:10:19 +0000 |
commit | 52f3ccb17dfd5af1ded7efc1e7fb2569b52b36cf (patch) | |
tree | dde56bb300067878a6221279c46c9b279c16fa8b /sys/arch/mvme68k/conf | |
parent | e11e7d07ae943c258c183ffbd364da7f44f420ad (diff) |
Invoke genassym.sh with both m68k/m68k/genassym.cf and
machine/machine/genassym.cf files (poor man's inclusion).
Diffstat (limited to 'sys/arch/mvme68k/conf')
-rw-r--r-- | sys/arch/mvme68k/conf/Makefile.mvme68k | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k index a95b4ed40c0..a004368af50 100644 --- a/sys/arch/mvme68k/conf/Makefile.mvme68k +++ b/sys/arch/mvme68k/conf/Makefile.mvme68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvme68k,v 1.11 2001/07/15 13:10:49 assar Exp $ +# $OpenBSD: Makefile.mvme68k,v 1.12 2001/08/30 22:10:18 miod Exp $ # This makefile is constructed from a machine description: # config machineid @@ -29,8 +29,11 @@ STRIP?= strip COPTS?= -O2 # source tree is located via $S relative to the compilation directory -S= ../../../.. -MVME68K=../.. +.ifndef S +S!= cd ../../../..; pwd +.endif +MVME68K=$S/arch/mvme68k +M68K= $S/arch/m68k INCLUDES= -I. -I$S/arch -I$S -nostdinc CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dmvme68k @@ -69,10 +72,10 @@ LIBCOMPAT= ${COMPATLIB_PROF} .endif ### for the Motorola 68040 Floating Point Software Product -.include "$S/arch/m68k/fpsp/Makefile.inc" +.include "${M68K}/fpsp/Makefile.inc" ### for the Motorola 68060 Support Package -.include "$S/arch/m68k/060sp/Makefile.inc" +.include "${M68K}/060sp/Makefile.inc" # compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or # HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file). @@ -113,10 +116,12 @@ LINKFLAGS+= -S %LOAD -assym.h: $S/kern/genassym.sh ${MVME68K}/mvme68k/genassym.cf - sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \ - ${PARAM} < ${MVME68K}/mvme68k/genassym.cf > assym.h.tmp && \ - mv -f assym.h.tmp assym.h +assym.h: $S/kern/genassym.sh \ + ${M68K}/m68k/genassym.cf ${MVME68K}/mvme68k/genassym.cf + cat ${M68K}/m68k/genassym.cf ${MVME68K}/mvme68k/genassym.cf | \ + sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \ + > assym.h.tmp && \ + mv -f assym.h.tmp assym.h param.c: $S/conf/param.c rm -f param.c |