Makefile revision fc5ba5b7841bf3fe7e5fd01506a94a559ea518cd
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinclude ../../Makefile.lib
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This library must install in /lib since it is a dependency of
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# svc.startd and may be required in early boot. Thus we cannot
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# include ../Makefile.lib - instead we set ROOTFMHDRDIR and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ROOTFMHDRS and redefine ROOTLIBDIR and ROOTLIBDIR64 accordingly
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTFMHDRDIR = $(ROOTHDRDIR)/fm
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTFMHDRS = $(FMHDRS:%=$(ROOTFMHDRDIR)/%)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTLIBDIR= $(ROOTFS_LIBDIR)/fm
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTLIBDIR64= $(ROOTFS_LIBDIR)/fm/$(MACH64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFMHDRS = libfmevent.h libfmevent_ruleset.h
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsHDRDIR = common
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS = $(MACH)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(BUILD64)SUBDIRS += $(MACH64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall := TARGET = all
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean := TARGET = clean
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclobber := TARGET = clobber
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall := TARGET = install
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslint := TARGET = lint
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater.KEEP_STATE:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall clean clobber lint: $(SUBDIRS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: install_h .WAIT $(SUBDIRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall_h: $(ROOTFMHDRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewscheck: $(CHECKHDRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(SUBDIRS): FRC
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews @cd $@; pwd; $(MAKE) $(TARGET)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFRC:
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../Makefile.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../Makefile.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews