Print this page
12312 fix unused lib dependencies


   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 #
  23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 Nexenta Systems, Inc.
  25 # Copyright (c) 2018, Joyent, Inc.
  26 # Copyright 2019 Peter Tribble.
  27 #
  28 
  29 include ../../Makefile.cmd
  30 
  31 COMMON = ../common
  32 
  33 RCM_SRC = \
  34         $(COMMON)/rcm_event.c \
  35         $(COMMON)/rcm_main.c \
  36         $(COMMON)/rcm_impl.c \
  37         $(COMMON)/rcm_subr.c \
  38         $(COMMON)/rcm_lock.c \
  39         $(COMMON)/rcm_script.c
  40 
  41 RCM_OBJ = \
  42         rcm_event.o \
  43         rcm_main.o \
  44         rcm_impl.o \
  45         rcm_subr.o \


 120 
 121 # not linted
 122 SMATCH=off
 123 
 124 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
 125 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
 126 
 127 LDLIBS_MODULES =
 128 SUNW_pool_rcm.so := LDLIBS_MODULES += -L$(ROOT)/usr/lib -lpool -lnvpair
 129 SUNW_network_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair -ldevinfo
 130 SUNW_vlan_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 131 SUNW_vnic_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 132 SUNW_ibpart_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 133 SUNW_aggr_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 134 SUNW_ip_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil -ldladm -lipmp -lipadm -lnvpair -lsocket -lgen
 135 SUNW_ip_anon_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil
 136 SUNW_bridge_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 137 SUNW_mpxio_rcm.so := LDLIBS_MODULES += -ldevinfo
 138 LDLIBS_MODULES += -L$(ROOT)/lib -lrcm -lc
 139 
 140 LDLIBS += -lgen -lelf -lrcm -lnvpair -ldevinfo -lnsl -lsocket
 141 
 142 SRCS = $(RCM_SRC) $(COMMON_MOD_SRC)
 143 
 144 POFILES = $(SRCS:.c=.po)
 145 POFILE = prcm_daemon.po
 146 
 147 PERL_SCRIPTS = $(COMMON_PERL_SRC) $($(MACH)_PERL_SCRIPT_SRC)
 148 SHELL_SCRIPTS = $(COMMON_SHELL_SCRIPT_SRC)
 149 RCM_SCRIPTS = $(PERL_SCRIPTS) $(SHELL_SCRIPTS)
 150 
 151 # install specifics
 152 
 153 ROOTLIB_RCM = $(ROOTLIB)/$(RCM_DIR)
 154 ROOTLIB_RCM_MOD = $(ROOTLIB_RCM)/$(MOD_DIR)
 155 ROOTLIB_RCM_DAEMON = $(RCM_DAEMON:%=$(ROOTLIB_RCM)/%)
 156 ROOTLIB_RCM_MODULES = $(COMMON_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%) \
 157                         $($(MACH)_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%)
 158 ROOTLIB_RCM_SCRIPT = $(ROOTLIB_RCM)/$(SCRIPT_DIR)
 159 ROOTLIB_RCM_SCRIPTS = $(RCM_SCRIPTS:%=$(ROOTLIB_RCM_SCRIPT)/%)
 160 ROOTETC_RCM = $(ROOTETC)/$(RCM_DIR)




   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 #
  23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 Nexenta Systems, Inc.
  25 # Copyright 2020 Joyent, Inc.
  26 # Copyright 2019 Peter Tribble.
  27 #
  28 
  29 include ../../Makefile.cmd
  30 
  31 COMMON = ../common
  32 
  33 RCM_SRC = \
  34         $(COMMON)/rcm_event.c \
  35         $(COMMON)/rcm_main.c \
  36         $(COMMON)/rcm_impl.c \
  37         $(COMMON)/rcm_subr.c \
  38         $(COMMON)/rcm_lock.c \
  39         $(COMMON)/rcm_script.c
  40 
  41 RCM_OBJ = \
  42         rcm_event.o \
  43         rcm_main.o \
  44         rcm_impl.o \
  45         rcm_subr.o \


 120 
 121 # not linted
 122 SMATCH=off
 123 
 124 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
 125 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
 126 
 127 LDLIBS_MODULES =
 128 SUNW_pool_rcm.so := LDLIBS_MODULES += -L$(ROOT)/usr/lib -lpool -lnvpair
 129 SUNW_network_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair -ldevinfo
 130 SUNW_vlan_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 131 SUNW_vnic_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 132 SUNW_ibpart_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 133 SUNW_aggr_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 134 SUNW_ip_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil -ldladm -lipmp -lipadm -lnvpair -lsocket -lgen
 135 SUNW_ip_anon_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil
 136 SUNW_bridge_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm -lnvpair
 137 SUNW_mpxio_rcm.so := LDLIBS_MODULES += -ldevinfo
 138 LDLIBS_MODULES += -L$(ROOT)/lib -lrcm -lc
 139 
 140 LDLIBS += -lrcm -lnvpair
 141 
 142 SRCS = $(RCM_SRC) $(COMMON_MOD_SRC)
 143 
 144 POFILES = $(SRCS:.c=.po)
 145 POFILE = prcm_daemon.po
 146 
 147 PERL_SCRIPTS = $(COMMON_PERL_SRC) $($(MACH)_PERL_SCRIPT_SRC)
 148 SHELL_SCRIPTS = $(COMMON_SHELL_SCRIPT_SRC)
 149 RCM_SCRIPTS = $(PERL_SCRIPTS) $(SHELL_SCRIPTS)
 150 
 151 # install specifics
 152 
 153 ROOTLIB_RCM = $(ROOTLIB)/$(RCM_DIR)
 154 ROOTLIB_RCM_MOD = $(ROOTLIB_RCM)/$(MOD_DIR)
 155 ROOTLIB_RCM_DAEMON = $(RCM_DAEMON:%=$(ROOTLIB_RCM)/%)
 156 ROOTLIB_RCM_MODULES = $(COMMON_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%) \
 157                         $($(MACH)_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%)
 158 ROOTLIB_RCM_SCRIPT = $(ROOTLIB_RCM)/$(SCRIPT_DIR)
 159 ROOTLIB_RCM_SCRIPTS = $(RCM_SCRIPTS:%=$(ROOTLIB_RCM_SCRIPT)/%)
 160 ROOTETC_RCM = $(ROOTETC)/$(RCM_DIR)