149b225e1SGavin Maltby# 249b225e1SGavin Maltby# CDDL HEADER START 349b225e1SGavin Maltby# 449b225e1SGavin Maltby# The contents of this file are subject to the terms of the 549b225e1SGavin Maltby# Common Development and Distribution License (the "License"). 649b225e1SGavin Maltby# You may not use this file except in compliance with the License. 749b225e1SGavin Maltby# 849b225e1SGavin Maltby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 949b225e1SGavin Maltby# or http://www.opensolaris.org/os/licensing. 1049b225e1SGavin Maltby# See the License for the specific language governing permissions 1149b225e1SGavin Maltby# and limitations under the License. 1249b225e1SGavin Maltby# 1349b225e1SGavin Maltby# When distributing Covered Code, include this CDDL HEADER in each 1449b225e1SGavin Maltby# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1549b225e1SGavin Maltby# If applicable, add the following below this CDDL HEADER, with the 1649b225e1SGavin Maltby# fields enclosed by brackets "[]" replaced with your own identifying 1749b225e1SGavin Maltby# information: Portions Copyright [yyyy] [name of copyright owner] 1849b225e1SGavin Maltby# 1949b225e1SGavin Maltby# CDDL HEADER END 2049b225e1SGavin Maltby# 2149b225e1SGavin Maltby# 22f6e214c7SGavin Maltby# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 2349b225e1SGavin Maltby# 2449b225e1SGavin Maltby 2549b225e1SGavin Maltbyinclude ../../Makefile.lib 26*fc5ba5b7SAntonello Cruz 27*fc5ba5b7SAntonello Cruz# This library must install in /lib since it is a dependency of 28*fc5ba5b7SAntonello Cruz# svc.startd and may be required in early boot. Thus we cannot 29*fc5ba5b7SAntonello Cruz# include ../Makefile.lib - instead we set ROOTFMHDRDIR and 30*fc5ba5b7SAntonello Cruz# ROOTFMHDRS and redefine ROOTLIBDIR and ROOTLIBDIR64 accordingly 31*fc5ba5b7SAntonello Cruz 32*fc5ba5b7SAntonello CruzROOTFMHDRDIR = $(ROOTHDRDIR)/fm 33*fc5ba5b7SAntonello CruzROOTFMHDRS = $(FMHDRS:%=$(ROOTFMHDRDIR)/%) 34*fc5ba5b7SAntonello Cruz 35*fc5ba5b7SAntonello CruzROOTLIBDIR= $(ROOTFS_LIBDIR)/fm 36*fc5ba5b7SAntonello CruzROOTLIBDIR64= $(ROOTFS_LIBDIR)/fm/$(MACH64) 3749b225e1SGavin Maltby 38f6e214c7SGavin MaltbyFMHDRS = libfmevent.h libfmevent_ruleset.h 3949b225e1SGavin MaltbyHDRDIR = common 4049b225e1SGavin Maltby 4149b225e1SGavin MaltbySUBDIRS = $(MACH) 4249b225e1SGavin Maltby$(BUILD64)SUBDIRS += $(MACH64) 4349b225e1SGavin Maltby 4449b225e1SGavin Maltbyall := TARGET = all 4549b225e1SGavin Maltbyclean := TARGET = clean 4649b225e1SGavin Maltbyclobber := TARGET = clobber 4749b225e1SGavin Maltbyinstall := TARGET = install 4849b225e1SGavin Maltbylint := TARGET = lint 4949b225e1SGavin Maltby 5049b225e1SGavin Maltby.KEEP_STATE: 5149b225e1SGavin Maltby 5249b225e1SGavin Maltbyall clean clobber lint: $(SUBDIRS) 5349b225e1SGavin Maltby 5449b225e1SGavin Maltbyinstall: install_h .WAIT $(SUBDIRS) 5549b225e1SGavin Maltby 5649b225e1SGavin Maltbyinstall_h: $(ROOTFMHDRS) 5749b225e1SGavin Maltby 5849b225e1SGavin Maltbycheck: $(CHECKHDRS) 5949b225e1SGavin Maltby 6049b225e1SGavin Maltby$(SUBDIRS): FRC 6149b225e1SGavin Maltby @cd $@; pwd; $(MAKE) $(TARGET) 6249b225e1SGavin Maltby 6349b225e1SGavin MaltbyFRC: 6449b225e1SGavin Maltby 6549b225e1SGavin Maltbyinclude ../../Makefile.targ 6649b225e1SGavin Maltbyinclude ../Makefile.targ 67