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