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