Home | History | Annotate | Line # | Download | only in arch
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2001/06/12 18:16:31 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 SUBDIR=	${MACHINE}
      9 ARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/sh3e[bl]/sh3/:S/arm26/arm/:S/arm32/arm/}
     10 .if ${MACHINE} != ${ARCHSUBDIR}
     11 .if exists(${ARCHSUBDIR})
     12 SUBDIR+= ${ARCHSUBDIR}
     13 .endif
     14 .endif
     15 .if ${MACHINE} == sparc
     16 SUBDIR+= sparc64
     17 .endif
     18 .if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
     19 SUBDIR+= hpc
     20 .endif
     21 
     22 .if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
     23 SUBDIR+= cats dnard netwinder
     24 .endif
     25 
     26 #SUBDIR= alpha amiga arc arm32 atari bebox evbsh3 hp300 hpcmips i386 luna68k \
     27 #	m68k mac68k macppc mips mmeye mvme68k news68k newsmips next68k ofppc \
     28 #	pc532 pmax powerpc sh3 sparc sparc64 sun3 vax x68k
     29 
     30 #
     31 # For true arm ports, we point machine at the architecure directory
     32 # since all the user include are there and are common.
     33 #
     34 .if ${ARCHSUBDIR} == arm && ${MACHINE} != arm32 && ${MACHINE} != arm26
     35 SYMLINKS= ${ARCHSUBDIR} /usr/include/machine
     36 .else
     37 SYMLINKS= ${MACHINE} /usr/include/machine
     38 .endif
     39 
     40 SYMLINKS+= machine/float.h /usr/include/float.h \
     41 	machine/frame.h /usr/include/frame.h \
     42 	machine/stdarg.h /usr/include/stdarg.h \
     43 	machine/varargs.h /usr/include/varargs.h
     44 
     45 .include <bsd.kinc.mk>
     46