xref: /illumos-gate/usr/src/uts/i86pc/sys/Makefile (revision cb6207858a9fcc2feaee22e626912fba281ac969)
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#pragma ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# uts/i86pc/sys/Makefile
28#
29UTSBASE = ../..
30
31#
32# include global definitions
33#
34include ../Makefile.i86pc
35
36#
37# Override defaults.
38#
39FILEMODE = 644
40OWNER = root
41GROUP = bin
42
43HDRS=  \
44	asm_misc.h	\
45	clock.h		\
46	cram.h		\
47	ddi_subrdefs.h	\
48	debug_info.h 	\
49	mach_mmu.h	\
50	machcpuvar.h	\
51	machparam.h	\
52	machsystm.h	\
53	machthread.h	\
54	memnode.h	\
55	pc_mmu.h	\
56	psm.h		\
57	psm_defs.h	\
58	psm_modctl.h	\
59	psm_types.h	\
60	rm_platter.h	\
61	smp_impldefs.h	\
62	vm_machparam.h	\
63	x_call.h	\
64	xc_levels.h	\
65	xsvc.h
66
67ROOTHDRS=	$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
68
69ROOTDIR=	$(ROOT)/usr/share/src
70ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
71
72ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
73LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
74
75CHECKHDRS=	$(HDRS:%.h=%.check)
76
77.KEEP_STATE:
78
79.PARALLEL:	$(CHECKHDRS) $(ROOTHDRS)
80
81install_h:	$(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
82
83check:		$(CHECKHDRS)
84
85$(ROOTDIRS):
86	$(INS.dir.root.bin)
87
88$(ROOTLINK):	$(ROOTDIRS)
89	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
90
91FRC:
92
93include ../../Makefile.targ
94