xref: /illumos-gate/usr/src/uts/i86pc/sys/Makefile (revision 5801b0f01c3c34499a929ed96164a5a68b470945)
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
34
35#
36# Override defaults.
37#
38FILEMODE = 644
39
40HDRS=  \
41	acpidev.h	\
42	amd_iommu.h	\
43	asm_misc.h	\
44	clock.h		\
45	cram.h		\
46	ddi_subrdefs.h	\
47	debug_info.h	\
48	fastboot.h	\
49	mach_mmu.h	\
50	machclock.h	\
51	machcpuvar.h	\
52	machparam.h	\
53	machprivregs.h	\
54	machsystm.h	\
55	machthread.h	\
56	memnode.h	\
57	pc_mmu.h	\
58	psm.h		\
59	psm_defs.h	\
60	psm_modctl.h	\
61	psm_types.h	\
62	rm_platter.h	\
63	sbd_ioctl.h	\
64	smp_impldefs.h	\
65	smt.h		\
66	vm_machparam.h	\
67	x_call.h	\
68	xc_levels.h	\
69	xsvc.h
70
71ROOTHDRS=	$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
72
73ROOTDIR=	$(ROOT)/usr/share/src
74ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
75
76ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
77LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
78
79CHECKHDRS=	$(HDRS:%.h=%.check)
80
81.KEEP_STATE:
82
83.PARALLEL:	$(CHECKHDRS) $(ROOTHDRS)
84
85install_h:	$(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
86
87check:		$(CHECKHDRS)
88
89$(ROOTDIRS):
90	$(INS.dir)
91
92$(ROOTLINK):	$(ROOTDIRS)
93	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
94
95FRC:
96
97include ../../Makefile.targ
98