112 SCRIPT_DIR = scripts
113
114 CLOBBERFILES += $(COMMON_RCM_MODS) $($(MACH)_RCM_MODS) $(RCM_DAEMON)
115
116 LINT_MODULES = $(COMMON_MOD_SRC:.c=.ln) $($(MACH)_MOD_SRC:.c=.ln)
117
118 CPPFLAGS += -I..
119 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
120 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
121
122 CERRWARN += -_gcc=-Wno-parentheses
123 CERRWARN += -_gcc=-Wno-unused-label
124 CERRWARN += -_gcc=-Wno-uninitialized
125 CERRWARN += -_gcc=-Wno-unused-function
126
127 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
128 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
129
130 LINTFLAGS += -u -erroff=E_FUNC_ARG_UNUSED
131
132 LDLIBS_MODULES =
133 SUNW_pool_rcm.so := LDLIBS_MODULES += -L$(ROOT)/usr/lib -lpool
134 SUNW_network_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
135 SUNW_vlan_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
136 SUNW_vnic_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
137 SUNW_ibpart_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
138 SUNW_aggr_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
139 SUNW_ip_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil -ldladm -lipmp -lipadm
140 SUNW_ip_anon_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil
141 SUNW_bridge_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
142
143 LDLIBS += -lgen -lelf -lrcm -lnvpair -ldevinfo -lnsl -lsocket
144
145 SRCS = $(RCM_SRC) $(COMMON_MOD_SRC)
146
147 POFILES = $(SRCS:.c=.po)
148 POFILE = prcm_daemon.po
149
150 PERL_SCRIPTS = $(COMMON_PERL_SRC) $($(MACH)_PERL_SCRIPT_SRC)
151 SHELL_SCRIPTS = $(COMMON_SHELL_SCRIPT_SRC)
152 RCM_SCRIPTS = $(PERL_SCRIPTS) $(SHELL_SCRIPTS)
153
154 # install specifics
155
156 ROOTLIB_RCM = $(ROOTLIB)/$(RCM_DIR)
157 ROOTLIB_RCM_MOD = $(ROOTLIB_RCM)/$(MOD_DIR)
158 ROOTLIB_RCM_DAEMON = $(RCM_DAEMON:%=$(ROOTLIB_RCM)/%)
159 ROOTLIB_RCM_MODULES = $(COMMON_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%) \
160 $($(MACH)_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%)
161 ROOTLIB_RCM_SCRIPT = $(ROOTLIB_RCM)/$(SCRIPT_DIR)
162 ROOTLIB_RCM_SCRIPTS = $(RCM_SCRIPTS:%=$(ROOTLIB_RCM_SCRIPT)/%)
163 ROOTETC_RCM = $(ROOTETC)/$(RCM_DIR)
|
112 SCRIPT_DIR = scripts
113
114 CLOBBERFILES += $(COMMON_RCM_MODS) $($(MACH)_RCM_MODS) $(RCM_DAEMON)
115
116 LINT_MODULES = $(COMMON_MOD_SRC:.c=.ln) $($(MACH)_MOD_SRC:.c=.ln)
117
118 CPPFLAGS += -I..
119 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
120 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
121
122 CERRWARN += -_gcc=-Wno-parentheses
123 CERRWARN += -_gcc=-Wno-unused-label
124 CERRWARN += -_gcc=-Wno-uninitialized
125 CERRWARN += -_gcc=-Wno-unused-function
126
127 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
128 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
129
130 LINTFLAGS += -u -erroff=E_FUNC_ARG_UNUSED
131
132 #
133 # All of the module plugins leverage the LDLIBS_MODULES, but not LDLIBS. As such
134 # we define a base set for all modules that we know they need due to -zguidance
135 # and only append extra libraries that individual modules need.
136 #
137 LDLIBS_MODULES = -L$(ROOT)/lib -L$(ROOT)/usr/lib -lc -lrcm
138 SUNW_pool_rcm.so := LDLIBS_MODULES += -lpool -lnvpair
139 SUNW_svm_rcm.so := LDLIBS_MODULES += -lmeta
140 SUNW_network_rcm.so := LDLIBS_MODULES += -ldladm -lnvpair -ldevinfo
141 SUNW_vlan_rcm.so := LDLIBS_MODULES += -ldladm -lnvpair
142 SUNW_vnic_rcm.so := LDLIBS_MODULES += -ldladm -lnvpair
143 SUNW_ibpart_rcm.so := LDLIBS_MODULES += -ldladm -lnvpair
144 SUNW_aggr_rcm.so := LDLIBS_MODULES += -ldladm -lnvpair
145 SUNW_ip_rcm.so := LDLIBS_MODULES += -linetutil -ldladm -lipmp -lipadm -lnvpair \
146 -lgen -lsocket
147 SUNW_ip_anon_rcm.so := LDLIBS_MODULES += -linetutil -lnsl
148 SUNW_bridge_rcm.so := LDLIBS_MODULES += -ldladm -lnvpair
149 SUNW_mpxio_rcm.so := LDLIBS_MODULES += -ldevinfo
150
151 LDLIBS += -lrcm -lnvpair
152
153 SRCS = $(RCM_SRC) $(COMMON_MOD_SRC)
154
155 POFILES = $(SRCS:.c=.po)
156 POFILE = prcm_daemon.po
157
158 PERL_SCRIPTS = $(COMMON_PERL_SRC) $($(MACH)_PERL_SCRIPT_SRC)
159 SHELL_SCRIPTS = $(COMMON_SHELL_SCRIPT_SRC)
160 RCM_SCRIPTS = $(PERL_SCRIPTS) $(SHELL_SCRIPTS)
161
162 # install specifics
163
164 ROOTLIB_RCM = $(ROOTLIB)/$(RCM_DIR)
165 ROOTLIB_RCM_MOD = $(ROOTLIB_RCM)/$(MOD_DIR)
166 ROOTLIB_RCM_DAEMON = $(RCM_DAEMON:%=$(ROOTLIB_RCM)/%)
167 ROOTLIB_RCM_MODULES = $(COMMON_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%) \
168 $($(MACH)_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%)
169 ROOTLIB_RCM_SCRIPT = $(ROOTLIB_RCM)/$(SCRIPT_DIR)
170 ROOTLIB_RCM_SCRIPTS = $(RCM_SCRIPTS:%=$(ROOTLIB_RCM_SCRIPT)/%)
171 ROOTETC_RCM = $(ROOTETC)/$(RCM_DIR)
|