xref: /titanic_50/usr/src/uts/sun4u/montecarlo/sys/Makefile (revision 1a7c1b724419d3cb5fa6eea75123c6b2060ba31b)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1997-2000, by Sun Microsystems, Inc.
26# All Rights Reserved.
27#
28UTSBASE	= ../../..
29
30#
31# include global definitions
32#
33include ../Makefile.montecarlo
34
35#
36# Override defaults.
37#
38FILEMODE	 = 644
39GROUP = bin
40
41HDRS=	scsb_led.h
42
43ROOTHDRS=	$(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
44
45ROOTDIR=	$(ROOT)/usr/share/src
46ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
47
48ROOTLINK=	$(ROOTDIR)/uts/$(PLATFORM)/sys
49LINKDEST=	../../../../platform/$(PLATFORM)/include/sys
50
51CHECKHDRS=		$(HDRS:%.h=%.check)
52
53.KEEP_STATE:
54
55.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
56
57install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
58
59check:	$(CHECKHDRS)
60
61#
62# install rules
63#
64$(USR_MONTECARLO_ISYS_DIR)/%:	% $(USR_MONTECARLO_ISYS_DIR)
65	$(INS.file)
66
67$(ROOTDIRS):
68	$(INS.dir.root.bin)
69
70# -r because this used to be a directory and is now a link.
71$(ROOTLINK):	$(ROOTDIRS)
72	-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
73
74FRC:
75
76include ../Makefile.targ
77