1 # $NetBSD: Makefile,v 1.6 2007/02/09 22:09:32 ad Exp $
8 LIBPDIR
= ${.CURDIR
}/..
/libpthread
10 .if exists
(${LIBPDIR}/arch
/${MACHINE_ARCH})
11 ARCHSUBDIR
= ${MACHINE_ARCH}
12 .elif exists
(${LIBPDIR}/arch
/${MACHINE_CPU})
13 ARCHSUBDIR
= ${MACHINE_CPU}
16 @echo
"no ARCHSUBDIR for ${MACHINE_ARCH}/${MACHINE_CPU}; skipping..."
19 .if defined
(ARCHSUBDIR
)
23 ARCHDIR
= ${LIBPDIR}/arch
/${ARCHSUBDIR}
26 CPPFLAGS
+= -I
${ARCHDIR} -I
${LIBPDIR} -I
${.CURDIR
}
28 assym.h
: genassym.sh
${ARCHDIR}/genassym.cf
29 ${HOST_SH} ${.CURDIR
}/genassym.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
30 < ${ARCHDIR}/genassym.cf
> assym.h.tmp
&& \
31 mv
-f assym.h.tmp assym.h