Makefile revision 29949e866e40b95795203f3ee46f44a197c946e4
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# CDDL HEADER START
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# The contents of this file are subject to the terms of the
29949e866e40b95795203f3ee46f44a197c946e4stevel# Common Development and Distribution License (the "License").
29949e866e40b95795203f3ee46f44a197c946e4stevel# You may not use this file except in compliance with the License.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
29949e866e40b95795203f3ee46f44a197c946e4stevel# or http://www.opensolaris.org/os/licensing.
29949e866e40b95795203f3ee46f44a197c946e4stevel# See the License for the specific language governing permissions
29949e866e40b95795203f3ee46f44a197c946e4stevel# and limitations under the License.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# When distributing Covered Code, include this CDDL HEADER in each
29949e866e40b95795203f3ee46f44a197c946e4stevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
29949e866e40b95795203f3ee46f44a197c946e4stevel# If applicable, add the following below this CDDL HEADER, with the
29949e866e40b95795203f3ee46f44a197c946e4stevel# fields enclosed by brackets "[]" replaced with your own identifying
29949e866e40b95795203f3ee46f44a197c946e4stevel# information: Portions Copyright [yyyy] [name of copyright owner]
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# CDDL HEADER END
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
29949e866e40b95795203f3ee46f44a197c946e4stevel# Use is subject to license terms.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel#ident "%Z%%M% %I% %E% SMI"
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelUTSBASE = ../../..
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# include global definitions
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelinclude ../Makefile.sunfire
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Override defaults.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelFILEMODE = 644
29949e866e40b95795203f3ee46f44a197c946e4stevelGROUP = bin
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelHDRS= ac.h environ.h fhc.h simmstat.h sysctrl.h
29949e866e40b95795203f3ee46f44a197c946e4stevelCLOSEDHDRS= sram.h
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelROOTHDRS= $(HDRS:%=$(USR_SUNFIRE_ISYS_DIR)/%)
29949e866e40b95795203f3ee46f44a197c946e4stevel$(CLOSED_BUILD)ROOTHDRS += $(CLOSEDHDRS:%=$(USR_SUNFIRE_ISYS_DIR)/%)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelROOTDIR= $(ROOT)/usr/share/src
29949e866e40b95795203f3ee46f44a197c946e4stevelROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys
29949e866e40b95795203f3ee46f44a197c946e4stevelLINKDEST= ../../../../platform/$(PLATFORM)/include/sys
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelCHECKHDRS= $(HDRS:%.h=%.check)
29949e866e40b95795203f3ee46f44a197c946e4stevel$(CLOSED_BUILD)CHECKHDRS += \
29949e866e40b95795203f3ee46f44a197c946e4stevel $(CLOSEDHDRS:%.h=$(CLOSED)/uts/sun4u/sunfire/sys/%.check)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel.KEEP_STATE:
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel.PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelinstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelcheck: $(CHECKHDRS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# install rules
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel$(USR_SUNFIRE_ISYS_DIR)/%: % $(USR_SUNFIRE_ISYS_DIR)
29949e866e40b95795203f3ee46f44a197c946e4stevel $(INS.file)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel$(USR_SUNFIRE_ISYS_DIR)/%: $(CLOSED)/uts/sun4u/sunfire/sys/%
29949e866e40b95795203f3ee46f44a197c946e4stevel $(INS.file)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel$(ROOTDIRS):
29949e866e40b95795203f3ee46f44a197c946e4stevel $(INS.dir.root.bin)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel# -r because this used to be a directory and is now a link.
29949e866e40b95795203f3ee46f44a197c946e4stevel$(ROOTLINK): $(ROOTDIRS)
29949e866e40b95795203f3ee46f44a197c946e4stevel -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelFRC:
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelinclude ../Makefile.targ