Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
80N/A#
80N/A# CDDL HEADER START
80N/A#
80N/A# The contents of this file are subject to the terms of the
80N/A# Common Development and Distribution License (the "License").
80N/A# You may not use this file except in compliance with the License.
80N/A#
80N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80N/A# or http://www.opensolaris.org/os/licensing.
80N/A# See the License for the specific language governing permissions
80N/A# and limitations under the License.
80N/A#
80N/A# When distributing Covered Code, include this CDDL HEADER in each
80N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
80N/A# If applicable, add the following below this CDDL HEADER, with the
80N/A# fields enclosed by brackets "[]" replaced with your own identifying
80N/A# information: Portions Copyright [yyyy] [name of copyright owner]
80N/A#
80N/A# CDDL HEADER END
80N/A#
682N/A#
80N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
80N/A# Use is subject to license terms.
80N/A#
80N/A# ident "%Z%%M% %I% %E% SMI"
682N/A#
618N/A# uts/sun4u/opl/sys/Makefile
80N/A#
80N/A
682N/A
682N/AUTSBASE = ../../..
682N/A
682N/A#
682N/A# include global definitions
844N/A#
844N/Ainclude ../Makefile.opl
844N/A
80N/A#
80N/A# Override defaults.
1258N/A#
1258N/AFILEMODE = 644
80N/AOWNER = bin
80N/AGROUP = bin
80N/A
80N/AHDRS= opl_hwdesc.h
99N/A
99N/ACHKHDRS= dm2s.h \
80N/A drmach.h \
80N/A fiomp.h \
80N/A mc-opl.h \
80N/A oplkm.h \
80N/A oplkm_msg.h
80N/A
80N/AOPLMSUHDRS= oplmsu.h \
181N/A oplmsu_proto.h
80N/A
181N/APCICMUHDRS= pcicmu.h \
80N/A pcmu_cb.h \
80N/A pcmu_counters.h \
80N/A pcmu_ecc.h \
80N/A pcmu_err.h \
pcmu_ib.h \
pcmu_pbm.h \
pcmu_types.h \
pcmu_util.h
SCFDHDRS= iomp_drv.h \
opcio.h \
scfdebug.h \
scfdscp.h \
scfdscpif.h \
scfio32.h \
scfkstat.h \
scfostoescf.h \
scfparam.h \
scfreg.h \
scfsnap.h \
scfstate.h \
scfsys.h \
scftimer.h \
scftrace.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