Home | History | Annotate | Line # | Download | only in arch
Makefile revision 1.42
      1 #	$NetBSD: Makefile,v 1.42 2013/05/02 03:56:40 matt Exp $
      2 
      3 # For now, we install the machine and arch includes, and symlink 'machine'
      4 # to the location of the machine includes (usually).
      5 #
      6 # Eventually, we should install everything.
      7 
      8 .include <bsd.own.mk>
      9 
     10 ARCHSUBDIR= ${MACHINE_CPU}
     11 
     12 .if ${ARCHSUBDIR} == "mips64"
     13 ARCHSUBDIR= mips
     14 .endif
     15 .if ${ARCHSUBDIR} == "powerpc64"
     16 ARCHSUBDIR= powerpc
     17 .endif
     18 
     19 .if ${MACHINE_CPU} == "arm"
     20 SUBDIR= acorn26 acorn32 cats epoc32 evbarm hpcarm iyonix netwinder shark zaurus
     21 .else
     22 SUBDIR=	${MACHINE}
     23 .endif
     24 
     25 .if ${MACHINE} != ${ARCHSUBDIR}
     26 .if exists(${ARCHSUBDIR})
     27 SUBDIR+= ${ARCHSUBDIR}
     28 .endif
     29 .endif
     30 .if ${MACHINE} == sparc
     31 SUBDIR+= sparc64
     32 .endif
     33 .if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
     34 SUBDIR+= hpc
     35 .endif
     36 .if (${MACHINE} == sun2 || ${MACHINE} == sun3)
     37 SUBDIR+= sun68k
     38 .endif
     39 .if defined(XEN_BUILD)
     40 SUBDIR+= xen
     41 .endif
     42 
     43 #SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \
     44 #	bebox \
     45 #	cats cesfic cobalt \
     46 #	dreamcast \
     47 #	emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\
     48 #	hp300 hpc hpcarm hpcmips hpcsh \
     49 #	i386 iyonix \
     50 #	luna68k \
     51 #	m68k mac68k macppc mips mipsco mmeye mvme68k \
     52 #	netwinder news68k newsmips next68k \
     53 #	ofppc \
     54 #	pmax powerpc prep \
     55 #	sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
     56 #	rs6000 \
     57 #	vax \
     58 #	x68k x86_64 xen \
     59 #	zaurus
     60 
     61 .if ${MACHINE_CPU} == arm
     62 INCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
     63 .else
     64 INCSYMLINKS= ${MACHINE} /usr/include/machine
     65 .endif
     66 
     67 INCSYMLINKS+= machine/float.h /usr/include/float.h
     68 
     69 .include <bsd.kinc.mk>
     70