Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# CDDL HEADER START
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# The contents of this file are subject to the terms of the
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Common Development and Distribution License (the "License").
4b22b9337f359bfd063322244f5336cc7c6ffcfars# You may not use this file except in compliance with the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4b22b9337f359bfd063322244f5336cc7c6ffcfars# or http://www.opensolaris.org/os/licensing.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# See the License for the specific language governing permissions
4b22b9337f359bfd063322244f5336cc7c6ffcfars# and limitations under the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# When distributing Covered Code, include this CDDL HEADER in each
4b22b9337f359bfd063322244f5336cc7c6ffcfars# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# If applicable, add the following below this CDDL HEADER, with the
4b22b9337f359bfd063322244f5336cc7c6ffcfars# fields enclosed by brackets "[]" replaced with your own identifying
4b22b9337f359bfd063322244f5336cc7c6ffcfars# information: Portions Copyright [yyyy] [name of copyright owner]
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# CDDL HEADER END
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Use is subject to license terms.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# ident "%Z%%M% %I% %E% SMI"
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# uts/sun4u/opl/sys/Makefile
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsUTSBASE = ../../..
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# include global definitions
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfarsinclude ../Makefile.opl
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Override defaults.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfarsFILEMODE = 644
4b22b9337f359bfd063322244f5336cc7c6ffcfarsOWNER = bin
3ee6e1231b28188bebd1d5bb4a32a673f5820322Richard LoweGROUP = bin
4b22b9337f359bfd063322244f5336cc7c6ffcfars
3ee6e1231b28188bebd1d5bb4a32a673f5820322Richard LoweHDRS= opl_hwdesc.h
3b427fad1e8c37a2021700224474a546cc45cc5frs
3b427fad1e8c37a2021700224474a546cc45cc5frsCHKHDRS= dm2s.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars drmach.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars fiomp.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars mc-opl.h \
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe oplkm.h \
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe oplkm_msg.h
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweOPLMSUHDRS= oplmsu.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars oplmsu_proto.h
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsPCICMUHDRS= pcicmu.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_cb.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_counters.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_ecc.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_err.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_ib.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_pbm.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_types.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars pcmu_util.h
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsSCFDHDRS= iomp_drv.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars opcio.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfdebug.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfdscp.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfdscpif.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfio32.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfkstat.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfostoescf.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfparam.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfreg.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfsnap.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfstate.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scfsys.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scftimer.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars scftrace.h
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsNGDRHDRS= $(UTSBASE)/sun4u/ngdr/sys/dr.h \
4b22b9337f359bfd063322244f5336cc7c6ffcfars $(UTSBASE)/sun4u/ngdr/sys/dr_util.h
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsROOTHDRS= $(HDRS:%=$(USR_OPL_ISYS_DIR)/%)
4b22b9337f359bfd063322244f5336cc7c6ffcfars
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