xref: /titanic_52/usr/src/uts/sun4u/starcat/sys/Makefile (revision ba4e3c84e6b9390bbf7df80b5f1d11dec34cc525)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#pragma ident	"%Z%%M%	%I%	%E% SMI"
26#
27UTSBASE	= ../../..
28
29#
30# include global definitions
31#
32include ../Makefile.starcat
33
34#
35# Override defaults.
36#
37FILEMODE	 = 644
38OWNER = bin
39GROUP = bin
40
41HDRS=
42
43
44CHKHDRS=	axq.h dman.h domaind.h drmach.h \
45		iosramio.h iosramreg.h iosramvar.h \
46		sc_cvc.h sc_cvcio.h \
47		sckm_msg.h sckm_io.h
48
49STARHDRS=	$(UTSBASE)/sun4u/ngdr/sys/dr.h \
50		$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
51
52ROOTHDRS=	$(HDRS:%=$(USR_STARCAT_ISYS_DIR)/%)
53
54ROOTDIR=	$(ROOT)/usr/share/src
55ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
56
57ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
58LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
59
60CHECKHDRS=	$(HDRS:%.h=%.check) \
61		$(CHKHDRS:%.h=%.check) \
62		$(STARHDRS:%.h=%.check)
63
64.KEEP_STATE:
65
66.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
67
68install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
69
70check:	$(CHECKHDRS)
71
72#
73# install rules
74#
75$(USR_STARCAT_ISYS_DIR)/%:	% $(USR_STARCAT_ISYS_DIR)
76	$(INS.file)
77
78$(ROOTDIRS):
79	$(INS.dir.bin.bin)
80
81# -r because this used to be a directory and is now a link.
82$(ROOTLINK):	$(ROOTDIRS)
83	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
84
85FRC:
86
87include ../Makefile.targ
88