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