xref: /titanic_50/usr/src/uts/i86pc/sys/Makefile (revision 1b22764f59e3a183ca5db98b6bfd27fdf2b20e02)
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#
23# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
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
39OWNER = root
40GROUP = bin
41
42HDRS=  \
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	smp_impldefs.h	\
64	vm_machparam.h	\
65	x_call.h	\
66	xc_levels.h	\
67	xsvc.h
68
69ROOTHDRS=	$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
70
71ROOTDIR=	$(ROOT)/usr/share/src
72ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
73
74ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
75LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
76
77CHECKHDRS=	$(HDRS:%.h=%.check)
78
79.KEEP_STATE:
80
81.PARALLEL:	$(CHECKHDRS) $(ROOTHDRS)
82
83install_h:	$(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
84
85check:		$(CHECKHDRS)
86
87$(ROOTDIRS):
88	$(INS.dir.root.bin)
89
90$(ROOTLINK):	$(ROOTDIRS)
91	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
92
93FRC:
94
95include ../../Makefile.targ
96