2011-01-31 20:54:20 +03:00
|
|
|
# $NetBSD: Makefile,v 1.29 2011/01/31 17:54:20 drochner Exp $
|
1996-10-08 04:36:28 +04:00
|
|
|
|
1999-02-03 13:55:12 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2010-08-07 22:01:32 +04:00
|
|
|
CSU_MACHINE_ARCH?= ${MACHINE_ARCH}
|
|
|
|
|
2010-11-28 21:40:54 +03:00
|
|
|
.if ${USE_COMPILERCRTSTUFF} != "yes"
|
|
|
|
|
2011-01-31 20:54:20 +03:00
|
|
|
ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_ARCH}
|
2010-08-07 22:01:32 +04:00
|
|
|
.PATH: ${ARCHDIR}
|
|
|
|
. include "${ARCHDIR}/Makefile.inc"
|
|
|
|
|
2011-01-31 20:54:20 +03:00
|
|
|
. include "${.CURDIR}/common/Makefile.inc"
|
2010-11-28 21:40:54 +03:00
|
|
|
|
2010-08-07 22:01:32 +04:00
|
|
|
.else
|
|
|
|
|
|
|
|
. if exists(${CSU_MACHINE_ARCH}_elf/Makefile)
|
2009-12-13 11:03:44 +03:00
|
|
|
SUBDIR= ${CSU_MACHINE_ARCH}_elf
|
2010-08-07 22:01:32 +04:00
|
|
|
. elif exists(${CSU_MACHINE_ARCH}/Makefile)
|
|
|
|
SUBDIR= ${CSU_MACHINE_ARCH}
|
|
|
|
. elif exists(${MACHINE_CPU}_elf/Makefile)
|
2001-01-10 16:20:17 +03:00
|
|
|
SUBDIR= ${MACHINE_CPU}_elf
|
2010-08-07 22:01:32 +04:00
|
|
|
. elif exists(${MACHINE_CPU}/Makefile)
|
2001-01-08 11:29:59 +03:00
|
|
|
SUBDIR= ${MACHINE_CPU}
|
2010-08-07 22:01:32 +04:00
|
|
|
. else
|
2001-01-08 11:29:59 +03:00
|
|
|
.BEGIN:
|
2001-01-10 16:20:17 +03:00
|
|
|
@echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
|
|
|
|
${MACHINE_CPU}
|
2001-01-08 11:29:59 +03:00
|
|
|
@false
|
2010-08-07 22:01:32 +04:00
|
|
|
. endif
|
1996-10-08 04:36:28 +04:00
|
|
|
|
2010-08-07 22:01:32 +04:00
|
|
|
. include <bsd.subdir.mk>
|
|
|
|
.endif
|