450 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
451 { print $0 } \
452 ' > $@
453
454 metad.h: metad.x
455 $(RPCGEN) $(RPCGENFLAGS) metad.x | \
456 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
457 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
458 { print $0 } \
459 ' > $@
460
461 mhdx.h: ../uts/common/sys/lvm/mhdx.x
462 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mhdx.x | \
463 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
464 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
465 { print $0 } \
466 ' > $@
467
468 mdiox.h: ../uts/common/sys/lvm/mdiox.x
469 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mdiox.x | \
470 nawk '{sub(/sys\/lvm\/md_mhdx/, "mhdx"); print $$0}' | \
471 nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
472 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
473 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
474 { print $0 } \
475 ' > $@
476
477 metamed.h: ../uts/common/sys/lvm/metamed.x
478 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/metamed.x | \
479 nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
480 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
481 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
482 { print $0 } \
483 ' > $@
484
485 metamhd.h: metamhd.x
486 $(RPCGEN) $(RPCGENFLAGS) metamhd.x | \
487 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
488 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
489 { print $0 } \
490 ' > $@
491
492 metacl.h: metacl.x
493 $(RPCGEN) $(RPCGENFLAGS) metacl.x | \
494 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
495 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
496 { print $0 } \
497 ' > $@
|
450 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
451 { print $0 } \
452 ' > $@
453
454 metad.h: metad.x
455 $(RPCGEN) $(RPCGENFLAGS) metad.x | \
456 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
457 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
458 { print $0 } \
459 ' > $@
460
461 mhdx.h: ../uts/common/sys/lvm/mhdx.x
462 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mhdx.x | \
463 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
464 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
465 { print $0 } \
466 ' > $@
467
468 mdiox.h: ../uts/common/sys/lvm/mdiox.x
469 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mdiox.x | \
470 /usr/xpg4/bin/awk '{sub(/sys\/lvm\/md_mhdx/, "mhdx"); print $$0}' | \
471 /usr/xpg4/bin/awk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
472 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
473 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
474 { print $0 } \
475 ' > $@
476
477 metamed.h: ../uts/common/sys/lvm/metamed.x
478 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/metamed.x | \
479 /usr/xpg4/bin/awk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
480 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
481 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
482 { print $0 } \
483 ' > $@
484
485 metamhd.h: metamhd.x
486 $(RPCGEN) $(RPCGENFLAGS) metamhd.x | \
487 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
488 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
489 { print $0 } \
490 ' > $@
491
492 metacl.h: metacl.x
493 $(RPCGEN) $(RPCGENFLAGS) metacl.x | \
494 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
495 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
496 { print $0 } \
497 ' > $@
|