Makefile revision fc5ba5b7841bf3fe7e5fd01506a94a559ea518cd
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# CDDL HEADER START
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# The contents of this file are subject to the terms of the
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# Common Development and Distribution License (the "License").
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# You may not use this file except in compliance with the License.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# or http://www.opensolaris.org/os/licensing.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# See the License for the specific language governing permissions
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# and limitations under the License.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# When distributing Covered Code, include this CDDL HEADER in each
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# If applicable, add the following below this CDDL HEADER, with the
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# fields enclosed by brackets "[]" replaced with your own identifying
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# information: Portions Copyright [yyyy] [name of copyright owner]
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# CDDL HEADER END
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchiinclude ../../Makefile.lib
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# This library must install in /lib since it is a dependency of
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# svc.startd and may be required in early boot. Thus we cannot
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# include ../Makefile.lib - instead we set ROOTFMHDRDIR and
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# ROOTFMHDRS and redefine ROOTLIBDIR and ROOTLIBDIR64 accordingly
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiROOTFMHDRDIR = $(ROOTHDRDIR)/fm
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiROOTFMHDRS = $(FMHDRS:%=$(ROOTFMHDRDIR)/%)
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiROOTLIBDIR= $(ROOTFS_LIBDIR)/fm
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiROOTLIBDIR64= $(ROOTFS_LIBDIR)/fm/$(MACH64)
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiFMHDRS = libfmevent.h libfmevent_ruleset.h
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiHDRDIR = common
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert MustacchiSUBDIRS = $(MACH)
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi$(BUILD64)SUBDIRS += $(MACH64)
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchiall := TARGET = all
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchiclean := TARGET = clean
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchiclobber := TARGET = clobber
install := TARGET = install
lint := TARGET = lint
.KEEP_STATE:
all clean clobber lint: $(SUBDIRS)
install: install_h .WAIT $(SUBDIRS)
install_h: $(ROOTFMHDRS)
check: $(CHECKHDRS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
include ../../Makefile.targ
include ../Makefile.targ