diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-28 22:03:28 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-28 22:03:28 +0000 |
commit | 67a09d40cc7a71479917312842c3d5cbfa034ce7 (patch) | |
tree | 2a4951843e698cf93ec9b7161fea0f9eecc6e84d /sys/arch | |
parent | 0cb589e87651c66f5076082b07914d5803744f9d (diff) |
generate assym.h
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/stand/Makefile | 4 | ||||
-rw-r--r-- | sys/arch/i386/stand/Makefile.inc | 7 | ||||
-rw-r--r-- | sys/arch/i386/stand/etc/Makefile | 26 |
3 files changed, 34 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/Makefile b/sys/arch/i386/stand/Makefile index dbd19e9e3be..e380e37f026 100644 --- a/sys/arch/i386/stand/Makefile +++ b/sys/arch/i386/stand/Makefile @@ -1,5 +1,5 @@ -# $OpenBSD: Makefile,v 1.6 1997/03/31 03:11:58 weingart Exp $ +# $OpenBSD: Makefile,v 1.7 1997/07/28 22:03:25 mickey Exp $ -SUBDIR= libsa libz biosboot installboot boot mbr +SUBDIR= etc libsa libz biosboot installboot boot mbr .include <bsd.subdir.mk> diff --git a/sys/arch/i386/stand/Makefile.inc b/sys/arch/i386/stand/Makefile.inc index 7d7bfa605fe..326ef22e6d8 100644 --- a/sys/arch/i386/stand/Makefile.inc +++ b/sys/arch/i386/stand/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.12 1997/07/25 18:27:25 mickey Exp $ +# $OpenBSD: Makefile.inc,v 1.13 1997/07/28 22:03:26 mickey Exp $ CFLAGS=-O -Wall -Werror CPPFLAGS=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR} @@ -19,6 +19,11 @@ HEAP_LIMIT=0x50000 BOOTREL=0x3000 BOOTMAGIC=0xdeadbeef +.if exists(${SADIR}/etc/assym.h) +CPPFLAGS+=-I${SADIR}/etc +.else +CPPFLAGS+=-I${SADIR}/etc/${__objdir} +.endif .if exists(${SADIR}/libsa/libsa.a) LIBSA=${SADIR}/libsa/libsa.a .else diff --git a/sys/arch/i386/stand/etc/Makefile b/sys/arch/i386/stand/etc/Makefile new file mode 100644 index 00000000000..a9fb86655ca --- /dev/null +++ b/sys/arch/i386/stand/etc/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1 1997/07/28 22:03:27 mickey Exp $ + +S= ${.CURDIR}/../../../.. +I386= ${.CURDIR}/../.. + +all: machine-links assym.h + +machine-links: + @rm -f machine i386 + @ln -fs ${.CURDIR}/../.. i386 + @ln -fs ${.CURDIR}/../../include machine + +assym.h: $S/kern/genassym.sh ${I386}/i386/genassym.cf + @echo '#define NISA 1' > isa.h + @echo '#define NAPM 1' > apm.h + sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \ + ${PARAM} < ${I386}/i386/genassym.cf > assym.h.tmp && \ + mv -f assym.h.tmp assym.h + +clean: + @rm -f isa.h apm.h assym.h + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> +.include "../Makefile.inc" +CFLAGS+=${SACFLAGS} |