2015-05-12 00:26:41 +03:00
|
|
|
# $NetBSD: Makefile.assym,v 1.5 2015/05/11 21:26:41 martin Exp $
|
2008-01-16 15:34:50 +03:00
|
|
|
|
|
|
|
DPSRCS+= assym.h
|
|
|
|
CLEANFILES+= assym.h
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "powerpc")
|
|
|
|
.if (${MACHINE} == "macppc" || ${MACHINE} == "ofppc" || ${MACHINE} == "prep")
|
|
|
|
# use oea
|
|
|
|
GENASSYM_DIR= $S/arch/${MACHINE_ARCH}/oea
|
|
|
|
CPPFLAGS+= -DPPC_OEA
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2013-11-09 21:30:46 +04:00
|
|
|
.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*))
|
2015-05-12 00:26:41 +03:00
|
|
|
.if ${MACHINE} == "acorn26"
|
|
|
|
GENASSYM_DIR= $S/arch/acorn26/acorn26
|
|
|
|
.else
|
2013-11-09 21:30:46 +04:00
|
|
|
GENASSYM_DIR= $S/arch/arm/arm32
|
|
|
|
.endif
|
2015-05-12 00:26:41 +03:00
|
|
|
.endif
|
2013-11-09 21:30:46 +04:00
|
|
|
|
2008-01-16 15:34:50 +03:00
|
|
|
.if exists($S/arch/${MACHINE}/${MACHINE}/genassym.cf)
|
|
|
|
GENASSYM_DIR?= $S/arch/${MACHINE}/${MACHINE}
|
|
|
|
.elif exists($S/arch/${MACHINE_CPU}/${MACHINE_CPU}/genassym.cf)
|
|
|
|
GENASSYM_DIR?= $S/arch/${MACHINE_CPU}/${MACHINE_CPU}
|
|
|
|
.else
|
|
|
|
GENASSYM_DIR?=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
assym.h:
|
|
|
|
# ${GENASSYM_DIR}/genassym.cf
|
|
|
|
@echo ${S}
|
2012-03-25 10:55:19 +04:00
|
|
|
${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
|
2014-03-04 18:58:14 +04:00
|
|
|
${GENASSYM_CPPFLAGS} < ${GENASSYM_DIR}/genassym.cf \
|
|
|
|
> assym.h.tmp && \
|
2008-01-16 15:34:50 +03:00
|
|
|
mv -f assym.h.tmp assym.h
|