Print this page
    
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/cmd/cmd-inet/lib/ipmgmtd/Makefile
          +++ new/usr/src/cmd/cmd-inet/lib/ipmgmtd/Makefile
   1    1  #
   2    2  # CDDL HEADER START
   3    3  #
   4    4  # The contents of this file are subject to the terms of the
   5    5  # Common Development and Distribution License (the "License").
   6    6  # You may not use this file except in compliance with the License.
   7    7  #
   8    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9  # or http://www.opensolaris.org/os/licensing.
  10   10  # See the License for the specific language governing permissions
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  22   22  # Copyright 2015 Joyent, Inc.
  23   23  #
  24   24  
  25   25  # Needed for ROOTFS_LIBDIR definition
  26   26  include         ../../../../lib/Makefile.lib
  27   27  
  28   28  PROG=           ipmgmtd
  29   29  OBJS=           ipmgmt_main.o ipmgmt_door.o ipmgmt_persist.o ipmgmt_util.o \
  30   30                  ipmgmt_path.o
  31   31  SRCS=           $(OBJS:.o=.c)
  32   32  SVCMETHOD=      net-ipmgmt
  33   33  MANIFEST=       network-ipmgmt.xml
  34   34  CFGFILES=       ipadm.conf
  35   35  
  36   36  # Needed for ROOTETC definition
  37   37  include         ../../../Makefile.cmd
  38   38  
  39   39  ROOTCFGDIR=             $(ROOTETC)/ipadm
  40   40  ROOTCFGFILES=           $(CFGFILES:%=$(ROOTCFGDIR)/%)
  41   41  ROOTMANIFESTDIR=        $(ROOTSVCNETWORK)
  42   42  
  43   43  CERRWARN += -_gcc=-Wno-switch
  44   44  CERRWARN += -_gcc=-Wno-uninitialized
  45   45  
  46   46  $(ROOTCFGFILES) := OWNER= ipadm
  47   47  $(ROOTCFGFILES) := GROUP= sys
  48   48  $(ROOTCFGFILES) := FILEMODE= 644
  49   49  
  50   50  ROOTCMDDIR=     $(ROOTFS_LIBDIR)/inet
  51   51  
  52   52  LDLIBS += -lipadm -lnvpair -lsecdb -lnsl -lumem -lscf
  53   53  
  54   54  #
  55   55  # Instrument ipmgmtd with CTF data to ease debugging.
  56   56  #
  57   57  CTFCONVERT_HOOK = && $(CTFCONVERT_O)
  58   58  CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
  59   59  $(OBJS) := CFLAGS += $(CTF_FLAGS)
  60   60  
  61   61  .KEEP_STATE:
  62   62  
  63   63  .PARALLEL:
  64   64  
  65   65  all: $(PROG)
  66   66  
  67   67  $(PROG): $(OBJS)
  68   68          $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
  69   69          $(POST_PROCESS)
  70   70  
  71   71  install: $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD) $(ROOTCFGDIR) \
  72   72          $(ROOTCFGFILES)
  73   73  
  74   74  check:  $(SRCS) $(HEADERS) $(CHKMANIFEST)
  75   75          $(CSTYLE) -cpP $(SRCS) $(HEADERS)
  76   76  
  77   77  $(ROOTCMD): $(PROG)
  78   78  
  79   79  clean:
  80   80          $(RM) $(OBJS)
  81   81  
  82   82  lint:   lint_SRCS
  83   83  
  84   84  $(ROOTCFGDIR):
  85   85          $(INS.dir)
  86   86  
  87   87  $(ROOTCFGDIR)/%: $(ROOTCFGDIR) %
  88   88          $(INS.file)
  89   89  
  90   90  include         ../../../Makefile.targ
  
    | 
      ↓ open down ↓ | 
    90 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX