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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
26 PROG = luxadm
27
28 COBJS = adm.o fchba.o lux_util.o fabric_conf.o
29 OBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
30 OBJS_i386 = x86_adm.o errormsgs.o
31 OBJS = $(OBJS_$(MACH)) $(COBJS)
32
33 SRCS = $(OBJS:%.o=%.c)
34
35 POFILES = $(OBJS:%.o=%.po)
36 POFILE = luxadm.po
37
38 include ../Makefile.cmd
39
40 CERRWARN += -_gcc=-Wno-parentheses
41 CERRWARN += -_gcc=-Wno-uninitialized
42 CERRWARN += -_gcc=-Wno-unused-label
43 CERRWARN += -_gcc=-Wno-address
44
45 sparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
46 i386_LDLIBS =
47 LDLIBS += $($(MACH)_LDLIBS)
48 LDLIBS += -lnvpair
49 LDLIBS += -ldevice
50 LDLIBS += -lHBAAPI
51
52 INCS += -I$(SRC)/lib/sun_fc/common
53
54 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
55
56 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
57 LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
58 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
59 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
60 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
61 LINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_GETS
62 LINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
63
64 ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
|
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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 PROG = luxadm
28
29 COBJS = adm.o fchba.o lux_util.o fabric_conf.o
30 OBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
31 OBJS_i386 = x86_adm.o errormsgs.o
32 OBJS = $(OBJS_$(MACH)) $(COBJS)
33
34 SRCS = $(OBJS:%.o=%.c)
35
36 POFILES = $(OBJS:%.o=%.po)
37 POFILE = luxadm.po
38
39 include ../Makefile.cmd
40
41 CERRWARN += -_gcc=-Wno-parentheses
42 CERRWARN += -_gcc=-Wno-uninitialized
43 CERRWARN += -_gcc=-Wno-unused-label
44 CERRWARN += -_gcc=-Wno-address
45
46 # not linted
47 SMATCH=off
48
49 sparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
50 i386_LDLIBS =
51 LDLIBS += $($(MACH)_LDLIBS)
52 LDLIBS += -lnvpair
53 LDLIBS += -ldevice
54 LDLIBS += -lHBAAPI
55
56 INCS += -I$(SRC)/lib/sun_fc/common
57
58 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
59
60 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
61 LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
62 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
63 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
64 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
65 LINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_GETS
66 LINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
67
68 ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
|