xref: /illumos-gate/usr/src/lib/fm/libldom/Makefile (revision 5801b0f0)
131e37bb4Svn#
231e37bb4Svn# CDDL HEADER START
331e37bb4Svn#
431e37bb4Svn# The contents of this file are subject to the terms of the
531e37bb4Svn# Common Development and Distribution License (the "License").
631e37bb4Svn# You may not use this file except in compliance with the License.
731e37bb4Svn#
831e37bb4Svn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
931e37bb4Svn# or http://www.opensolaris.org/os/licensing.
1031e37bb4Svn# See the License for the specific language governing permissions
1131e37bb4Svn# and limitations under the License.
1231e37bb4Svn#
1331e37bb4Svn# When distributing Covered Code, include this CDDL HEADER in each
1431e37bb4Svn# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1531e37bb4Svn# If applicable, add the following below this CDDL HEADER, with the
1631e37bb4Svn# fields enclosed by brackets "[]" replaced with your own identifying
1731e37bb4Svn# information: Portions Copyright [yyyy] [name of copyright owner]
1831e37bb4Svn#
1931e37bb4Svn# CDDL HEADER END
2031e37bb4Svn#
2131e37bb4Svn#
2225351652SVuong Nguyen# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2331e37bb4Svn# Use is subject to license terms.
2431e37bb4Svn#
2531e37bb4Svn
2631e37bb4Svninclude ../../Makefile.lib
2731e37bb4Svninclude ../Makefile.lib
2831e37bb4Svn
2931e37bb4SvnFMHDRS = ldom.h
3031e37bb4SvnHDRDIR = sparc
3131e37bb4Svn
3225351652SVuong NguyenROOTFMHDRDIR = $(ROOT)/usr/platform/sun4v/include/sys/fm
3325351652SVuong Nguyen
34*5801b0f0SToomas SoomeSUBDIRS = $(MACH)
3531e37bb4Svn$(BUILD64)SUBDIRS += $(MACH64)
3631e37bb4Svn
3731e37bb4Svnall := TARGET = all
3831e37bb4Svnclean := TARGET = clean
3931e37bb4Svnclobber := TARGET = clobber
4031e37bb4Svninstall := TARGET = install
4131e37bb4Svn
4231e37bb4Svn.KEEP_STATE:
4331e37bb4Svn
44*5801b0f0SToomas Soomeall clean clobber: $(SUBDIRS)
4531e37bb4Svn
46f808c858Srafinstall: install_h .WAIT $(SUBDIRS)
4731e37bb4Svn
4825351652SVuong Nguyeninstall_h:	$(ROOTFMHDRS)
4925351652SVuong Nguyen
5025351652SVuong Nguyen$(ROOTFMHDRS):	$(ROOTFMHDRDIR)
5125351652SVuong Nguyen
5225351652SVuong Nguyen$(ROOTFMHDRDIR)/%: $(HDRDIR)/%
5325351652SVuong Nguyen	$(INS.file)
5425351652SVuong Nguyen
5531e37bb4Svncheck: $(CHECKHDRS)
5631e37bb4Svn
57f808c858Sraf$(SUBDIRS): FRC
5831e37bb4Svn	@cd $@; pwd; $(MAKE) $(TARGET)
5931e37bb4Svn
6031e37bb4SvnFRC:
6131e37bb4Svn
6231e37bb4Svninclude ../../Makefile.targ
6331e37bb4Svninclude ../Makefile.targ
64