Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / modules / Makefile.assym
bloba13a580d071b98931fa45e16fa8d28cddce0a3fa
1 #       $NetBSD$
3 DPSRCS+=        assym.h
4 CLEANFILES+=    assym.h
6 .if (${MACHINE_ARCH} == "powerpc")
7 .if (${MACHINE} == "macppc" || ${MACHINE} == "ofppc" || ${MACHINE} == "prep")
8 # use oea
9 GENASSYM_DIR= $S/arch/${MACHINE_ARCH}/oea
10 CPPFLAGS+=      -DPPC_OEA
11 .endif
12 .endif
14 .if exists($S/arch/${MACHINE}/${MACHINE}/genassym.cf)
15 GENASSYM_DIR?= $S/arch/${MACHINE}/${MACHINE}
16 .elif exists($S/arch/${MACHINE_CPU}/${MACHINE_CPU}/genassym.cf)
17 GENASSYM_DIR?= $S/arch/${MACHINE_CPU}/${MACHINE_CPU}
18 .else
19 GENASSYM_DIR?=
20 .endif
22 assym.h:
23 #        ${GENASSYM_DIR}/genassym.cf
24         @echo ${S}
25         ${TOOL_GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
26                 < ${GENASSYM_DIR}/genassym.cf > assym.h.tmp && \
27         mv -f assym.h.tmp assym.h