Home | History | Annotate | Line # | Download | only in arch
      1 #	$NetBSD: Makefile,v 1.48 2024/01/03 03:56:36 thorpej 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= 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_CPU} == "aarch64"
     31 SUBDIR+= arm
     32 .endif
     33 .if ${MACHINE} == sparc
     34 SUBDIR+= sparc64
     35 .endif
     36 .if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
     37 SUBDIR+= hpc
     38 .endif
     39 .if (${MACHINE} == sun2 || ${MACHINE} == sun3)
     40 SUBDIR+= sun68k
     41 .endif
     42 .if defined(XEN_BUILD)
     43 SUBDIR+= xen
     44 .endif
     45 
     46 #SUBDIR=aarch64 acorn32 algor alpha amiga amigappc arm arc atari \
     47 #	bebox \
     48 #	cats cesfic cobalt \
     49 #	dreamcast \
     50 #	emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\
     51 #	hp300 hpc hpcarm hpcmips hpcsh \
     52 #	i386 iyonix \
     53 #	luna68k \
     54 #	m68k mac68k macppc mips mipsco mmeye mvme68k \
     55 #	netwinder news68k newsmips next68k \
     56 #	ofppc or1k \
     57 #	playstation2 pmax powerpc prep \
     58 #	sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \
     59 #	rs6000 \
     60 #	vax virt68k \
     61 #	x68k x86_64 xen \
     62 #	zaurus
     63 
     64 .if ${MACHINE_CPU} == aarch64 || ${MACHINE_CPU} == "arm"
     65 INCSYMLINKS= ${MACHINE_CPU} /usr/include/machine
     66 .else
     67 INCSYMLINKS= ${MACHINE} /usr/include/machine
     68 .endif
     69 
     70 INCSYMLINKS+= machine/float.h /usr/include/float.h
     71 
     72 .include <bsd.kinc.mk>
     73