1# @(#)Makefile 8.2 (Berkeley) 1/4/94 2# 3# Doing a "make install" builds /usr/include. 4 5.include <src.opts.mk> 6 7PACKAGE=runtime 8CLEANFILES= osreldate.h version 9SUBDIR= arpa protocols rpcsvc rpc xlocale 10.if ${MACHINE_CPUARCH} == "amd64" 11SUBDIR+= i386 12INCLUDE_SUBDIRS+= i386 13.endif 14.if ${MACHINE_CPUARCH} == "aarch64" 15SUBDIR+= arm 16INCLUDE_SUBDIRS+= arm 17.endif 18SUBDIR_PARALLEL= 19INCS= a.out.h ar.h assert.h bitstring.h byteswap.h \ 20 complex.h cpio.h _ctype.h ctype.h \ 21 db.h \ 22 dirent.h dlfcn.h elf.h elf-hints.h endian.h err.h fmtmsg.h fnmatch.h \ 23 fstab.h fts.h ftw.h getopt.h glob.h grp.h \ 24 ieeefp.h ifaddrs.h \ 25 inttypes.h iso646.h kenv.h langinfo.h libgen.h limits.h link.h \ 26 locale.h malloc.h malloc_np.h memory.h monetary.h mpool.h mqueue.h \ 27 ndbm.h netconfig.h \ 28 netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \ 29 printf.h proc_service.h pthread.h \ 30 pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \ 31 res_update.h resolv.h runetype.h sched.h \ 32 search.h semaphore.h setjmp.h \ 33 signal.h spawn.h stab.h stdalign.h stdbool.h stddef.h \ 34 stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ 35 strings.h sysexits.h tar.h termios.h tgmath.h \ 36 time.h timeconv.h timers.h ttyent.h \ 37 uchar.h ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \ 38 wchar.h wctype.h wordexp.h xlocale.h 39 40.PATH: ${SRCTOP}/contrib/libc-vis 41INCS+= vis.h 42 43MHDRS= float.h floatingpoint.h stdarg.h 44 45PHDRS= _semaphore.h 46 47LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \ 48 syslog.h ucontext.h 49 50LDIRS= geom net net80211 netgraph netinet netinet6 \ 51 netipsec netlink netsmb nfs nfsclient nfsserver sys vm 52 53LSUBDIRS= dev/acpica dev/agp dev/ciss dev/filemon dev/firewire \ 54 dev/hwpmc dev/hyperv \ 55 dev/ic dev/iicbus dev/io dev/mfi dev/mmc \ 56 dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/pwm \ 57 dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/wg \ 58 fs/devfs fs/fdescfs fs/msdosfs fs/nfs fs/nullfs \ 59 fs/procfs fs/smbfs fs/udf fs/unionfs \ 60 geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \ 61 geom/mirror geom/mountver geom/multipath geom/nop \ 62 geom/raid geom/raid3 geom/shsec geom/stripe geom/union geom/virstor \ 63 net/altq \ 64 net/route \ 65 netgraph/netflow \ 66 netinet/cc \ 67 netinet/netdump \ 68 netinet/tcp_stacks \ 69 netlink/route \ 70 security/mac_biba security/mac_bsdextended security/mac_lomac \ 71 security/mac_mls security/mac_partition \ 72 security/mac_veriexec \ 73 sys/disk \ 74 ufs/ffs ufs/ufs 75 76LSUBSUBDIRS= dev/mpt/mpilib 77 78.PATH: ${SRCTOP}/sys/dev/acpica 79ACPICA= acpi_hpet.h \ 80 acpiio.h 81ACPICADIR= ${INCLUDEDIR}/dev/acpica 82 83.PATH: ${SRCTOP}/sys/dev/agp 84AGP= agpreg.h 85AGPDIR= ${INCLUDEDIR}/dev/agp 86 87.PATH: ${SRCTOP}/sys/bsm 88BSM= audit.h \ 89 audit_errno.h \ 90 audit_internal.h \ 91 audit_record.h \ 92 audit_domain.h \ 93 audit_fcntl.h \ 94 audit_kevents.h \ 95 audit_socket_type.h 96BSMPACKAGE= libbsm 97BSMDIR= ${INCLUDEDIR}/bsm 98 99.PATH: ${SRCTOP}/sys/security/audit 100SECAUDIT= audit.h \ 101 audit_ioctl.h \ 102 audit_private.h 103SECAUDITPACKAGE= libbsm 104SECAUDITDIR= ${INCLUDEDIR}/security/audit 105 106.PATH: ${SRCTOP}/sys/cam 107CAM= cam.h \ 108 cam_ccb.h \ 109 cam_compat.h \ 110 cam_debug.h \ 111 cam_iosched.h \ 112 cam_periph.h \ 113 cam_queue.h \ 114 cam_sim.h \ 115 cam_xpt.h \ 116 cam_xpt_internal.h \ 117 cam_xpt_periph.h \ 118 cam_xpt_sim.h 119CAMDIR= ${INCLUDEDIR}/cam 120 121.PATH: ${SRCTOP}/sys/cam/ata 122CAMATA= ata_all.h 123CAMATADIR= ${INCLUDEDIR}/cam/ata 124 125.PATH: ${SRCTOP}/sys/cam/mmc 126CAMMMC= mmc.h \ 127 mmc_bus.h \ 128 mmc_all.h 129CAMMMCDIR= ${INCLUDEDIR}/cam/mmc 130 131.PATH: ${SRCTOP}/sys/cam/nvme 132CAMNVME= nvme_all.h 133CAMNVMEDIR= ${INCLUDEDIR}/cam/nvme 134 135.PATH: ${SRCTOP}/sys/cam/scsi 136CAMSCSI= scsi_all.h \ 137 scsi_cd.h \ 138 scsi_ch.h \ 139 scsi_da.h \ 140 scsi_enc.h \ 141 scsi_enc_internal.h \ 142 scsi_iu.h \ 143 scsi_message.h \ 144 scsi_pass.h \ 145 scsi_pt.h \ 146 scsi_sa.h \ 147 scsi_ses.h \ 148 scsi_sg.h \ 149 scsi_targetio.h \ 150 smp_all.h 151CAMSCSIDIR= ${INCLUDEDIR}/cam/scsi 152 153.PATH: ${SRCTOP}/sys/fs/cd9660 154FS9660= cd9660_mount.h \ 155 cd9660_node.h \ 156 cd9660_rrip.h \ 157 iso.h \ 158 iso_rrip.h 159FS9660DIR= ${INCLUDEDIR}/isofs/cd9660 160 161.PATH: ${SRCTOP}/sys/dev/evdev 162EVDEV= input.h \ 163 input-event-codes.h \ 164 uinput.h 165EVDEVDIR= ${INCLUDEDIR}/dev/evdev 166 167.PATH: ${SRCTOP}/sys/dev/hid 168HID= hid.h \ 169 hidraw.h 170HIDDIR= ${INCLUDEDIR}/dev/hid 171 172.PATH: ${SRCTOP}/sys/dev/hyperv/include ${SRCTOP}/sys/dev/hyperv/utilities 173HYPERV= hv_snapshot.h \ 174 hyperv.h 175HYPERVDIR= ${INCLUDEDIR}/dev/hyperv 176 177.PATH: ${SRCTOP}/sys/opencrypto 178OPENCRYPTO= cryptodev.h 179OPENCRYPTODIR= ${INCLUDEDIR}/crypto 180 181.PATH: ${SRCTOP}/sys/dev/nvme 182NVME= nvme.h 183NVMEDIR= ${INCLUDEDIR}/dev/nvme 184 185.PATH: ${SRCTOP}/sys/dev/pci 186PCI= pcireg.h 187PCIDIR= ${INCLUDEDIR}/dev/pci 188 189.PATH: ${SRCTOP}/sys/dev/veriexec 190VERIEXEC= veriexec_ioctl.h 191VERIEXECDIR= ${INCLUDEDIR}/dev/veriexec 192 193.PATH: ${SRCTOP}/sys/netpfil/ipfilter/netinet 194IPFILTER= ip_auth.h \ 195 ip_compat.h \ 196 ip_dstlist.h \ 197 ip_fil.h \ 198 ip_frag.h \ 199 ip_htable.h \ 200 ip_lookup.h \ 201 ip_nat.h \ 202 ip_pool.h \ 203 ip_proxy.h \ 204 ip_rules.h \ 205 ip_scan.h \ 206 ip_state.h \ 207 ip_sync.h \ 208 ipf_rb.h \ 209 ipl.h \ 210 radix_ipf.h 211IPFILTERDIR= ${INCLUDEDIR}/netinet 212 213.PATH: ${SRCTOP}/sys/netpfil/pf 214PF= pf.h \ 215 pf_altq.h \ 216 pf_mtag.h 217PFPACKAGE= pf 218PFDIR= ${INCLUDEDIR}/netpfil/pf 219 220.PATH: ${SRCTOP}/sys/rpc 221RPC= rpcsec_tls.h \ 222 types.h 223RPCDIR= ${INCLUDEDIR}/rpc 224 225.PATH: ${SRCTOP}/sys/teken 226TEKEN= teken.h 227TEKENDIR= ${INCLUDEDIR}/teken 228 229.PATH: ${SRCTOP}/sys/contrib/openzfs/include/sys 230NVPAIR= nvpair.h 231NVPAIRDIR= ${INCLUDEDIR}/sys 232 233.PATH: ${SRCTOP}/sys/dev/mlx5 234MLX5= mlx5io.h 235MLX5DIR= ${INCLUDEDIR}/dev/mlx5 236 237.PATH: ${SRCTOP}/sys/dev/wg 238WG= if_wg.h 239WGDIR= ${INCLUDEDIR}/dev/wg 240 241INCSGROUPS= INCS \ 242 ACPICA \ 243 AGP \ 244 BSM \ 245 CAM \ 246 CAMATA \ 247 CAMMMC \ 248 CAMNVME \ 249 CAMSCSI \ 250 CRYPTO \ 251 EVDEV \ 252 FS9660 \ 253 HID \ 254 HYPERV \ 255 OPENCRYPTO \ 256 NVME \ 257 PCI \ 258 RPC \ 259 SECAUDIT \ 260 TEKEN \ 261 VERIEXEC \ 262 WG 263 264.if ${MK_IPFILTER} != "no" 265INCSGROUPS+= IPFILTER 266.endif 267 268.if ${MK_PF} != "no" 269INCSGROUPS+= PF 270.endif 271 272.if ${MK_CDDL} != "no" 273INCSGROUPS+= NVPAIR 274.endif 275 276.if ${MK_MLX5TOOL} != "no" 277INCSGROUPS+= MLX5 278.endif 279 280.if ${MK_BLUETOOTH} != "no" 281LSUBSUBDIRS+= netgraph/bluetooth/include 282.endif 283 284.if ${MK_CUSE} != "no" 285LSUBDIRS+= fs/cuse 286.endif 287 288.if ${MK_GSSAPI} != "no" 289SUBDIR+= gssapi 290INCS+= gssapi.h 291.endif 292 293.if ${MK_HESIOD} != "no" 294INCS+= hesiod.h 295.endif 296 297# Handle the #define aliases for libiconv 298.if ${MK_ICONV} == "yes" 299INCS+= iconv.h 300.endif 301 302.if ${MK_USB} != "no" 303LSUBDIRS+= dev/usb 304.endif 305 306.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 307_dev_powermac_nvram= dev/powermac_nvram 308.endif 309 310# Define SHARED to indicate whether you want symbolic links to the system 311# source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is 312# probably only useful for developers and should be avoided if you do not 313# wish to tie your /usr/include and /usr/src together. 314#SHARED= symlinks 315SHARED?= copies 316 317INCS+= osreldate.h 318 319SYSDIR= ${SRCTOP}/sys 320NEWVERS_SH= ${SYSDIR}/conf/newvers.sh 321PARAM_H= ${SYSDIR}/sys/param.h 322MK_OSRELDATE_SH= ${.CURDIR}/mk-osreldate.sh 323 324SYMLINKS+= ${LIBDIR:C,[^/]+,..,g:C,^/,,}${INCLUDEDIR} ${LIBDIR}/include 325 326osreldate.h: ${NEWVERS_SH} ${PARAM_H} ${MK_OSRELDATE_SH} 327 env NEWVERS_SH=${NEWVERS_SH} PARAMFILE=${PARAM_H} SYSDIR=${SYSDIR} \ 328 sh ${MK_OSRELDATE_SH} 329 330.for i in ${LHDRS} 331INCSLINKS+= sys/$i ${INCLUDEDIR}/$i 332.endfor 333.for i in ${MHDRS} 334INCSLINKS+= machine/$i ${INCLUDEDIR}/$i 335.endfor 336.for i in ${PHDRS} 337INCSLINKS+= sys/$i ${INCLUDEDIR}/$i 338.endfor 339 340.if ${MACHINE} != ${MACHINE_CPUARCH} 341_MARCHS= ${MACHINE_CPUARCH} 342.endif 343.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 344_MARCHS+= x86 345.endif 346 347META_TARGETS+= compat 348stage_includes: ${SHARED} 349SDESTDIR= ${SYSROOT:U${DESTDIR}} 350 351# Take care of stale directory-level symlinks. 352# Note: The "|| true" after find is needed in case one of the directories does 353# not exist (yet). 354compat: 355 cd ${SDESTDIR}${INCLUDEDIR}; find ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} \ 356 crypto -maxdepth 0 -mindepth 0 -type l -print -delete || true 357 mtree -deU ${NO_ROOT:D-W} ${MTREE_FOLLOWS_SYMLINKS} \ 358 -f ${SRCTOP}/etc/mtree/BSD.include.dist \ 359 -p ${SDESTDIR}${INCLUDEDIR} > /dev/null 360.for d in ${INCLUDE_SUBDIRS} 361 ${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \ 362 ${SDESTDIR}${INCLUDEDIR}/${d} 363.endfor 364 365copies: .PHONY .META 366 cd ${SDESTDIR}${INCLUDEDIR}; find ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto \ 367 machine machine/pc ${_MARCHS} -maxdepth 1 -mindepth 1 -type l \ 368 -name "*.h" -print -delete || true 369.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/evdev:Ndev/hid:Ndev/hyperv:Ndev/pci:Ndev/veriexec:Ndev/wg} ${LSUBSUBDIRS} 370 cd ${SRCTOP}/sys; \ 371 ${INSTALL} -C ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \ 372 ${SDESTDIR}${INCLUDEDIR}/$i 373.endfor 374 cd ${SRCTOP}/sys/${MACHINE}/include; \ 375 ${INSTALL} -C ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 376 ${SDESTDIR}${INCLUDEDIR}/machine 377.if exists(${SRCTOP}/sys/${MACHINE}/include/pc) 378 cd ${SRCTOP}/sys/${MACHINE}/include/pc; \ 379 ${INSTALL} -C ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 380 ${SDESTDIR}${INCLUDEDIR}/machine/pc 381.endif 382.for _MARCH in ${_MARCHS} 383.if exists(${SRCTOP}/sys/${_MARCH}/include) 384 ${INSTALL} -d ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 755 \ 385 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \ 386 cd ${SRCTOP}/sys/${_MARCH}/include; \ 387 ${INSTALL} -C ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 388 ${SDESTDIR}${INCLUDEDIR}/${_MARCH} 389.if exists(${SRCTOP}/sys/${_MARCH}/include/pc) 390 ${INSTALL} -d ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 755 \ 391 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 392 cd ${SRCTOP}/sys/${_MARCH}/include/pc; \ 393 ${INSTALL} -C ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ 394 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc 395.endif 396.endif 397.endfor 398 399symlinks: .PHONY .META 400 @${ECHO} "Setting up symlinks to kernel source tree..." 401.for i in ${LDIRS} 402 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 403 $$(printf '../../../%s ' sys/$i/*.h) ${SDESTDIR}${INCLUDEDIR}/$i 404.endfor 405.for i in ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/evdev:Ndev/hid:Ndev/hyperv:Ndev/pci:Ndev/veriexec:Ndev/wg} 406 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 407 $$(printf '../../../../%s ' sys/$i/*.h) ${SDESTDIR}${INCLUDEDIR}/$i 408.endfor 409 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 410 $$(printf '../../../../sys/dev/acpica/%s ' acpiio.h acpi_hpet.h) \ 411 ${SDESTDIR}${INCLUDEDIR}/dev/acpica; \ 412 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/agp/agpreg.h \ 413 ${SDESTDIR}${INCLUDEDIR}/dev/agp; \ 414 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 415 $$(printf '../../../../sys/dev/evdev/%s ' input.h input-event-codes.h uinput.h) \ 416 ${SDESTDIR}${INCLUDEDIR}/dev/evdev; 417 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 418 $$(printf '../../../../sys/dev/hid/%s ' hid.h hidraw.h) \ 419 ${SDESTDIR}${INCLUDEDIR}/dev/hid; \ 420 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/hyperv/include/hyperv.h \ 421 ${SDESTDIR}${INCLUDEDIR}/dev/hyperv; \ 422 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/hyperv/utilities/hv_snapshot.h \ 423 ${SDESTDIR}${INCLUDEDIR}/dev/hyperv; \ 424 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/pci/pcireg.h \ 425 ${SDESTDIR}${INCLUDEDIR}/dev/pci; \ 426 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/veriexec/veriexec_ioctl.h \ 427 ${SDESTDIR}${INCLUDEDIR}/dev/veriexec; 428.for i in ${LSUBSUBDIRS} 429 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 430 $$(printf '../../../../../%s ' sys/$i/*.h) ${SDESTDIR}${INCLUDEDIR}/$i 431.endfor 432.if ${MK_IPFILTER} != "no" 433 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 434 $$(printf '../../../%s ' sys/netpfil/ipfilter/netinet/*.h) \ 435 ${SDESTDIR}${INCLUDEDIR}/netinet; 436.endif 437.if ${MK_PF} != "no" 438 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 439 $$(printf '../../../../%s ' sys/netpfil/pf/*.h) \ 440 ${SDESTDIR}${INCLUDEDIR}/netpfil/pf; 441.endif 442 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../sys/opencrypto/cryptodev.h \ 443 ${SDESTDIR}${INCLUDEDIR}/crypto; \ 444 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 445 $$(printf '../../../%s ' sys/${MACHINE}/include/*.h) \ 446 ${SDESTDIR}${INCLUDEDIR}/machine; 447.if exists(${SRCTOP}/sys/${MACHINE}/include/pc) 448 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 449 $$(printf '../../../../%s ' sys/${MACHINE}/include/pc/*.h) \ 450 ${SDESTDIR}${INCLUDEDIR}/machine/pc; 451.endif 452.for _MARCH in ${_MARCHS} 453.if exists(${SRCTOP}/sys/${_MARCH}/include) 454 ${INSTALL} -d ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 755 \ 455 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; \ 456 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 457 $$(printf '../../../%s ' sys/${_MARCH}/include/*.h) \ 458 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}; 459.if exists(${SRCTOP}/sys/${_MARCH}/include/pc) 460 ${INSTALL} -d ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m 755 \ 461 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; \ 462 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 463 $$(printf '../../../../%s ' sys/${_MARCH}/include/pc/*.h) \ 464 ${SDESTDIR}${INCLUDEDIR}/${_MARCH}/pc; 465.endif 466.endif 467.endfor 468 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 469 $$(printf '../../../../%s ' sys/fs/cd9660/*.h) \ 470 ${SDESTDIR}${INCLUDEDIR}/isofs/cd9660; \ 471 cd ${SRCTOP}; ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 472 $$(printf '../../../sys/rpc/%s ' rpcsec_tls.h types.h) \ 473 ${SDESTDIR}${INCLUDEDIR}/rpc; 474 cd ${SRCTOP}/sys/rpc; 475.if ${MK_CDDL} != "no" 476 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} \ 477 ../../../sys/contrib/openzfs/include/sys/nvpair.h \ 478 ${SDESTDIR}${INCLUDEDIR}/sys 479.endif 480.if ${MK_MLX5TOOL} != "no" 481 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ../../../../sys/dev/mlx5/mlx5io.h \ 482 ${SDESTDIR}${INCLUDEDIR}/dev/mlx5 483.endif 484 485.include <bsd.prog.mk> 486 487installincludes: ${SHARED} 488${SHARED}: compat 489 490.if ${MACHINE} == "host" && !defined(_SKIP_BUILD) 491# we're here because we are building a sysroot... 492# we need MACHINE et al set correctly 493HOST_MACHINE!= uname -m 494HOST_MACHINE_ARCH!= uname -p 495MACHINE:= ${HOST_MACHINE} 496MACHINE_ARCH:= ${HOST_MACHINE_ARCH} 497.endif 498 499check-ldirs: 500 missing_dirs=""; \ 501 for dir in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS}; do \ 502 if [ ! -d ${SRCTOP}/sys/$$dir ]; then \ 503 echo "${SRCTOP}/sys/$$dir"; \ 504 missing_dirs="$$missing_dirs $$dir"; \ 505 fi; \ 506 done; \ 507 if [ -n "$$missing_dirs" ]; then \ 508 echo "Nonexistant directories:" $$missing_dirs; \ 509 false; \ 510 fi 511