Home | History | Annotate | Line # | Download | only in csu
Makefile revision 1.32
      1  1.32      matt #	$NetBSD: Makefile,v 1.32 2013/04/28 06:09:52 matt Exp $
      2   1.6       cgd 
      3  1.13  christos .include <bsd.own.mk>
      4  1.13  christos 
      5  1.30     joerg .if ${USE_COMPILERCRTSTUFF} != "yes"
      6  1.27     joerg 
      7  1.31     joerg .if defined(CSU_MACHINE_ARCH)
      8  1.31     joerg .  if !exists(${.CURDIR}/arch/${CSU_MACHINE_ARCH}/Makefile.inc)
      9  1.31     joerg .  error CSU_MACHINE_ARCH (${CSU_MACHINE_ARCH}) is unsupported
     10  1.31     joerg .  endif
     11  1.32      matt .elif !empty(MACHINE_ARCH:Mearm*)
     12  1.32      matt CSU_MACHINE_ARCH=	earm
     13  1.31     joerg .elif exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
     14  1.31     joerg CSU_MACHINE_ARCH=	${MACHINE_ARCH}
     15  1.30     joerg .elif exists(${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
     16  1.31     joerg CSU_MACHINE_ARCH=	${MACHINE_CPU}
     17  1.30     joerg .else
     18  1.30     joerg .error Architecture (${MACHINE_ARCH} or ${MACHINE_CPU}) unsupported
     19  1.30     joerg .endif
     20  1.28     skrll 
     21  1.31     joerg ARCHDIR:=	${.CURDIR}/arch/${CSU_MACHINE_ARCH}
     22  1.31     joerg 
     23  1.27     joerg .PATH:	${ARCHDIR}
     24  1.27     joerg .  include "${ARCHDIR}/Makefile.inc"
     25  1.27     joerg 
     26  1.29  drochner .  include "${.CURDIR}/common/Makefile.inc"
     27  1.28     skrll 
     28  1.27     joerg .else
     29  1.27     joerg 
     30  1.30     joerg CSU_MACHINE_ARCH?=	${MACHINE_ARCH}
     31  1.30     joerg 
     32  1.27     joerg .  if exists(${CSU_MACHINE_ARCH}_elf/Makefile)
     33  1.25       mrg SUBDIR=	${CSU_MACHINE_ARCH}_elf
     34  1.27     joerg .  elif exists(${CSU_MACHINE_ARCH}/Makefile)
     35  1.27     joerg SUBDIR=	${CSU_MACHINE_ARCH}
     36  1.27     joerg .  elif exists(${MACHINE_CPU}_elf/Makefile)
     37  1.23     enami SUBDIR=	${MACHINE_CPU}_elf
     38  1.27     joerg .  elif exists(${MACHINE_CPU}/Makefile)
     39  1.22    itojun SUBDIR=	${MACHINE_CPU}
     40  1.27     joerg .  else
     41  1.22    itojun .BEGIN:
     42  1.23     enami 	@echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
     43  1.23     enami 	    ${MACHINE_CPU}
     44  1.22    itojun 	@false
     45  1.27     joerg .  endif
     46  1.27     joerg 
     47  1.27     joerg .  include <bsd.subdir.mk>
     48  1.13  christos .endif
     49