Makefile revision 2
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# CDDL HEADER START
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass#
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# The contents of this file are subject to the terms of the
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# Common Development and Distribution License (the "License").
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# You may not use this file except in compliance with the License.
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass#
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# or http://www.opensolaris.org/os/licensing.
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# See the License for the specific language governing permissions
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# and limitations under the License.
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass#
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# When distributing Covered Code, include this CDDL HEADER in each
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# If applicable, add the following below this CDDL HEADER, with the
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# fields enclosed by brackets "[]" replaced with your own identifying
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# information: Portions Copyright [yyyy] [name of copyright owner]
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass#
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass# CDDL HEADER END
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass#
7cc37d128ea716239e7a160c9491c80ab25396cbDav Glass#
7cc37d128ea716239e7a160c9491c80ab25396cbDav Glass# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass#
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav Glass# lib/librdc/Makefile
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glassinclude ../Makefile.lib
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav GlassHDRS= librdc.h rdcerr.h rdcrules.h
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav GlassHDRDIR= common
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
a3eb4ece3de41a536cc59498ef19ffbab1c4dfbfDav GlassSUBDIRS= $(MACH)
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav GlassROOTHDRDIR= $(ROOT)/usr/include/sys/nsctl
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav GlassROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
9eacd4f0aa36d89d83ef25c2ea6e6bf265ab08abDav Glassall := TARGET= all
9eacd4f0aa36d89d83ef25c2ea6e6bf265ab08abDav Glassclean := TARGET= clean
9eacd4f0aa36d89d83ef25c2ea6e6bf265ab08abDav Glassclobber := TARGET= clobber
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glassinstall := TARGET= install
9eacd4f0aa36d89d83ef25c2ea6e6bf265ab08abDav Glasslint := TARGET= lint
9eacd4f0aa36d89d83ef25c2ea6e6bf265ab08abDav Glassstub := TARGET = stub
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glassstubinstall := TARGET = stubinstall
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glass
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glass.KEEP_STATE:
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glass
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glassall clean clobber install lint stub stubinstall: $(SUBDIRS)
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glass
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glass$(MACH): FRC
6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4Dav Glass @cd $@; pwd; $(MAKE) $(TARGET)
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glassinstall_h: $(ROOTHDRDIR) $(ROOTHDRS)
dd5e6c0fb2c0b7982b165d58d06c336362a59e92Dav Glass
$(ROOTHDRDIR)/%: common/%
$(INS.file)
$(ROOTHDRDIR):
$(INS.dir)
check: $(CHECKHDRS)
FRC: