xref: /titanic_44/usr/src/uts/common/ipp/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27#
28# uts/common/ipp/Makefile
29#	This makefile installs IPP framework and module header files
30#
31# include global definitions
32include ../../../Makefile.master
33
34HDRS =				\
35	ipp.h			\
36	ipp_impl.h		\
37	ippctl.h		\
38	ipp_config.h
39
40IPGPCHDRS =			\
41	ipgpc.h
42
43DSCPMKHDRS =			\
44	dscpmk.h
45
46DLCOSMKHDRS =			\
47	dlcosmk.h
48
49FLOWACCTHDRS =			\
50	flowacct.h
51
52METERSHDRS =			\
53	meter.h
54
55ipgpc/%.check:	ipgpc/%.h
56	$(DOT_H_CHECK)
57
58dscpmk/%.check:	dscpmk/%.h
59	$(DOT_H_CHECK)
60
61meters/%.check:	meters/%.h
62	$(DOT_H_CHECK)
63
64flowacct/%.check:flowacct/%.h
65	$(DOT_H_CHECK)
66
67dlcosmk/%.check:	dlcosmk/%.h
68	$(DOT_H_CHECK)
69
70CHECKHDRS =						\
71	$(HDRS:%.h=%.check)				\
72	$(IPGPCHDRS:%.h=ipgpc/%.check)			\
73	$(DSCPMKHDRS:%.h=dscpmk/%.check)		\
74	$(DLCOSMKHDRS:%.h=dlcosmk/%.check)		\
75	$(FLOWACCTHDRS:%.h=flowacct/%.check)		\
76	$(METERSHDRS:%.h=meters/%.check)
77
78ROOTDIR =	$(ROOT)/usr/include/ipp
79
80ROOTDIRS =						\
81	$(ROOTDIR)					\
82	$(ROOTDIR)/ipgpc				\
83	$(ROOTDIR)/dscpmk				\
84	$(ROOTDIR)/meters				\
85	$(ROOTDIR)/dlcosmk				\
86	$(ROOTDIR)/flowacct
87
88ROOTHDRS =	$(HDRS:%=$(ROOTDIR)/%)
89ROOTMODHDRS =	$(IPGPCHDRS:%=$(ROOTDIR)/ipgpc/%)	\
90		$(DSCPMKHDRS:%=$(ROOTDIR)/dscpmk/%)	\
91		$(DLCOSMKHDRS:%=$(ROOTDIR)/dlcosmk/%)	\
92		$(FLOWACCTHDRS:%=$(ROOTDIR)/flowacct/%)	\
93		$(METERSHDRS:%=$(ROOTDIR)/meters/%)
94
95$(ROOTDIR)/%:	%
96	$(INS.file)
97
98$(ROOTDIR)/flowacct/%:	flowacct/%
99	$(INS.file)
100
101$(ROOTDIR)/ipgpc/%:	ipgpc/%
102	$(INS.file)
103
104$(ROOTDIR)/dscpmk/%:	dscpmk/%
105	$(INS.file)
106
107$(ROOTDIR)/dlcosmk/%:	dlcosmk/%
108	$(INS.file)
109
110$(ROOTDIR)/meters/%:	meters/%
111	$(INS.file)
112
113.KEEP_STATE:
114
115.PARALLEL:			\
116	$(CHECKHDRS)		\
117	$(ROOTHDRS)
118
119install_h:			\
120	$(ROOTDIRS)		\
121	$(ROOTHDRS)		\
122	.WAIT			\
123	$(ROOTMODHDRS)
124
125$(ROOTDIRS):
126	$(INS.dir)
127
128check:	$(CHECKHDRS)
129
130