xref: /onnv-gate/usr/src/uts/common/fs/Makefile (revision 10793:34709091de6d)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*10793Sdai.ngo@sun.com# Common Development and Distribution License (the "License").
6*10793Sdai.ngo@sun.com# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*10793Sdai.ngo@sun.com# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22*10793Sdai.ngo@sun.com# Use is subject to license terms.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate# uts/common/fs/Makefile
250Sstevel@tonic-gate#
260Sstevel@tonic-gate# include global definitions
270Sstevel@tonic-gateinclude ../../../Makefile.master
280Sstevel@tonic-gate
29*10793Sdai.ngo@sun.comHDRS=  fs_subr.h  \
30*10793Sdai.ngo@sun.com	fs_reparse.h
310Sstevel@tonic-gate
320Sstevel@tonic-gatePROCHDRS=   prdata.h
330Sstevel@tonic-gate
340Sstevel@tonic-gateROOTDIR=	$(ROOT)/usr/include/sys
350Sstevel@tonic-gateROOTDIRS=	$(ROOTDIR) $(ROOTDIR)/proc
360Sstevel@tonic-gate
370Sstevel@tonic-gateROOTHDRS=	$(HDRS:%=$(ROOTDIR)/%)
380Sstevel@tonic-gateROOTPROCHDRS=	$(PROCHDRS:%=$(ROOTDIR)/proc/%)
390Sstevel@tonic-gate
400Sstevel@tonic-gate# install rules
410Sstevel@tonic-gate$(ROOTDIR)/%: %
420Sstevel@tonic-gate	$(INS.file)
430Sstevel@tonic-gate
440Sstevel@tonic-gate$(ROOTDIR)/proc/%: proc/%
450Sstevel@tonic-gate	$(INS.file)
460Sstevel@tonic-gate
470Sstevel@tonic-gate# standards checking rules
480Sstevel@tonic-gateproc/%.check:      proc/%.h
490Sstevel@tonic-gate	$(DOT_H_CHECK)
500Sstevel@tonic-gate
510Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check)  \
520Sstevel@tonic-gate	$(PROCHDRS:%.h=proc/%.check)
530Sstevel@tonic-gate
540Sstevel@tonic-gate.KEEP_STATE:
550Sstevel@tonic-gate
560Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS)
570Sstevel@tonic-gate
580Sstevel@tonic-gateinstall_h: $(ROOTDIRS) $(ROOTHDRS) $(ROOTPROCHDRS)
590Sstevel@tonic-gate
600Sstevel@tonic-gate$(ROOTDIRS):
610Sstevel@tonic-gate	$(INS.dir)
620Sstevel@tonic-gate
630Sstevel@tonic-gatecheck:	$(CHECKHDRS)
64