1 1.5 yamt # $NetBSD: Makefile.inc,v 1.5 2005/12/27 08:43:05 yamt Exp $ 2 1.1 christos 3 1.1 christos COMMON_DIR:=${.PARSEDIR} 4 1.1 christos COMMON_CODEDIRS=gen gmon hash/sha1 inet md net quad stdlib string 5 1.1 christos 6 1.3 christos .if defined(LIBKERN_ARCH) && !empty(LIBKERN_ARCH) && \ 7 1.3 christos exists(${KERNDIR}/arch/${LIBKERN_ARCH}) 8 1.3 christos COMMON_ARCHSUBDIR= ${LIBKERN_ARCH} 9 1.3 christos .elif exists(${COMMON_DIR}/arch/${MACHINE_ARCH}) 10 1.3 christos COMMON_ARCHSUBDIR= ${MACHINE_ARCH} 11 1.1 christos .elif exists(${COMMON_DIR}/arch/${MACHINE_CPU}) 12 1.3 christos COMMON_ARCHSUBDIR= ${MACHINE_CPU} 13 1.5 yamt .endif 14 1.1 christos 15 1.1 christos COMMON_ARCHDIR=${COMMON_DIR}/arch/${COMMON_ARCHSUBDIR} 16 1.1 christos 17 1.1 christos .for i in ${COMMON_CODEDIRS} 18 1.1 christos .if exists(${COMMON_DIR}/$i) 19 1.1 christos .PATH.c: ${COMMON_DIR}/$i 20 1.1 christos .endif 21 1.1 christos .if exists(${COMMON_ARCHDIR}/$i) 22 1.1 christos .PATH.S: ${COMMON_ARCHDIR}/$i 23 1.1 christos .endif 24 1.1 christos .endfor 25 1.1 christos 26 1.5 yamt CPPFLAGS+=-I${COMMON_DIR}/quad -I${COMMON_DIR}/string 27 1.5 yamt .if defined(COMMON_ARCHSUBDIR) 28 1.5 yamt CPPFLAGS+=-I${COMMON_ARCHDIR}/string 29 1.5 yamt .endif 30