140496Sbde# @(#)Makefile 8.2 (Berkeley) 1/4/94 250473Speter# $FreeBSD: stable/10/include/Makefile 318198 2017-05-11 21:01:02Z marius $ 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 \ 48318198Smarius dev/ic dev/iicbus ${_dev_ieee488} dev/io dev/lmc dev/mfi dev/mmc \ 49318198Smarius dev/nvme \ 50246367Sjhb dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/smbus \ 51280419Sngie dev/speaker dev/utopia dev/vkbd dev/wi \ 52241636Sattilio fs/devfs fs/fdescfs fs/msdosfs fs/nandfs fs/nfs fs/nullfs \ 53252356Sdavide fs/procfs fs/smbfs fs/udf fs/unionfs \ 54163851Spjd geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \ 55202437Strasz geom/mirror geom/mountver geom/multipath geom/nop \ 56219974Smav geom/raid geom/raid3 geom/shsec geom/stripe geom/virstor \ 57135339Sglebius netgraph/atm netgraph/netflow \ 58156885Srwatson security/audit \ 59135339Sglebius security/mac_biba security/mac_bsdextended security/mac_lomac \ 60135339Sglebius security/mac_mls security/mac_partition \ 61137556Smarkm ufs/ffs ufs/ufs 6277031Sru 63192901SthompsaLSUBSUBDIRS= dev/mpt/mpilib 64178818Sjhb 65280427Sngie.if ${MK_BLUETOOTH} != "no" 66280427SngieLSUBSUBDIRS+= netgraph/bluetooth/include 67160892Ssobomax.endif 68160892Ssobomax 69156813Sru.if ${MK_GPIB} != "no" 70141397Sphk_dev_ieee488= dev/ieee488 71141397Sphk.endif 72141397Sphk 73267666Stijl.if ${MK_GSSAPI} != "no" 74267666StijlSUBDIR+= gssapi 75267666StijlINCS+= gssapi.h 76267666Stijl.endif 77267666Stijl 78156813Sru.if ${MK_HESIOD} != "no" 79148796SphkINCS+= hesiod.h 80148796Sphk.endif 81148796Sphk 82252356Sdavide# XXX unconditionally needed by <netsmb/netbios.h> 83156905Sru#.if ${MK_IPX} != "no" 84156905Sru_netipx= netipx 85156905Sru#.endif 86156905Sru 87254273Speter# Handle the #define aliases for libiconv 88254273Speter.if ${MK_ICONV} == "yes" 89258230SgjbINCS+= iconv.h 90254273Speter.endif 91254273Speter 92280427Sngie.if ${MK_USB} != "no" 93280427SngieLSUBDIRS+= dev/usb 94280427Sngie.endif 95280427Sngie 96280427Sngie.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" 97280427Sngie_dev_powermac_nvram= dev/powermac_nvram 98280427Sngie.endif 99280427Sngie 10054351Smarcel# Define SHARED to indicate whether you want symbolic links to the system 10154351Smarcel# source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is 10254351Smarcel# probably only useful for developers and should be avoided if you do not 10354351Smarcel# wish to tie your /usr/include and /usr/src together. 10454351Smarcel#SHARED= symlinks 10554351SmarcelSHARED?= copies 10654351Smarcel 10796462SruINCS+= osreldate.h 10825734Speter 109255930SianSYSDIR= ${.CURDIR}/../sys 110255930SianNEWVERS_SH= ${SYSDIR}/conf/newvers.sh 111255930SianPARAM_H= ${SYSDIR}/sys/param.h 112255775SianMK_OSRELDATE_SH= ${.CURDIR}/mk-osreldate.sh 11325734Speter 114316781Sianosreldate.h: ${NEWVERS_SH} ${PARAM_H} ${MK_OSRELDATE_SH} 115316781Sian env NEWVERS_SH=${NEWVERS_SH} PARAMFILE=${PARAM_H} SYSDIR=${SYSDIR} \ 116255807Sian sh ${MK_OSRELDATE_SH} 117255775Sian 11888055Sru.for i in ${LHDRS} 11996462SruINCSLINKS+= sys/$i ${INCLUDEDIR}/$i 12017900Speter.endfor 12188055Sru.for i in ${MHDRS} 12296462SruINCSLINKS+= machine/$i ${INCLUDEDIR}/$i 12317900Speter.endfor 12488055Sru.for i in ${PHDRS} 125164184StrhodesINCSLINKS+= sys/$i ${INCLUDEDIR}/$i 12634030Sdufault.endfor 12754351Smarcel 128211725Simp.if ${MACHINE} != ${MACHINE_CPUARCH} 129214629Sjhb_MARCHS= ${MACHINE_CPUARCH} 130144514Simp.endif 131214629Sjhb.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 132214629Sjhb_MARCHS+= x86 133214629Sjhb.endif 134144514Simp 135114731Sbde.include <bsd.prog.mk> 136114731Sbde 137114731Sbdeinstallincludes: ${SHARED} 138114731Sbde${SHARED}: compat 139114731Sbde 140114731Sbde# Take care of stale directory-level symlinks. 141114731Sbdecompat: 142214629Sjhb.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto 143114731Sbde if [ -L ${DESTDIR}${INCLUDEDIR}/$i ]; then \ 144114731Sbde rm -f ${DESTDIR}${INCLUDEDIR}/$i; \ 14554351Smarcel fi 14654351Smarcel.endfor 147114731Sbde mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 148114731Sbde -f ${.CURDIR}/../etc/mtree/BSD.include.dist \ 149114731Sbde -p ${DESTDIR}${INCLUDEDIR} 150114731Sbde 151114731Sbdecopies: 152144514Simp.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} altq crypto machine machine/pc \ 153214629Sjhb ${_MARCHS} 154114731Sbde.if exists(${DESTDIR}${INCLUDEDIR}/$i) 155114731Sbde cd ${DESTDIR}${INCLUDEDIR}/$i; \ 156114731Sbde for h in *.h; do \ 157114731Sbde if [ -L $$h ]; then rm -f $$h; fi; \ 158114731Sbde done 159114731Sbde.endif 160114731Sbde.endfor 161310735Ssephe.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/hyperv:Ndev/nand:Ndev/pci} ${LSUBSUBDIRS} 16254351Smarcel cd ${.CURDIR}/../sys; \ 163114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \ 164114731Sbde ${DESTDIR}${INCLUDEDIR}/$i 16554351Smarcel.endfor 166143013Snjl cd ${.CURDIR}/../sys/dev/acpica; \ 167143013Snjl ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 acpiio.h \ 168274001Srpaulo ${DESTDIR}${INCLUDEDIR}/dev/acpica; \ 169274001Srpaulo ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 acpi_hpet.h \ 170143013Snjl ${DESTDIR}${INCLUDEDIR}/dev/acpica 171246367Sjhb cd ${.CURDIR}/../sys/dev/agp; \ 172246367Sjhb ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 agpreg.h \ 173246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/agp 174123288Sobrien cd ${.CURDIR}/../sys/dev/bktr; \ 175123288Sobrien ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ioctl_*.h \ 176123288Sobrien ${DESTDIR}${INCLUDEDIR}/dev/bktr 177235537Sgber.if ${MK_NAND} != "no" 178235537Sgber cd ${.CURDIR}/../sys/dev/nand; \ 179235537Sgber ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 nandsim.h \ 180235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand; \ 181235537Sgber ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 nand_dev.h \ 182235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand 183235537Sgber.endif 184311223Ssephe cd ${.CURDIR}/../sys/dev/hyperv/include; \ 185311223Ssephe ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hyperv.h \ 186311223Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv 187310735Ssephe cd ${.CURDIR}/../sys/dev/hyperv/utilities; \ 188310735Ssephe ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hv_snapshot.h \ 189310735Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv 190246367Sjhb cd ${.CURDIR}/../sys/dev/pci; \ 191246367Sjhb ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 pcireg.h \ 192246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/pci 193130416Smlaier cd ${.CURDIR}/../sys/contrib/altq/altq; \ 194130416Smlaier ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 195130416Smlaier ${DESTDIR}${INCLUDEDIR}/altq 196166640Srodrigc cd ${.CURDIR}/../sys/fs/cd9660/; \ 197166640Srodrigc ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 198166640Srodrigc ${DESTDIR}${INCLUDEDIR}/isofs/cd9660 199156813Sru.if ${MK_IPFILTER} != "no" 200116734Sru cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ 201116734Sru ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 202116734Sru ${DESTDIR}${INCLUDEDIR}/netinet 203145539Sscottl.endif 204263370Sglebius.if ${MK_PF} != "no" 205263370Sglebius cd ${.CURDIR}/../sys/netpfil/pf; \ 206263370Sglebius ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 207263370Sglebius ${DESTDIR}${INCLUDEDIR}/netpfil/pf 208263370Sglebius.endif 209143423Sume cd ${.CURDIR}/../sys/crypto; \ 210143423Sume ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 rijndael/rijndael.h \ 211143423Sume ${DESTDIR}${INCLUDEDIR}/crypto 212116734Sru cd ${.CURDIR}/../sys/opencrypto; \ 213116734Sru ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 214114731Sbde ${DESTDIR}${INCLUDEDIR}/crypto 215144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include; \ 216114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 217114731Sbde ${DESTDIR}${INCLUDEDIR}/machine 218144514Simp.if exists(${.CURDIR}/../sys/${MACHINE}/include/pc) 219144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include/pc; \ 220114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 221114731Sbde ${DESTDIR}${INCLUDEDIR}/machine/pc 22277857Sjlemon.endif 223214629Sjhb.for _MARCH in ${_MARCHS} 224214629Sjhb.if exists(${.CURDIR}/../sys/${_MARCH}/include) 225144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 226144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 227144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include; \ 228144514Simp ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 229144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH} 230144514Simp.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) 231144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 232144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 233144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ 234144514Simp ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 235144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc 236144514Simp.endif 237144514Simp.endif 238214629Sjhb.endfor 239168677Spjd cd ${.CURDIR}/../sys/rpc; \ 240168677Spjd ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 types.h \ 241168677Spjd ${DESTDIR}${INCLUDEDIR}/rpc 242308044Savg.if ${MK_CDDL} != "no" 243308044Savg cd ${.CURDIR}/../cddl/contrib/opensolaris/lib/libzfs_core/common; \ 244308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 libzfs_core.h \ 245308044Savg ${DESTDIR}${INCLUDEDIR} 246308044Savg cd ${.CURDIR}/../cddl/contrib/opensolaris/lib/libnvpair; \ 247308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 libnvpair.h \ 248308044Savg ${DESTDIR}${INCLUDEDIR} 249308044Savg cd ${.CURDIR}/../sys/cddl/contrib/opensolaris/uts/common/sys; \ 250308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nvpair.h \ 251308044Savg ${DESTDIR}${INCLUDEDIR}/sys 252308044Savg.endif 2531539Srgrimes 25454351Smarcelsymlinks: 25554351Smarcel @${ECHO} "Setting up symlinks to kernel source tree..." 25656645Speter.for i in ${LDIRS} 257114731Sbde cd ${.CURDIR}/../sys/$i; \ 258114731Sbde for h in *.h; do \ 259114731Sbde ln -fs ../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 260114731Sbde done 26154351Smarcel.endfor 262310735Ssephe.for i in ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/hyperv:Ndev/nand:Ndev/pci} 263114731Sbde cd ${.CURDIR}/../sys/$i; \ 264114731Sbde for h in *.h; do \ 265114731Sbde ln -fs ../../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 266114731Sbde done 26777046Sru.endfor 268143013Snjl cd ${.CURDIR}/../sys/dev/acpica; \ 269274001Srpaulo for h in acpiio.h acpi_hpet.h; do \ 270143013Snjl ln -fs ../../../../sys/dev/acpica/$$h \ 271143013Snjl ${DESTDIR}${INCLUDEDIR}/dev/acpica; \ 272143013Snjl done 273246367Sjhb cd ${.CURDIR}/../sys/dev/agp; \ 274246367Sjhb for h in agpreg.h; do \ 275246367Sjhb ln -fs ../../../../sys/dev/agp/$$h \ 276246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/agp; \ 277246367Sjhb done 278142992Sru cd ${.CURDIR}/../sys/dev/bktr; \ 279142992Sru for h in ioctl_*.h; do \ 280142992Sru ln -fs ../../../../sys/dev/bktr/$$h \ 281142992Sru ${DESTDIR}${INCLUDEDIR}/dev/bktr; \ 282142992Sru done 283235537Sgber.if ${MK_NAND} != "no" 284235537Sgber cd ${.CURDIR}/../sys/dev/nand; \ 285235537Sgber for h in nandsim.h nand_dev.h; do \ 286235537Sgber ln -fs ../../../../sys/dev/nand/$$h \ 287235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand; \ 288235537Sgber done 289235537Sgber.endif 290311223Ssephe cd ${.CURDIR}/../sys/dev/hyperv/include; \ 291311223Ssephe for h in hyperv.h; do \ 292311223Ssephe ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/include/$$h \ 293311223Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv; \ 294311223Ssephe done 295310735Ssephe cd ${.CURDIR}/../sys/dev/hyperv/utilities; \ 296310735Ssephe for h in hv_snapshot.h; do \ 297310735Ssephe ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/utilities/$$h \ 298310735Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv; \ 299310735Ssephe done 300246367Sjhb cd ${.CURDIR}/../sys/dev/pci; \ 301246367Sjhb for h in pcireg.h; do \ 302246367Sjhb ln -fs ../../../../sys/dev/pci/$$h \ 303246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/pci; \ 304246367Sjhb done 305114731Sbde.for i in ${LSUBSUBDIRS} 306114731Sbde cd ${.CURDIR}/../sys/$i; \ 307114731Sbde for h in *.h; do \ 308114731Sbde ln -fs ../../../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 309114731Sbde done 310114731Sbde.endfor 311130416Smlaier cd ${.CURDIR}/../sys/contrib/altq/altq; \ 312130416Smlaier for h in *.h; do \ 313130416Smlaier ln -fs ../../../sys/contrib/altq/altq/$$h \ 314130416Smlaier ${DESTDIR}${INCLUDEDIR}/altq; \ 315130416Smlaier done 316156813Sru.if ${MK_IPFILTER} != "no" 317116734Sru cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ 318116734Sru for h in *.h; do \ 319116734Sru ln -fs ../../../sys/contrib/ipfilter/netinet/$$h \ 320116734Sru ${DESTDIR}${INCLUDEDIR}/netinet; \ 321116734Sru done 322145539Sscottl.endif 323263086Sglebius.if ${MK_PF} != "no" 324263086Sglebius cd ${.CURDIR}/../sys/netpfil/pf; \ 325263086Sglebius for h in *.h; do \ 326263086Sglebius ln -fs ../../../../sys/netpfil/pf/$$h \ 327263086Sglebius ${DESTDIR}${INCLUDEDIR}/netpfil/pf; \ 328263086Sglebius done 329263086Sglebius.endif 330143423Sume cd ${.CURDIR}/../sys/crypto; \ 331143423Sume for h in rijndael/rijndael.h; do \ 332143423Sume ln -fs ../../../sys/crypto/$$h \ 333143423Sume ${DESTDIR}${INCLUDEDIR}/crypto; \ 334143423Sume done 335114731Sbde cd ${.CURDIR}/../sys/opencrypto; \ 336114731Sbde for h in *.h; do \ 337114731Sbde ln -fs ../../../sys/opencrypto/$$h \ 338114731Sbde ${DESTDIR}${INCLUDEDIR}/crypto; \ 339114731Sbde done 340144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include; \ 341114731Sbde for h in *.h; do \ 342144514Simp ln -fs ../../../sys/${MACHINE}/include/$$h \ 343114731Sbde ${DESTDIR}${INCLUDEDIR}/machine; \ 344114731Sbde done 345144514Simp.if exists(${.CURDIR}/../sys/${MACHINE}/include/pc) 346144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include/pc; \ 347114731Sbde for h in *.h; do \ 348144514Simp ln -fs ../../../../sys/${MACHINE}/include/pc/$$h \ 349114731Sbde ${DESTDIR}${INCLUDEDIR}/machine/pc; \ 350114731Sbde done 351114731Sbde.endif 352214629Sjhb.for _MARCH in ${_MARCHS} 353214629Sjhb.if exists(${.CURDIR}/../sys/${_MARCH}/include) 354144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 355144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 356144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include; \ 357144514Simp for h in *.h; do \ 358144514Simp ln -fs ../../../sys/${_MARCH}/include/$$h \ 359144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 360144514Simp done 361144514Simp.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) 362144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 363144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 364144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ 365144514Simp for h in *.h; do \ 366144514Simp ln -fs ../../../../sys/${_MARCH}/include/pc/$$h \ 367144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 368144514Simp done 369144514Simp.endif 370144514Simp.endif 371214629Sjhb.endfor 372166640Srodrigc cd ${.CURDIR}/../sys/fs/cd9660; \ 373166640Srodrigc for h in *.h; do \ 374166640Srodrigc ln -fs ../../../../sys/fs/cd9660/$$h \ 375166640Srodrigc ${DESTDIR}${INCLUDEDIR}/isofs/cd9660; \ 376166640Srodrigc done 377168677Spjd cd ${.CURDIR}/../sys/rpc; \ 378168677Spjd for h in types.h; do \ 379168677Spjd ln -fs ../../../sys/rpc/$$h \ 380168677Spjd ${DESTDIR}${INCLUDEDIR}/rpc; \ 381168677Spjd done 382