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
|
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 += $(CNOWARN_UNINIT)
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
|