Makefile revision 316781
140496Sbde# @(#)Makefile 8.2 (Berkeley) 1/4/94 250473Speter# $FreeBSD: stable/10/include/Makefile 316781 2017-04-13 19:48:45Z ian $ 31539Srgrimes# 4114731Sbde# Doing a "make install" builds /usr/include. 51539Srgrimes 6156813Sru.include <bsd.own.mk> 7156813Sru 8316781SianCLEANFILES= osreldate.h version 9267666StijlSUBDIR= arpa protocols rpcsvc rpc xlocale 10291792SbdrewerySUBDIR_PARALLEL= 11133567StjrINCS= a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \ 12133559Stjr db.h \ 13107046Smarcel dirent.h dlfcn.h elf.h elf-hints.h err.h fmtmsg.h fnmatch.h fstab.h \ 14267666Stijl fts.h ftw.h getopt.h glob.h grp.h \ 15220370Sobrien ieeefp.h ifaddrs.h \ 16107046Smarcel inttypes.h iso646.h kenv.h langinfo.h libgen.h limits.h link.h \ 17157236Sjasone locale.h malloc.h malloc_np.h memory.h monetary.h mpool.h mqueue.h \ 18152994Sru ndbm.h netconfig.h \ 19166243Speter netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \ 20153486Sphk printf.h proc_service.h pthread.h \ 21205146Sed pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \ 22201546Sdavidxu res_update.h resolv.h runetype.h search.h semaphore.h setjmp.h \ 23251230Sed signal.h spawn.h stab.h stdalign.h stdbool.h stddef.h \ 24228879Sed stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ 25199898Sed strings.h sysexits.h tar.h termios.h tgmath.h \ 26133333Sstefanf time.h timeconv.h timers.h ttyent.h \ 27250883Sed uchar.h ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \ 28232498Stheraven wchar.h wctype.h wordexp.h xlocale.h 291539Srgrimes 30244401Sbrooks.PATH: ${.CURDIR}/../contrib/libc-vis 31244401SbrooksINCS+= vis.h 32244401Sbrooks 33119630SkanMHDRS= float.h floatingpoint.h stdarg.h 3434030Sdufault 35201546SdavidxuPHDRS= sched.h _semaphore.h 3634030Sdufault 37251230SedLHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \ 38251230Sed syslog.h ucontext.h 391539Srgrimes 40171453SrwatsonLDIRS= bsm cam geom net net80211 netatalk netgraph netinet netinet6 \ 41252356Sdavide netipsec ${_netipx} netnatm netsmb \ 42156905Sru nfs nfsclient nfsserver \ 43188642Snyan sys vm 4417900Speter 45195534SscottlLSUBDIRS= cam/ata cam/scsi \ 46246367Sjhb dev/acpica dev/agp dev/an dev/bktr dev/ciss dev/filemon dev/firewire \ 47310735Ssephe dev/hwpmc dev/hyperv \ 48240621Sjimharris dev/ic dev/iicbus ${_dev_ieee488} dev/io dev/lmc dev/mfi dev/nvme \ 49246367Sjhb dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/smbus \ 50280419Sngie dev/speaker dev/utopia dev/vkbd dev/wi \ 51241636Sattilio fs/devfs fs/fdescfs fs/msdosfs fs/nandfs fs/nfs fs/nullfs \ 52252356Sdavide fs/procfs fs/smbfs fs/udf fs/unionfs \ 53163851Spjd geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \ 54202437Strasz geom/mirror geom/mountver geom/multipath geom/nop \ 55219974Smav geom/raid geom/raid3 geom/shsec geom/stripe geom/virstor \ 56135339Sglebius netgraph/atm netgraph/netflow \ 57156885Srwatson security/audit \ 58135339Sglebius security/mac_biba security/mac_bsdextended security/mac_lomac \ 59135339Sglebius security/mac_mls security/mac_partition \ 60137556Smarkm ufs/ffs ufs/ufs 6177031Sru 62192901SthompsaLSUBSUBDIRS= dev/mpt/mpilib 63178818Sjhb 64280427Sngie.if ${MK_BLUETOOTH} != "no" 65280427SngieLSUBSUBDIRS+= netgraph/bluetooth/include 66160892Ssobomax.endif 67160892Ssobomax 68156813Sru.if ${MK_GPIB} != "no" 69141397Sphk_dev_ieee488= dev/ieee488 70141397Sphk.endif 71141397Sphk 72267666Stijl.if ${MK_GSSAPI} != "no" 73267666StijlSUBDIR+= gssapi 74267666StijlINCS+= gssapi.h 75267666Stijl.endif 76267666Stijl 77156813Sru.if ${MK_HESIOD} != "no" 78148796SphkINCS+= hesiod.h 79148796Sphk.endif 80148796Sphk 81252356Sdavide# XXX unconditionally needed by <netsmb/netbios.h> 82156905Sru#.if ${MK_IPX} != "no" 83156905Sru_netipx= netipx 84156905Sru#.endif 85156905Sru 86254273Speter# Handle the #define aliases for libiconv 87254273Speter.if ${MK_ICONV} == "yes" 88258230SgjbINCS+= iconv.h 89254273Speter.endif 90254273Speter 91280427Sngie.if ${MK_USB} != "no" 92280427SngieLSUBDIRS+= dev/usb 93280427Sngie.endif 94280427Sngie 95280427Sngie.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" 96280427Sngie_dev_powermac_nvram= dev/powermac_nvram 97280427Sngie.endif 98280427Sngie 9954351Smarcel# Define SHARED to indicate whether you want symbolic links to the system 10054351Smarcel# source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is 10154351Smarcel# probably only useful for developers and should be avoided if you do not 10254351Smarcel# wish to tie your /usr/include and /usr/src together. 10354351Smarcel#SHARED= symlinks 10454351SmarcelSHARED?= copies 10554351Smarcel 10696462SruINCS+= osreldate.h 10725734Speter 108255930SianSYSDIR= ${.CURDIR}/../sys 109255930SianNEWVERS_SH= ${SYSDIR}/conf/newvers.sh 110255930SianPARAM_H= ${SYSDIR}/sys/param.h 111255775SianMK_OSRELDATE_SH= ${.CURDIR}/mk-osreldate.sh 11225734Speter 113316781Sianosreldate.h: ${NEWVERS_SH} ${PARAM_H} ${MK_OSRELDATE_SH} 114316781Sian env NEWVERS_SH=${NEWVERS_SH} PARAMFILE=${PARAM_H} SYSDIR=${SYSDIR} \ 115255807Sian sh ${MK_OSRELDATE_SH} 116255775Sian 11788055Sru.for i in ${LHDRS} 11896462SruINCSLINKS+= sys/$i ${INCLUDEDIR}/$i 11917900Speter.endfor 12088055Sru.for i in ${MHDRS} 12196462SruINCSLINKS+= machine/$i ${INCLUDEDIR}/$i 12217900Speter.endfor 12388055Sru.for i in ${PHDRS} 124164184StrhodesINCSLINKS+= sys/$i ${INCLUDEDIR}/$i 12534030Sdufault.endfor 12654351Smarcel 127211725Simp.if ${MACHINE} != ${MACHINE_CPUARCH} 128214629Sjhb_MARCHS= ${MACHINE_CPUARCH} 129144514Simp.endif 130214629Sjhb.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 131214629Sjhb_MARCHS+= x86 132214629Sjhb.endif 133144514Simp 134114731Sbde.include <bsd.prog.mk> 135114731Sbde 136114731Sbdeinstallincludes: ${SHARED} 137114731Sbde${SHARED}: compat 138114731Sbde 139114731Sbde# Take care of stale directory-level symlinks. 140114731Sbdecompat: 141214629Sjhb.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto 142114731Sbde if [ -L ${DESTDIR}${INCLUDEDIR}/$i ]; then \ 143114731Sbde rm -f ${DESTDIR}${INCLUDEDIR}/$i; \ 14454351Smarcel fi 14554351Smarcel.endfor 146114731Sbde mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 147114731Sbde -f ${.CURDIR}/../etc/mtree/BSD.include.dist \ 148114731Sbde -p ${DESTDIR}${INCLUDEDIR} 149114731Sbde 150114731Sbdecopies: 151144514Simp.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} altq crypto machine machine/pc \ 152214629Sjhb ${_MARCHS} 153114731Sbde.if exists(${DESTDIR}${INCLUDEDIR}/$i) 154114731Sbde cd ${DESTDIR}${INCLUDEDIR}/$i; \ 155114731Sbde for h in *.h; do \ 156114731Sbde if [ -L $$h ]; then rm -f $$h; fi; \ 157114731Sbde done 158114731Sbde.endif 159114731Sbde.endfor 160310735Ssephe.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/hyperv:Ndev/nand:Ndev/pci} ${LSUBSUBDIRS} 16154351Smarcel cd ${.CURDIR}/../sys; \ 162114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \ 163114731Sbde ${DESTDIR}${INCLUDEDIR}/$i 16454351Smarcel.endfor 165143013Snjl cd ${.CURDIR}/../sys/dev/acpica; \ 166143013Snjl ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 acpiio.h \ 167274001Srpaulo ${DESTDIR}${INCLUDEDIR}/dev/acpica; \ 168274001Srpaulo ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 acpi_hpet.h \ 169143013Snjl ${DESTDIR}${INCLUDEDIR}/dev/acpica 170246367Sjhb cd ${.CURDIR}/../sys/dev/agp; \ 171246367Sjhb ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 agpreg.h \ 172246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/agp 173123288Sobrien cd ${.CURDIR}/../sys/dev/bktr; \ 174123288Sobrien ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ioctl_*.h \ 175123288Sobrien ${DESTDIR}${INCLUDEDIR}/dev/bktr 176235537Sgber.if ${MK_NAND} != "no" 177235537Sgber cd ${.CURDIR}/../sys/dev/nand; \ 178235537Sgber ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 nandsim.h \ 179235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand; \ 180235537Sgber ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 nand_dev.h \ 181235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand 182235537Sgber.endif 183311223Ssephe cd ${.CURDIR}/../sys/dev/hyperv/include; \ 184311223Ssephe ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hyperv.h \ 185311223Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv 186310735Ssephe cd ${.CURDIR}/../sys/dev/hyperv/utilities; \ 187310735Ssephe ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hv_snapshot.h \ 188310735Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv 189246367Sjhb cd ${.CURDIR}/../sys/dev/pci; \ 190246367Sjhb ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 pcireg.h \ 191246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/pci 192130416Smlaier cd ${.CURDIR}/../sys/contrib/altq/altq; \ 193130416Smlaier ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 194130416Smlaier ${DESTDIR}${INCLUDEDIR}/altq 195166640Srodrigc cd ${.CURDIR}/../sys/fs/cd9660/; \ 196166640Srodrigc ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 197166640Srodrigc ${DESTDIR}${INCLUDEDIR}/isofs/cd9660 198156813Sru.if ${MK_IPFILTER} != "no" 199116734Sru cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ 200116734Sru ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 201116734Sru ${DESTDIR}${INCLUDEDIR}/netinet 202145539Sscottl.endif 203263370Sglebius.if ${MK_PF} != "no" 204263370Sglebius cd ${.CURDIR}/../sys/netpfil/pf; \ 205263370Sglebius ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 206263370Sglebius ${DESTDIR}${INCLUDEDIR}/netpfil/pf 207263370Sglebius.endif 208143423Sume cd ${.CURDIR}/../sys/crypto; \ 209143423Sume ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 rijndael/rijndael.h \ 210143423Sume ${DESTDIR}${INCLUDEDIR}/crypto 211116734Sru cd ${.CURDIR}/../sys/opencrypto; \ 212116734Sru ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 213114731Sbde ${DESTDIR}${INCLUDEDIR}/crypto 214144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include; \ 215114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 216114731Sbde ${DESTDIR}${INCLUDEDIR}/machine 217144514Simp.if exists(${.CURDIR}/../sys/${MACHINE}/include/pc) 218144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include/pc; \ 219114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 220114731Sbde ${DESTDIR}${INCLUDEDIR}/machine/pc 22177857Sjlemon.endif 222214629Sjhb.for _MARCH in ${_MARCHS} 223214629Sjhb.if exists(${.CURDIR}/../sys/${_MARCH}/include) 224144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 225144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 226144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include; \ 227144514Simp ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 228144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH} 229144514Simp.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) 230144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 231144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 232144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ 233144514Simp ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 234144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc 235144514Simp.endif 236144514Simp.endif 237214629Sjhb.endfor 238168677Spjd cd ${.CURDIR}/../sys/rpc; \ 239168677Spjd ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 types.h \ 240168677Spjd ${DESTDIR}${INCLUDEDIR}/rpc 241308044Savg.if ${MK_CDDL} != "no" 242308044Savg cd ${.CURDIR}/../cddl/contrib/opensolaris/lib/libzfs_core/common; \ 243308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 libzfs_core.h \ 244308044Savg ${DESTDIR}${INCLUDEDIR} 245308044Savg cd ${.CURDIR}/../cddl/contrib/opensolaris/lib/libnvpair; \ 246308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 libnvpair.h \ 247308044Savg ${DESTDIR}${INCLUDEDIR} 248308044Savg cd ${.CURDIR}/../sys/cddl/contrib/opensolaris/uts/common/sys; \ 249308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nvpair.h \ 250308044Savg ${DESTDIR}${INCLUDEDIR}/sys 251308044Savg.endif 2521539Srgrimes 25354351Smarcelsymlinks: 25454351Smarcel @${ECHO} "Setting up symlinks to kernel source tree..." 25556645Speter.for i in ${LDIRS} 256114731Sbde cd ${.CURDIR}/../sys/$i; \ 257114731Sbde for h in *.h; do \ 258114731Sbde ln -fs ../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 259114731Sbde done 26054351Smarcel.endfor 261310735Ssephe.for i in ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/hyperv:Ndev/nand:Ndev/pci} 262114731Sbde cd ${.CURDIR}/../sys/$i; \ 263114731Sbde for h in *.h; do \ 264114731Sbde ln -fs ../../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 265114731Sbde done 26677046Sru.endfor 267143013Snjl cd ${.CURDIR}/../sys/dev/acpica; \ 268274001Srpaulo for h in acpiio.h acpi_hpet.h; do \ 269143013Snjl ln -fs ../../../../sys/dev/acpica/$$h \ 270143013Snjl ${DESTDIR}${INCLUDEDIR}/dev/acpica; \ 271143013Snjl done 272246367Sjhb cd ${.CURDIR}/../sys/dev/agp; \ 273246367Sjhb for h in agpreg.h; do \ 274246367Sjhb ln -fs ../../../../sys/dev/agp/$$h \ 275246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/agp; \ 276246367Sjhb done 277142992Sru cd ${.CURDIR}/../sys/dev/bktr; \ 278142992Sru for h in ioctl_*.h; do \ 279142992Sru ln -fs ../../../../sys/dev/bktr/$$h \ 280142992Sru ${DESTDIR}${INCLUDEDIR}/dev/bktr; \ 281142992Sru done 282235537Sgber.if ${MK_NAND} != "no" 283235537Sgber cd ${.CURDIR}/../sys/dev/nand; \ 284235537Sgber for h in nandsim.h nand_dev.h; do \ 285235537Sgber ln -fs ../../../../sys/dev/nand/$$h \ 286235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand; \ 287235537Sgber done 288235537Sgber.endif 289311223Ssephe cd ${.CURDIR}/../sys/dev/hyperv/include; \ 290311223Ssephe for h in hyperv.h; do \ 291311223Ssephe ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/include/$$h \ 292311223Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv; \ 293311223Ssephe done 294310735Ssephe cd ${.CURDIR}/../sys/dev/hyperv/utilities; \ 295310735Ssephe for h in hv_snapshot.h; do \ 296310735Ssephe ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/utilities/$$h \ 297310735Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv; \ 298310735Ssephe done 299246367Sjhb cd ${.CURDIR}/../sys/dev/pci; \ 300246367Sjhb for h in pcireg.h; do \ 301246367Sjhb ln -fs ../../../../sys/dev/pci/$$h \ 302246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/pci; \ 303246367Sjhb done 304114731Sbde.for i in ${LSUBSUBDIRS} 305114731Sbde cd ${.CURDIR}/../sys/$i; \ 306114731Sbde for h in *.h; do \ 307114731Sbde ln -fs ../../../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 308114731Sbde done 309114731Sbde.endfor 310130416Smlaier cd ${.CURDIR}/../sys/contrib/altq/altq; \ 311130416Smlaier for h in *.h; do \ 312130416Smlaier ln -fs ../../../sys/contrib/altq/altq/$$h \ 313130416Smlaier ${DESTDIR}${INCLUDEDIR}/altq; \ 314130416Smlaier done 315156813Sru.if ${MK_IPFILTER} != "no" 316116734Sru cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ 317116734Sru for h in *.h; do \ 318116734Sru ln -fs ../../../sys/contrib/ipfilter/netinet/$$h \ 319116734Sru ${DESTDIR}${INCLUDEDIR}/netinet; \ 320116734Sru done 321145539Sscottl.endif 322263086Sglebius.if ${MK_PF} != "no" 323263086Sglebius cd ${.CURDIR}/../sys/netpfil/pf; \ 324263086Sglebius for h in *.h; do \ 325263086Sglebius ln -fs ../../../../sys/netpfil/pf/$$h \ 326263086Sglebius ${DESTDIR}${INCLUDEDIR}/netpfil/pf; \ 327263086Sglebius done 328263086Sglebius.endif 329143423Sume cd ${.CURDIR}/../sys/crypto; \ 330143423Sume for h in rijndael/rijndael.h; do \ 331143423Sume ln -fs ../../../sys/crypto/$$h \ 332143423Sume ${DESTDIR}${INCLUDEDIR}/crypto; \ 333143423Sume done 334114731Sbde cd ${.CURDIR}/../sys/opencrypto; \ 335114731Sbde for h in *.h; do \ 336114731Sbde ln -fs ../../../sys/opencrypto/$$h \ 337114731Sbde ${DESTDIR}${INCLUDEDIR}/crypto; \ 338114731Sbde done 339144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include; \ 340114731Sbde for h in *.h; do \ 341144514Simp ln -fs ../../../sys/${MACHINE}/include/$$h \ 342114731Sbde ${DESTDIR}${INCLUDEDIR}/machine; \ 343114731Sbde done 344144514Simp.if exists(${.CURDIR}/../sys/${MACHINE}/include/pc) 345144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include/pc; \ 346114731Sbde for h in *.h; do \ 347144514Simp ln -fs ../../../../sys/${MACHINE}/include/pc/$$h \ 348114731Sbde ${DESTDIR}${INCLUDEDIR}/machine/pc; \ 349114731Sbde done 350114731Sbde.endif 351214629Sjhb.for _MARCH in ${_MARCHS} 352214629Sjhb.if exists(${.CURDIR}/../sys/${_MARCH}/include) 353144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 354144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 355144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include; \ 356144514Simp for h in *.h; do \ 357144514Simp ln -fs ../../../sys/${_MARCH}/include/$$h \ 358144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 359144514Simp done 360144514Simp.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) 361144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 362144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 363144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ 364144514Simp for h in *.h; do \ 365144514Simp ln -fs ../../../../sys/${_MARCH}/include/pc/$$h \ 366144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 367144514Simp done 368144514Simp.endif 369144514Simp.endif 370214629Sjhb.endfor 371166640Srodrigc cd ${.CURDIR}/../sys/fs/cd9660; \ 372166640Srodrigc for h in *.h; do \ 373166640Srodrigc ln -fs ../../../../sys/fs/cd9660/$$h \ 374166640Srodrigc ${DESTDIR}${INCLUDEDIR}/isofs/cd9660; \ 375166640Srodrigc done 376168677Spjd cd ${.CURDIR}/../sys/rpc; \ 377168677Spjd for h in types.h; do \ 378168677Spjd ln -fs ../../../sys/rpc/$$h \ 379168677Spjd ${DESTDIR}${INCLUDEDIR}/rpc; \ 380168677Spjd done 381