Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# CDDL HEADER START
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License, Version 1.0 only
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# (the "License"). You may not use this file except in compliance
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# or http://www.opensolaris.org/os/licensing.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# See the License for the specific language governing permissions
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder# and limitations under the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# information: Portions Copyright [yyyy] [name of copyright owner]
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# CDDL HEADER END
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
01e383014b555bbcf639c0ca60c5810b3eff83c0Christian Maeder# Use is subject to license terms.
9dac90ec2be2a72e03893095461960d483fe2fc2Christian Maeder#pragma ident "%Z%%M% %I% %E% SMI"
5e5d3e82af3bc2834f8718a52d9f45da80220273Dominik Luecke# This makefile derive some .h files via rpcgen
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# architecture independent
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederdef all install lint modlintlib clean.lint: $(DERIVED_FILES)
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder $(RPCGEN) $(RPCGENFLAGS) -h meta_basic.x | \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder { print $0 } \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maeder { print $0 } \
2c9df69accd8924e7cef3bf8f686626958499c7aChristian Maeder awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
c2fcc35abb03cf0b4ca4b050efeb10827f38c322Christian Maeder /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder { print $0 } \
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
0206ab93ef846e4e0885996d052b9b73b9dc66b0Christian Maeder /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
f13d1e86e58da53680e78043e8df182eed867efbChristian Maeder { print $0 } \