1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# Copyright 2019 Joyent, Inc. 25# 26# uts/i86pc/sys/Makefile 27# 28UTSBASE = ../.. 29 30# 31# include global definitions 32# 33include ../Makefile.i86pc 34include $(UTSBASE)/intel/sys/Makefile.psm 35 36# 37# Override defaults. 38# 39FILEMODE = 644 40 41HDRS= \ 42 acpidev.h \ 43 amd_iommu.h \ 44 asm_misc.h \ 45 clock.h \ 46 cram.h \ 47 ddi_subrdefs.h \ 48 debug_info.h \ 49 fastboot.h \ 50 mach_mmu.h \ 51 machclock.h \ 52 machcpuvar.h \ 53 machparam.h \ 54 machprivregs.h \ 55 machsystm.h \ 56 machthread.h \ 57 memnode.h \ 58 pc_mmu.h \ 59 psm.h \ 60 psm_defs.h \ 61 psm_modctl.h \ 62 psm_types.h \ 63 rm_platter.h \ 64 sbd_ioctl.h \ 65 smp_impldefs.h \ 66 vm_machparam.h \ 67 x_call.h \ 68 xc_levels.h \ 69 xsvc.h 70 71ROOTHDRS = \ 72 $(HDRS:%=$(USR_PSM_ISYS_DIR)/%) \ 73 $(PSM_SHARED_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 74 75ROOTDIR= $(ROOT)/usr/share/src 76ROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM) 77 78ROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys 79LINKDEST= ../../../../platform/$(PLATFORM)/include/sys 80 81CHECKHDRS= $(HDRS:%.h=%.check) 82 83.KEEP_STATE: 84 85.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) 86 87install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK) 88 89check: $(CHECKHDRS) 90 91$(ROOTDIRS): 92 $(INS.dir) 93 94$(ROOTLINK): $(ROOTDIRS) 95 -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ 96 97FRC: 98 99include ../../Makefile.targ 100