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 (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 #
  26 # cmd/rpcsvc/Makefile
  27 
  28 PROTOCOL_DIR= $(ROOT)/usr/include/rpcsvc
  29 
  30 include ../Makefile.cmd
  31 
  32 SUBDIRS= rpc.bootparamd
  33 ETCFILES= rpc
  34 
  35 TXTS= $(ETCFILES:%=net_files/%)
  36 
  37 NETSVC= $(ROOTLIB)/netsvc
  38 NIS = $(NETSVC)/nis
  39 
  40 ROOTDIRS= \
  41                 $(NETSVC) \
  42                 $(NIS) \
  43 
  44 IETCFILES=              $(ETCFILES:%=$(ROOTETC)/%)
  45 
  46 # non-default file attributes
  47 $(ROOTETC)/rpc :=                               FILEMODE=       0644
  48 
  49 all:=           TARGET= all
  50 install:=       TARGET= install
  51 clean:=         TARGET= clean
  52 clobber:=       TARGET= clobber
  53 lint:=          TARGET= lint
  54 
  55 # install rules
  56 
  57 $(ROOTETC)/%: ./net_files/%
  58         $(INS.file)
  59 
  60 .KEEP_STATE:
  61 
  62 all: $(TXTS) $(SUBDIRS)
  63 
  64 install: $(TXTS) .WAIT $(ROOTDIRS) .WAIT $(IETCFILES) $(SUBDIRS)
  65 
  66 $(ROOTDIRS):
  67         $(INS.dir)
  68 
  69 $(SUBDIRS): FRC
  70         @cd $@; pwd; $(MAKE) $(TARGET)
  71 
  72 check:
  73 
  74 clean: $(SUBDIRS)
  75 
  76 clobber: $(SUBDIRS)
  77 
  78 lint:
  79 
  80 FRC:
  81 
  82 include ../Makefile.targ