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 #
26
27 include ../../Makefile.cmd
28
29 COMMON = ../common
30
31 RCM_SRC = \
32 $(COMMON)/rcm_event.c \
33 $(COMMON)/rcm_main.c \
34 $(COMMON)/rcm_impl.c \
35 $(COMMON)/rcm_subr.c \
36 $(COMMON)/rcm_lock.c \
37 $(COMMON)/rcm_script.c
38
39 RCM_OBJ = \
40 rcm_event.o \
41 rcm_main.o \
42 rcm_impl.o \
43 rcm_subr.o \
44 rcm_lock.o \
107
108 sparc_RCM_MODS = SUNW_ttymux_rcm.so
109
110 RCM_DIR = rcm
111 MOD_DIR = modules
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
|
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 #
27
28 include ../../Makefile.cmd
29
30 COMMON = ../common
31
32 RCM_SRC = \
33 $(COMMON)/rcm_event.c \
34 $(COMMON)/rcm_main.c \
35 $(COMMON)/rcm_impl.c \
36 $(COMMON)/rcm_subr.c \
37 $(COMMON)/rcm_lock.c \
38 $(COMMON)/rcm_script.c
39
40 RCM_OBJ = \
41 rcm_event.o \
42 rcm_main.o \
43 rcm_impl.o \
44 rcm_subr.o \
45 rcm_lock.o \
108
109 sparc_RCM_MODS = SUNW_ttymux_rcm.so
110
111 RCM_DIR = rcm
112 MOD_DIR = modules
113 SCRIPT_DIR = scripts
114
115 CLOBBERFILES += $(COMMON_RCM_MODS) $($(MACH)_RCM_MODS) $(RCM_DAEMON)
116
117 LINT_MODULES = $(COMMON_MOD_SRC:.c=.ln) $($(MACH)_MOD_SRC:.c=.ln)
118
119 CPPFLAGS += -I..
120 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
121 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
122
123 CERRWARN += -_gcc=-Wno-parentheses
124 CERRWARN += -_gcc=-Wno-unused-label
125 CERRWARN += -_gcc=-Wno-uninitialized
126 CERRWARN += -_gcc=-Wno-unused-function
127
128 # not linted
129 SMATCH=off
130
131 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
132 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
133
134 LINTFLAGS += -u -erroff=E_FUNC_ARG_UNUSED
135
136 LDLIBS_MODULES =
137 SUNW_pool_rcm.so := LDLIBS_MODULES += -L$(ROOT)/usr/lib -lpool
138 SUNW_network_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
139 SUNW_vlan_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
140 SUNW_vnic_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
141 SUNW_ibpart_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
142 SUNW_aggr_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
143 SUNW_ip_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil -ldladm -lipmp -lipadm
144 SUNW_ip_anon_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil
145 SUNW_bridge_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
146
147 LDLIBS += -lgen -lelf -lrcm -lnvpair -ldevinfo -lnsl -lsocket
148
149 SRCS = $(RCM_SRC) $(COMMON_MOD_SRC)
150
|