2001-01-14 09:29:27 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.5 2001/01/14 06:29:27 christos Exp $
|
1996-08-23 09:38:53 +04:00
|
|
|
|
2001-01-14 09:29:27 +03:00
|
|
|
.if !target(assym.h)
|
1996-08-28 03:42:01 +04:00
|
|
|
S!= cd ${.CURDIR}/../../..;pwd
|
1998-03-29 03:58:44 +04:00
|
|
|
|
2000-12-08 23:15:11 +03:00
|
|
|
DPSRCS+= assym.h
|
|
|
|
|
|
|
|
.if exists($S/arch/${MACHINE}/${MACHINE}/genassym.cf)
|
|
|
|
GENASSYM_DIR?= $S/arch/${MACHINE}/${MACHINE}
|
|
|
|
.elif exists($S/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/genassym.cf)
|
|
|
|
GENASSYM_DIR?= $S/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
|
|
|
|
.else
|
|
|
|
GENASSYM_DIR?=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
assym.h: ${S}/kern/genassym.sh ${GENASSYM_DIR}/genassym.cf
|
|
|
|
sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
|
|
|
|
< ${GENASSYM_DIR}/genassym.cf > assym.h.tmp && \
|
|
|
|
mv -f assym.h.tmp assym.h
|
|
|
|
|
1998-03-29 03:58:44 +04:00
|
|
|
.include "../Makefile.inc"
|
2001-01-14 09:29:27 +03:00
|
|
|
.endif
|