Makefile revision f808c858fa61e7769218966759510a8b1190dfcf
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# CDDL HEADER START
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# The contents of this file are subject to the terms of the
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# Common Development and Distribution License (the "License").
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# You may not use this file except in compliance with the License.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# or http://www.opensolaris.org/os/licensing.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# See the License for the specific language governing permissions
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# and limitations under the License.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# When distributing Covered Code, include this CDDL HEADER in each
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# If applicable, add the following below this CDDL HEADER, with the
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# fields enclosed by brackets "[]" replaced with your own identifying
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# information: Portions Copyright [yyyy] [name of copyright owner]
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# CDDL HEADER END
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# Use is subject to license terms.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# ident "%Z%%M% %I% %E% SMI"
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste#
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteinclude ../../Makefile.master
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoostePROTOCOL_DIR= $(ROOT)/usr/include/rpcsvc
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteSUBDIRS= $(MACH)
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste$(BUILD64)SUBDIRS += $(MACH64)
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteDERIVED_FILES= \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/bootparam_prot_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/rstat_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/rusers_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/spray_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/nlm_prot.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/sm_inter_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/mount_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/nsm_addr_xdr.c \
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste common/rpc_sztypes.c
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteCLEANFILES += $(DERIVED_FILES)
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# include library definitions
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteinclude ../Makefile.lib
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# definitions for install_h target
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteHDRS= $(TXTS)
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteROOTHDRDIR= $(ROOT)/usr/include/rpcsvc
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
62639ee1329be2d687701dfa01fc006314440bf7Jaco JoosteCHECKHDRS= $(HDRS:%.h=%.check)
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste# install rule for install_h target
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste$(ROOTHDRDIR)/%: %
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste $(INS.file)
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteall := TARGET= all
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteclean := TARGET= clean
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteclobber := TARGET= clobber
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteinstall := TARGET= install
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joostelint := TARGET= lint
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste.KEEP_STATE:
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteall: $(DERIVED_FILES) $(TXTS) .WAIT $(SUBDIRS)
install: all .WAIT $(SUBDIRS)
install_h: $(DERIVED_FILES) $(ROOTHDRS)
check: $(CHECKHDRS)
clean clobber lint: $(SUBDIRS)
#
# Rules for building the derived files
#
# Derived files
#
common/bootparam_prot_xdr.c: $(PROTOCOL_DIR)/bootparam_prot.x
$(RPCGEN) -c $(PROTOCOL_DIR)/bootparam_prot.x > $@
common/rstat_xdr.c: $(PROTOCOL_DIR)/rstat.x
$(RPCGEN) -c $(PROTOCOL_DIR)/rstat.x > $@
common/rusers_xdr.c: $(PROTOCOL_DIR)/rusers.x
$(RPCGEN) -c $(PROTOCOL_DIR)/rusers.x > $@
common/sm_inter_xdr.c: $(PROTOCOL_DIR)/sm_inter.x
$(RPCGEN) -c $(PROTOCOL_DIR)/sm_inter.x > $@
common/spray_xdr.c: $(PROTOCOL_DIR)/spray.x
$(RPCGEN) -c $(PROTOCOL_DIR)/spray.x > $@
common/nlm_prot.c: $(PROTOCOL_DIR)/nlm_prot.x
$(RPCGEN) -c $(PROTOCOL_DIR)/nlm_prot.x > $@
common/mount_xdr.c: $(PROTOCOL_DIR)/mount.x
$(RPCGEN) -c $(PROTOCOL_DIR)/mount.x > $@
common/nsm_addr_xdr.c: $(PROTOCOL_DIR)/nsm_addr.x
$(RPCGEN) -c $(PROTOCOL_DIR)/nsm_addr.x > $@
common/rpc_sztypes.c: $(PROTOCOL_DIR)/rpc_sztypes.x
$(RPCGEN) -c $(PROTOCOL_DIR)/rpc_sztypes.x > $@
# include library targets
include ../Makefile.targ
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: