Makefile revision 311223
140496Sbde# @(#)Makefile 8.2 (Berkeley) 1/4/94 250473Speter# $FreeBSD: stable/10/include/Makefile 311223 2017-01-04 01:58:38Z sephe $ 31539Srgrimes# 4114731Sbde# Doing a "make install" builds /usr/include. 51539Srgrimes 6156813Sru.include <bsd.own.mk> 7156813Sru 818420SbdeCLEANFILES= osreldate.h version vers.c 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 113255775Sianosreldate.h vers.c: ${NEWVERS_SH} ${PARAM_H} ${MK_OSRELDATE_SH} 114255775Sian env ECHO="${ECHO}" \ 115255775Sian MAKE="${MAKE}" \ 116255775Sian NEWVERS_SH=${NEWVERS_SH} \ 117255775Sian PARAM_H=${PARAM_H} \ 118255930Sian SYSDIR=${SYSDIR} \ 119255807Sian sh ${MK_OSRELDATE_SH} 120255775Sian 12188055Sru.for i in ${LHDRS} 12296462SruINCSLINKS+= sys/$i ${INCLUDEDIR}/$i 12317900Speter.endfor 12488055Sru.for i in ${MHDRS} 12596462SruINCSLINKS+= machine/$i ${INCLUDEDIR}/$i 12617900Speter.endfor 12788055Sru.for i in ${PHDRS} 128164184StrhodesINCSLINKS+= sys/$i ${INCLUDEDIR}/$i 12934030Sdufault.endfor 13054351Smarcel 131211725Simp.if ${MACHINE} != ${MACHINE_CPUARCH} 132214629Sjhb_MARCHS= ${MACHINE_CPUARCH} 133144514Simp.endif 134214629Sjhb.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 135214629Sjhb_MARCHS+= x86 136214629Sjhb.endif 137144514Simp 138114731Sbde.include <bsd.prog.mk> 139114731Sbde 140114731Sbdeinstallincludes: ${SHARED} 141114731Sbde${SHARED}: compat 142114731Sbde 143114731Sbde# Take care of stale directory-level symlinks. 144114731Sbdecompat: 145214629Sjhb.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto 146114731Sbde if [ -L ${DESTDIR}${INCLUDEDIR}/$i ]; then \ 147114731Sbde rm -f ${DESTDIR}${INCLUDEDIR}/$i; \ 14854351Smarcel fi 14954351Smarcel.endfor 150114731Sbde mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \ 151114731Sbde -f ${.CURDIR}/../etc/mtree/BSD.include.dist \ 152114731Sbde -p ${DESTDIR}${INCLUDEDIR} 153114731Sbde 154114731Sbdecopies: 155144514Simp.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} altq crypto machine machine/pc \ 156214629Sjhb ${_MARCHS} 157114731Sbde.if exists(${DESTDIR}${INCLUDEDIR}/$i) 158114731Sbde cd ${DESTDIR}${INCLUDEDIR}/$i; \ 159114731Sbde for h in *.h; do \ 160114731Sbde if [ -L $$h ]; then rm -f $$h; fi; \ 161114731Sbde done 162114731Sbde.endif 163114731Sbde.endfor 164310735Ssephe.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/hyperv:Ndev/nand:Ndev/pci} ${LSUBSUBDIRS} 16554351Smarcel cd ${.CURDIR}/../sys; \ 166114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \ 167114731Sbde ${DESTDIR}${INCLUDEDIR}/$i 16854351Smarcel.endfor 169143013Snjl cd ${.CURDIR}/../sys/dev/acpica; \ 170143013Snjl ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 acpiio.h \ 171274001Srpaulo ${DESTDIR}${INCLUDEDIR}/dev/acpica; \ 172274001Srpaulo ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 acpi_hpet.h \ 173143013Snjl ${DESTDIR}${INCLUDEDIR}/dev/acpica 174246367Sjhb cd ${.CURDIR}/../sys/dev/agp; \ 175246367Sjhb ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 agpreg.h \ 176246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/agp 177123288Sobrien cd ${.CURDIR}/../sys/dev/bktr; \ 178123288Sobrien ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ioctl_*.h \ 179123288Sobrien ${DESTDIR}${INCLUDEDIR}/dev/bktr 180235537Sgber.if ${MK_NAND} != "no" 181235537Sgber cd ${.CURDIR}/../sys/dev/nand; \ 182235537Sgber ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 nandsim.h \ 183235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand; \ 184235537Sgber ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 nand_dev.h \ 185235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand 186235537Sgber.endif 187311223Ssephe cd ${.CURDIR}/../sys/dev/hyperv/include; \ 188311223Ssephe ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hyperv.h \ 189311223Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv 190310735Ssephe cd ${.CURDIR}/../sys/dev/hyperv/utilities; \ 191310735Ssephe ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 hv_snapshot.h \ 192310735Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv 193246367Sjhb cd ${.CURDIR}/../sys/dev/pci; \ 194246367Sjhb ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 pcireg.h \ 195246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/pci 196130416Smlaier cd ${.CURDIR}/../sys/contrib/altq/altq; \ 197130416Smlaier ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 198130416Smlaier ${DESTDIR}${INCLUDEDIR}/altq 199166640Srodrigc cd ${.CURDIR}/../sys/fs/cd9660/; \ 200166640Srodrigc ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 201166640Srodrigc ${DESTDIR}${INCLUDEDIR}/isofs/cd9660 202156813Sru.if ${MK_IPFILTER} != "no" 203116734Sru cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ 204116734Sru ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 205116734Sru ${DESTDIR}${INCLUDEDIR}/netinet 206145539Sscottl.endif 207263370Sglebius.if ${MK_PF} != "no" 208263370Sglebius cd ${.CURDIR}/../sys/netpfil/pf; \ 209263370Sglebius ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 210263370Sglebius ${DESTDIR}${INCLUDEDIR}/netpfil/pf 211263370Sglebius.endif 212143423Sume cd ${.CURDIR}/../sys/crypto; \ 213143423Sume ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 rijndael/rijndael.h \ 214143423Sume ${DESTDIR}${INCLUDEDIR}/crypto 215116734Sru cd ${.CURDIR}/../sys/opencrypto; \ 216116734Sru ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 217114731Sbde ${DESTDIR}${INCLUDEDIR}/crypto 218144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include; \ 219114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 220114731Sbde ${DESTDIR}${INCLUDEDIR}/machine 221144514Simp.if exists(${.CURDIR}/../sys/${MACHINE}/include/pc) 222144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include/pc; \ 223114731Sbde ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 224114731Sbde ${DESTDIR}${INCLUDEDIR}/machine/pc 22577857Sjlemon.endif 226214629Sjhb.for _MARCH in ${_MARCHS} 227214629Sjhb.if exists(${.CURDIR}/../sys/${_MARCH}/include) 228144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 229144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 230144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include; \ 231144514Simp ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 232144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH} 233144514Simp.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) 234144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 235144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 236144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ 237144514Simp ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 238144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc 239144514Simp.endif 240144514Simp.endif 241214629Sjhb.endfor 242168677Spjd cd ${.CURDIR}/../sys/rpc; \ 243168677Spjd ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 types.h \ 244168677Spjd ${DESTDIR}${INCLUDEDIR}/rpc 245308044Savg.if ${MK_CDDL} != "no" 246308044Savg cd ${.CURDIR}/../cddl/contrib/opensolaris/lib/libzfs_core/common; \ 247308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 libzfs_core.h \ 248308044Savg ${DESTDIR}${INCLUDEDIR} 249308044Savg cd ${.CURDIR}/../cddl/contrib/opensolaris/lib/libnvpair; \ 250308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 libnvpair.h \ 251308044Savg ${DESTDIR}${INCLUDEDIR} 252308044Savg cd ${.CURDIR}/../sys/cddl/contrib/opensolaris/uts/common/sys; \ 253308044Savg ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nvpair.h \ 254308044Savg ${DESTDIR}${INCLUDEDIR}/sys 255308044Savg.endif 2561539Srgrimes 25754351Smarcelsymlinks: 25854351Smarcel @${ECHO} "Setting up symlinks to kernel source tree..." 25956645Speter.for i in ${LDIRS} 260114731Sbde cd ${.CURDIR}/../sys/$i; \ 261114731Sbde for h in *.h; do \ 262114731Sbde ln -fs ../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 263114731Sbde done 26454351Smarcel.endfor 265310735Ssephe.for i in ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/hyperv:Ndev/nand:Ndev/pci} 266114731Sbde cd ${.CURDIR}/../sys/$i; \ 267114731Sbde for h in *.h; do \ 268114731Sbde ln -fs ../../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 269114731Sbde done 27077046Sru.endfor 271143013Snjl cd ${.CURDIR}/../sys/dev/acpica; \ 272274001Srpaulo for h in acpiio.h acpi_hpet.h; do \ 273143013Snjl ln -fs ../../../../sys/dev/acpica/$$h \ 274143013Snjl ${DESTDIR}${INCLUDEDIR}/dev/acpica; \ 275143013Snjl done 276246367Sjhb cd ${.CURDIR}/../sys/dev/agp; \ 277246367Sjhb for h in agpreg.h; do \ 278246367Sjhb ln -fs ../../../../sys/dev/agp/$$h \ 279246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/agp; \ 280246367Sjhb done 281142992Sru cd ${.CURDIR}/../sys/dev/bktr; \ 282142992Sru for h in ioctl_*.h; do \ 283142992Sru ln -fs ../../../../sys/dev/bktr/$$h \ 284142992Sru ${DESTDIR}${INCLUDEDIR}/dev/bktr; \ 285142992Sru done 286235537Sgber.if ${MK_NAND} != "no" 287235537Sgber cd ${.CURDIR}/../sys/dev/nand; \ 288235537Sgber for h in nandsim.h nand_dev.h; do \ 289235537Sgber ln -fs ../../../../sys/dev/nand/$$h \ 290235537Sgber ${DESTDIR}${INCLUDEDIR}/dev/nand; \ 291235537Sgber done 292235537Sgber.endif 293311223Ssephe cd ${.CURDIR}/../sys/dev/hyperv/include; \ 294311223Ssephe for h in hyperv.h; do \ 295311223Ssephe ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/include/$$h \ 296311223Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv; \ 297311223Ssephe done 298310735Ssephe cd ${.CURDIR}/../sys/dev/hyperv/utilities; \ 299310735Ssephe for h in hv_snapshot.h; do \ 300310735Ssephe ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/hyperv/utilities/$$h \ 301310735Ssephe ${DESTDIR}${INCLUDEDIR}/dev/hyperv; \ 302310735Ssephe done 303246367Sjhb cd ${.CURDIR}/../sys/dev/pci; \ 304246367Sjhb for h in pcireg.h; do \ 305246367Sjhb ln -fs ../../../../sys/dev/pci/$$h \ 306246367Sjhb ${DESTDIR}${INCLUDEDIR}/dev/pci; \ 307246367Sjhb done 308114731Sbde.for i in ${LSUBSUBDIRS} 309114731Sbde cd ${.CURDIR}/../sys/$i; \ 310114731Sbde for h in *.h; do \ 311114731Sbde ln -fs ../../../../../sys/$i/$$h ${DESTDIR}${INCLUDEDIR}/$i; \ 312114731Sbde done 313114731Sbde.endfor 314130416Smlaier cd ${.CURDIR}/../sys/contrib/altq/altq; \ 315130416Smlaier for h in *.h; do \ 316130416Smlaier ln -fs ../../../sys/contrib/altq/altq/$$h \ 317130416Smlaier ${DESTDIR}${INCLUDEDIR}/altq; \ 318130416Smlaier done 319156813Sru.if ${MK_IPFILTER} != "no" 320116734Sru cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ 321116734Sru for h in *.h; do \ 322116734Sru ln -fs ../../../sys/contrib/ipfilter/netinet/$$h \ 323116734Sru ${DESTDIR}${INCLUDEDIR}/netinet; \ 324116734Sru done 325145539Sscottl.endif 326263086Sglebius.if ${MK_PF} != "no" 327263086Sglebius cd ${.CURDIR}/../sys/netpfil/pf; \ 328263086Sglebius for h in *.h; do \ 329263086Sglebius ln -fs ../../../../sys/netpfil/pf/$$h \ 330263086Sglebius ${DESTDIR}${INCLUDEDIR}/netpfil/pf; \ 331263086Sglebius done 332263086Sglebius.endif 333143423Sume cd ${.CURDIR}/../sys/crypto; \ 334143423Sume for h in rijndael/rijndael.h; do \ 335143423Sume ln -fs ../../../sys/crypto/$$h \ 336143423Sume ${DESTDIR}${INCLUDEDIR}/crypto; \ 337143423Sume done 338114731Sbde cd ${.CURDIR}/../sys/opencrypto; \ 339114731Sbde for h in *.h; do \ 340114731Sbde ln -fs ../../../sys/opencrypto/$$h \ 341114731Sbde ${DESTDIR}${INCLUDEDIR}/crypto; \ 342114731Sbde done 343144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include; \ 344114731Sbde for h in *.h; do \ 345144514Simp ln -fs ../../../sys/${MACHINE}/include/$$h \ 346114731Sbde ${DESTDIR}${INCLUDEDIR}/machine; \ 347114731Sbde done 348144514Simp.if exists(${.CURDIR}/../sys/${MACHINE}/include/pc) 349144514Simp cd ${.CURDIR}/../sys/${MACHINE}/include/pc; \ 350114731Sbde for h in *.h; do \ 351144514Simp ln -fs ../../../../sys/${MACHINE}/include/pc/$$h \ 352114731Sbde ${DESTDIR}${INCLUDEDIR}/machine/pc; \ 353114731Sbde done 354114731Sbde.endif 355214629Sjhb.for _MARCH in ${_MARCHS} 356214629Sjhb.if exists(${.CURDIR}/../sys/${_MARCH}/include) 357144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 358144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 359144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include; \ 360144514Simp for h in *.h; do \ 361144514Simp ln -fs ../../../sys/${_MARCH}/include/$$h \ 362144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}; \ 363144514Simp done 364144514Simp.if exists(${.CURDIR}/../sys/${_MARCH}/include/pc) 365144561Simp ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \ 366144561Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 367144514Simp cd ${.CURDIR}/../sys/${_MARCH}/include/pc; \ 368144514Simp for h in *.h; do \ 369144514Simp ln -fs ../../../../sys/${_MARCH}/include/pc/$$h \ 370144514Simp ${DESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 371144514Simp done 372144514Simp.endif 373144514Simp.endif 374214629Sjhb.endfor 375166640Srodrigc cd ${.CURDIR}/../sys/fs/cd9660; \ 376166640Srodrigc for h in *.h; do \ 377166640Srodrigc ln -fs ../../../../sys/fs/cd9660/$$h \ 378166640Srodrigc ${DESTDIR}${INCLUDEDIR}/isofs/cd9660; \ 379166640Srodrigc done 380168677Spjd cd ${.CURDIR}/../sys/rpc; \ 381168677Spjd for h in types.h; do \ 382168677Spjd ln -fs ../../../sys/rpc/$$h \ 383168677Spjd ${DESTDIR}${INCLUDEDIR}/rpc; \ 384168677Spjd done 385