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