make these look more like the sparc/powerpc ones.

XXX: a big chunk of these Makefile.inc's should promoted to the
XXX: main Makefile.
This commit is contained in:
mrg 2011-07-10 02:41:50 +00:00
parent ef65ebf1e0
commit 1b7b730ff0
2 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
# $NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
SRCS+= \
random.c \
@ -170,9 +170,15 @@ dummy:
${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
BUILD_S_INCS= -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
M4FLAGS= -DPIC
COPTS+= -fPIC
.for _build _src in ${ASM_SRCS_LIST}
${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
-DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
SRCS+= ${_build:R}.s
CLEANFILES+= ${_build:R}.s

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
# $NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
SRCS+= \
random.c \
@ -170,9 +170,15 @@ dummy:
${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
BUILD_S_INCS= -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
M4FLAGS= -DPIC
COPTS+= -fPIC
.for _build _src in ${ASM_SRCS_LIST}
${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
-DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
SRCS+= ${_build:R}.s
CLEANFILES+= ${_build:R}.s