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 \
46 rcm_script.o
47
48 COMMON_MOD_SRC = \
49 $(COMMON)/filesys_rcm.c \
50 $(COMMON)/dump_rcm.c \
51 $(COMMON)/swap_rcm.c \
52 $(COMMON)/network_rcm.c \
53 $(COMMON)/vlan_rcm.c \
54 $(COMMON)/vnic_rcm.c \
55 $(COMMON)/ibpart_rcm.c \
56 $(COMMON)/aggr_rcm.c \
57 $(COMMON)/ip_rcm.c \
58 $(COMMON)/cluster_rcm.c \
59 $(COMMON)/pool_rcm.c \
60 $(COMMON)/mpxio_rcm.c \
61 $(COMMON)/ip_anon_rcm.c \
62 $(COMMON)/bridge_rcm.c
63
64 sparc_MOD_SRC = $(COMMON)/ttymux_rcm.c
65
66 COMMON_PERL_SCRIPT_SRC =
67
68 sparc_PERL_SCRIPT_SRC = SUNW,vdevices.pl
69
70 COMMON_SHELL_SCRIPT_SRC = SUNW,ibsdpu.sh \
71 SUNW,rdsv3u.sh
72
73 COMMON_MOD_OBJ = \
74 filesys_rcm.o \
75 dump_rcm.o \
76 swap_rcm.o \
77 network_rcm.o \
78 vlan_rcm.o \
79 vnic_rcm.o \
80 ibpart_rcm.o \
81 aggr_rcm.o \
82 ip_rcm.o \
83 cluster_rcm.o \
84 pool_rcm.o \
85 mpxio_rcm.o \
86 ip_anon_rcm.o \
87 bridge_rcm.o
88
89 sparc_MOD_OBJ = ttymux_rcm.o
90
91 RCM_DAEMON = rcm_daemon
92
93 COMMON_RCM_MODS = \
94 SUNW_filesys_rcm.so \
95 SUNW_dump_rcm.so \
96 SUNW_swap_rcm.so \
97 SUNW_network_rcm.so \
98 SUNW_vlan_rcm.so \
99 SUNW_vnic_rcm.so \
100 SUNW_ibpart_rcm.so \
101 SUNW_aggr_rcm.so \
102 SUNW_ip_rcm.so \
103 SUNW_cluster_rcm.so \
104 SUNW_pool_rcm.so \
105 SUNW_mpxio_rcm.so \
106 SUNW_ip_anon_rcm.so \
107 SUNW_bridge_rcm.so
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
|
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 \
46 rcm_lock.o \
47 rcm_script.o
48
49 COMMON_MOD_SRC = \
50 $(COMMON)/filesys_rcm.c \
51 $(COMMON)/dump_rcm.c \
52 $(COMMON)/swap_rcm.c \
53 $(COMMON)/network_rcm.c \
54 $(COMMON)/vlan_rcm.c \
55 $(COMMON)/vnic_rcm.c \
56 $(COMMON)/ibpart_rcm.c \
57 $(COMMON)/aggr_rcm.c \
58 $(COMMON)/ip_rcm.c \
59 $(COMMON)/cluster_rcm.c \
60 $(COMMON)/pool_rcm.c \
61 $(COMMON)/mpxio_rcm.c \
62 $(COMMON)/ip_anon_rcm.c \
63 $(COMMON)/bridge_rcm.c
64
65 COMMON_PERL_SCRIPT_SRC =
66
67 sparc_PERL_SCRIPT_SRC = SUNW,vdevices.pl
68
69 COMMON_SHELL_SCRIPT_SRC = SUNW,ibsdpu.sh \
70 SUNW,rdsv3u.sh
71
72 COMMON_MOD_OBJ = \
73 filesys_rcm.o \
74 dump_rcm.o \
75 swap_rcm.o \
76 network_rcm.o \
77 vlan_rcm.o \
78 vnic_rcm.o \
79 ibpart_rcm.o \
80 aggr_rcm.o \
81 ip_rcm.o \
82 cluster_rcm.o \
83 pool_rcm.o \
84 mpxio_rcm.o \
85 ip_anon_rcm.o \
86 bridge_rcm.o
87
88 RCM_DAEMON = rcm_daemon
89
90 COMMON_RCM_MODS = \
91 SUNW_filesys_rcm.so \
92 SUNW_dump_rcm.so \
93 SUNW_swap_rcm.so \
94 SUNW_network_rcm.so \
95 SUNW_vlan_rcm.so \
96 SUNW_vnic_rcm.so \
97 SUNW_ibpart_rcm.so \
98 SUNW_aggr_rcm.so \
99 SUNW_ip_rcm.so \
100 SUNW_cluster_rcm.so \
101 SUNW_pool_rcm.so \
102 SUNW_mpxio_rcm.so \
103 SUNW_ip_anon_rcm.so \
104 SUNW_bridge_rcm.so
105
106 RCM_DIR = rcm
107 MOD_DIR = modules
108 SCRIPT_DIR = scripts
109
110 CLOBBERFILES += $(COMMON_RCM_MODS) $($(MACH)_RCM_MODS) $(RCM_DAEMON)
111
112 LINT_MODULES = $(COMMON_MOD_SRC:.c=.ln) $($(MACH)_MOD_SRC:.c=.ln)
113
114 CPPFLAGS += -I..
115 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
116 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
117
118 CERRWARN += -_gcc=-Wno-parentheses
119 CERRWARN += -_gcc=-Wno-unused-label
120 CERRWARN += -_gcc=-Wno-uninitialized
121 CERRWARN += -_gcc=-Wno-unused-function
122
123 # not linted
124 SMATCH=off
125
|