xref: /illumos-gate/usr/src/lib/libdscp/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
125cf1a30Sjl139090#
225cf1a30Sjl139090# CDDL HEADER START
325cf1a30Sjl139090#
425cf1a30Sjl139090# The contents of this file are subject to the terms of the
525cf1a30Sjl139090# Common Development and Distribution License (the "License").
625cf1a30Sjl139090# You may not use this file except in compliance with the License.
725cf1a30Sjl139090#
825cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
925cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing.
1025cf1a30Sjl139090# See the License for the specific language governing permissions
1125cf1a30Sjl139090# and limitations under the License.
1225cf1a30Sjl139090#
1325cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each
1425cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1525cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the
1625cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying
1725cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner]
1825cf1a30Sjl139090#
1925cf1a30Sjl139090# CDDL HEADER END
2025cf1a30Sjl139090#
2125cf1a30Sjl139090#
2225cf1a30Sjl139090# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2325cf1a30Sjl139090# Use is subject to license terms.
2425cf1a30Sjl139090#
2525cf1a30Sjl139090
2625cf1a30Sjl139090include ../Makefile.lib
2725cf1a30Sjl139090
28f808c858SrafSUBDIRS=	sparc svc
2925cf1a30Sjl139090
3025cf1a30Sjl139090all	:= TARGET= all
3125cf1a30Sjl139090install	:= TARGET= install
3225cf1a30Sjl139090clean	:= TARGET= clean
3325cf1a30Sjl139090clobber	:= TARGET= clobber
3425cf1a30Sjl139090
3525cf1a30Sjl139090# definitions for install_h target
3625cf1a30Sjl139090HDRS=		libdscp.h
3725cf1a30Sjl139090ROOTHDRDIR=	$(ROOT)/usr/include
3825cf1a30Sjl139090ROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
3925cf1a30Sjl139090CHECKHDRS=	$(HDRS:%.h=%.check)
4025cf1a30Sjl139090
4125cf1a30Sjl139090.KEEP_STATE:
4225cf1a30Sjl139090
43*241c90a0SRichard Loweall install clean clobber: $(SUBDIRS)
4425cf1a30Sjl139090
4525cf1a30Sjl139090# install rule for install_h target
4625cf1a30Sjl139090
4725cf1a30Sjl139090$(ROOTHDRDIR)/%: %
4825cf1a30Sjl139090	$(INS.file)
4925cf1a30Sjl139090
5025cf1a30Sjl139090install_h: $(ROOTHDRS)
5125cf1a30Sjl139090
5225cf1a30Sjl139090check: $(CHECKHDRS)
5325cf1a30Sjl139090
54f808c858Sraf$(SUBDIRS): FRC
5525cf1a30Sjl139090	@cd $@; pwd; $(MAKE) $(TARGET)
5625cf1a30Sjl139090
5725cf1a30Sjl139090FRC:
58