Makefile revision 3b427fad1e8c37a2021700224474a546cc45cc5f
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1N/A# Use is subject to license terms.
1N/A#
1N/A# ident "%Z%%M% %I% %E% SMI"
1N/A#
1N/A# uts/sun4u/opl/sys/Makefile
1N/A#
1N/A
1N/A
1N/AUTSBASE = ../../..
1N/A
1N/A#
1N/A# include global definitions
1N/A#
1N/Ainclude ../Makefile.opl
1N/A
1N/A#
1N/A# Override defaults.
1N/A#
1N/AFILEMODE = 644
1N/AOWNER = bin
1N/AGROUP = bin
1N/A
1N/AHDRS= opl_hwdesc.h
1N/A
1N/ACHKHDRS= dm2s.h \
1N/A drmach.h \
1N/A fiomp.h \
1N/A mc-opl.h \
1N/A oplkm.h \
1N/A oplkm_msg.h
1N/A
1N/AOPLMSUHDRS= oplmsu.h \
1N/A oplmsu_proto.h
1N/A
1N/APCICMUHDRS= pcicmu.h \
1N/A pcmu_cb.h \
1N/A pcmu_counters.h \
1N/A pcmu_ecc.h \
1N/A pcmu_err.h \
1N/A pcmu_ib.h \
1N/A pcmu_pbm.h \
1N/A pcmu_types.h \
pcmu_util.h
SCFDHDRS= opcioif.h \
scfdscpif.h \
scfostoescf.h
NGDRHDRS= $(UTSBASE)/sun4u/ngdr/sys/dr.h \
$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
ROOTHDRS= $(HDRS:%=$(USR_OPL_ISYS_DIR)/%)
ROOTDIR= $(ROOT)/usr/share/src
ROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
ROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys
LINKDEST= ../../../../platform/$(PLATFORM)/include/sys
CHECKHDRS= $(HDRS:%.h=%.check) \
$(CHKHDRS:%.h=%.check) \
$(OPLMSUHDRS:%.h=oplmsu/%.check) \
$(PCICMUHDRS:%.h=pcicmu/%.check) \
$(SCFDHDRS:%.h=scfd/%.check) \
$(NGDRHDRS:%.h=%.check)
.KEEP_STATE:
.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
check: $(CHECKHDRS)
#
# install rules
#
$(USR_OPL_ISYS_DIR)/%: % $(USR_OPL_ISYS_DIR)
$(INS.file)
$(ROOTDIRS):
$(INS.dir.bin.bin)
# -r because this used to be a directory and is now a link.
$(ROOTLINK): $(ROOTDIRS)
-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
FRC:
include ../Makefile.targ