Home | History | Annotate | Line # | Download | only in csu
Makefile revision 1.29
      1 #	$NetBSD: Makefile,v 1.29 2011/01/31 17:54:20 drochner Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 CSU_MACHINE_ARCH?=	${MACHINE_ARCH}
      6 
      7 .if ${USE_COMPILERCRTSTUFF} != "yes"
      8 
      9 ARCHDIR:=	${.CURDIR}/arch/${CSU_MACHINE_ARCH}
     10 .PATH:	${ARCHDIR}
     11 .  include "${ARCHDIR}/Makefile.inc"
     12 
     13 .  include "${.CURDIR}/common/Makefile.inc"
     14 
     15 .else
     16 
     17 .  if exists(${CSU_MACHINE_ARCH}_elf/Makefile)
     18 SUBDIR=	${CSU_MACHINE_ARCH}_elf
     19 .  elif exists(${CSU_MACHINE_ARCH}/Makefile)
     20 SUBDIR=	${CSU_MACHINE_ARCH}
     21 .  elif exists(${MACHINE_CPU}_elf/Makefile)
     22 SUBDIR=	${MACHINE_CPU}_elf
     23 .  elif exists(${MACHINE_CPU}/Makefile)
     24 SUBDIR=	${MACHINE_CPU}
     25 .  else
     26 .BEGIN:
     27 	@echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
     28 	    ${MACHINE_CPU}
     29 	@false
     30 .  endif
     31 
     32 .  include <bsd.subdir.mk>
     33 .endif
     34