xref: /illumos-gate/usr/src/uts/i86pc/sys/Makefile (revision 22028508fd28d36ff74dc02c5774a8ba1f0db045)
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	hma.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	smt.h		\
67	vm_machparam.h	\
68	x_call.h	\
69	xc_levels.h	\
70	xsvc.h
71
72ROOTHDRS=	$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
73
74ROOTDIR=	$(ROOT)/usr/share/src
75ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
76
77ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
78LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
79
80CHECKHDRS=	$(HDRS:%.h=%.check)
81
82.KEEP_STATE:
83
84.PARALLEL:	$(CHECKHDRS) $(ROOTHDRS)
85
86install_h:	$(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
87
88check:		$(CHECKHDRS)
89
90$(ROOTDIRS):
91	$(INS.dir)
92
93$(ROOTLINK):	$(ROOTDIRS)
94	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
95
96FRC:
97
98include ../../Makefile.targ
99