Makefile revision 1.42
11.42Smatt# $NetBSD: Makefile,v 1.42 2013/05/02 03:56:40 matt Exp $ 21.1Scgd 31.1Scgd# For now, we install the machine and arch includes, and symlink 'machine' 41.11Smatt# to the location of the machine includes (usually). 51.1Scgd# 61.1Scgd# Eventually, we should install everything. 71.17Sthorpej 81.17Sthorpej.include <bsd.own.mk> 91.1Scgd 101.16SthorpejARCHSUBDIR= ${MACHINE_CPU} 111.16Sthorpej 121.32Smatt.if ${ARCHSUBDIR} == "mips64" 131.32SmattARCHSUBDIR= mips 141.32Smatt.endif 151.31Sross.if ${ARCHSUBDIR} == "powerpc64" 161.31SrossARCHSUBDIR= powerpc 171.31Sross.endif 181.31Sross 191.42Smatt.if ${MACHINE_CPU} == "arm" 201.42SmattSUBDIR= acorn26 acorn32 cats epoc32 evbarm hpcarm iyonix netwinder shark zaurus 211.42Smatt.else 221.42SmattSUBDIR= ${MACHINE} 231.42Smatt.endif 241.42Smatt 251.9Sbjh21.if ${MACHINE} != ${ARCHSUBDIR} 261.5Sdrochner.if exists(${ARCHSUBDIR}) 271.5SdrochnerSUBDIR+= ${ARCHSUBDIR} 281.5Sdrochner.endif 291.6Seeh.endif 301.40Snakayama.if ${MACHINE} == sparc 311.6SeehSUBDIR+= sparc64 321.10Such.endif 331.10Such.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh) 341.10SuchSUBDIR+= hpc 351.12Sfredette.endif 361.21Snathanw.if (${MACHINE} == sun2 || ${MACHINE} == sun3) 371.12SfredetteSUBDIR+= sun68k 381.1Scgd.endif 391.27Scl.if defined(XEN_BUILD) 401.27SclSUBDIR+= xen 411.27Scl.endif 421.1Scgd 431.20Sbjh21#SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \ 441.19Ssimonb# bebox \ 451.19Ssimonb# cats cesfic cobalt \ 461.19Ssimonb# dreamcast \ 471.42Smatt# emips epoc32 evbarm evbmips evbppc evbsh3 ews4800mips\ 481.19Ssimonb# hp300 hpc hpcarm hpcmips hpcsh \ 491.28Sgavan# i386 iyonix \ 501.19Ssimonb# luna68k \ 511.19Ssimonb# m68k mac68k macppc mips mipsco mmeye mvme68k \ 521.19Ssimonb# netwinder news68k newsmips next68k \ 531.19Ssimonb# ofppc \ 541.39Spooka# pmax powerpc prep \ 551.35Sscw# sandpoint sbmips sgimips sh3 shark sparc sparc64 sun2 sun3 sun68k \ 561.36Sgarbled# rs6000 \ 571.19Ssimonb# vax \ 581.34Speter# x68k x86_64 xen \ 591.34Speter# zaurus 601.1Scgd 611.42Smatt.if ${MACHINE_CPU} == arm 621.42SmattINCSYMLINKS= ${MACHINE_CPU} /usr/include/machine 631.42Smatt.else 641.24SlukemINCSYMLINKS= ${MACHINE} /usr/include/machine 651.42Smatt.endif 661.2Scgd 671.41SjoergINCSYMLINKS+= machine/float.h /usr/include/float.h 681.1Scgd 691.1Scgd.include <bsd.kinc.mk> 70