2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A
2N/APROG = luxadm
2N/A
2N/ACOBJS = adm.o fchba.o lux_util.o fabric_conf.o
2N/AOBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
2N/AOBJS_i386 = x86_adm.o errormsgs.o
2N/AOBJS = $(OBJS_$(MACH)) $(COBJS)
2N/A
2N/ASRCS = $(OBJS:%.o=%.c)
2N/A
2N/APOFILES = $(OBJS:%.o=%.po)
2N/APOFILE = luxadm.po
2N/A
2N/Ainclude ../Makefile.cmd
2N/A
2N/ACERRWARN += -_gcc=-Wno-parentheses
2N/ACERRWARN += -_gcc=-Wno-uninitialized
2N/ACERRWARN += -_gcc=-Wno-unused-label
2N/ACERRWARN += -_gcc=-Wno-address
2N/A
2N/Asparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
2N/Ai386_LDLIBS =
2N/ALDLIBS += $($(MACH)_LDLIBS)
2N/ALDLIBS += -lnvpair
2N/ALDLIBS += -ldevice
2N/ALDLIBS += -lHBAAPI
2N/A
2N/AINCS += -I$(SRC)/lib/sun_fc/common
2N/A
2N/ACPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
2N/A
2N/ALINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
2N/ALINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
2N/ALINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
2N/ALINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
2N/ALINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
2N/ALINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_GETS
2N/ALINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
2N/A
2N/AROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
2N/A
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
GENCAT_PROG=a5k_g_fc_i18n_cat
GENMSG_LUX= $(PROG).msg
LUXFIRMWARED= $(ROOTLIB)/locale/C/LC_MESSAGES
LUXIBFIRMWARE_sparc= $(LUXFIRMWARED)/ibfirmware
LUXIBFIRMWARE= $(LUXIBFIRMWARE_$(MACH))
LUXGENCAT_PROG_sparc= $(LUXFIRMWARED)/$(GENCAT_PROG)
LUXGENCAT_PROG= $(LUXGENCAT_PROG_$(MACH))
$(LUXIBFIRMWARE):= FILEMODE= 0644
$(LUXGENCAT_PROG):= FILEMODE= 0644
$(LUXFIRMWARED):
$(INS.dir)
$(LUXIBFIRMWARE): $(LUXFIRMWARED) ibfirmware
$(INS.file) ibfirmware
$(GENMSG_LUX): $(SRCS)
/usr/bin/genmsg -d -p '$(COMPILE.cpp)' -o $@ $(SRCS)
$(GENCAT_PROG): $(GENMSG_LUX)
/usr/bin/gencat $@ $(GENMSG_LUX)
$(LUXGENCAT_PROG): $(LUXFIRMWARED) $(GENCAT_PROG)
$(INS.file) $(GENCAT_PROG)
install: all $(ROOTUSRSBINPROG) $(LUXIBFIRMWARE) $(LUXGENCAT_PROG)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
clean:
$(RM) $(OBJS) $(PROG) $(GENCAT_PROG) $(GENMSG_LUX)
lint: lint_SRCS
include ../Makefile.targ