fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePROG = luxadm
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOBJS = adm.o fchba.o lux_util.o fabric_conf.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS_i386 = x86_adm.o errormsgs.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS = $(OBJS_$(MACH)) $(COBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS = $(OBJS:%.o=%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePOFILES = $(OBJS:%.o=%.po)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePOFILE = luxadm.po
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.cmd
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-address
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortei386_LDLIBS =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDLIBS += $($(MACH)_LDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDLIBS += -lnvpair
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDLIBS += -ldevice
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDLIBS += -lHBAAPI
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINCS += -I$(SRC)/lib/sun_fc/common
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_GETS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(PROG): $(OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENCAT_PROG=a5k_g_fc_i18n_cat
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENMSG_LUX= $(PROG).msg
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLUXFIRMWARED= $(ROOTLIB)/locale/C/LC_MESSAGES
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLUXIBFIRMWARE_sparc= $(LUXFIRMWARED)/ibfirmware
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLUXIBFIRMWARE= $(LUXIBFIRMWARE_$(MACH))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLUXGENCAT_PROG_sparc= $(LUXFIRMWARED)/$(GENCAT_PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLUXGENCAT_PROG= $(LUXGENCAT_PROG_$(MACH))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LUXIBFIRMWARE):= FILEMODE= 0644
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LUXGENCAT_PROG):= FILEMODE= 0644
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LUXFIRMWARED):
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.dir)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LUXIBFIRMWARE): $(LUXFIRMWARED) ibfirmware
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.file) ibfirmware
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(GENMSG_LUX): $(SRCS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /usr/bin/genmsg -d -p '$(COMPILE.cpp)' -o $@ $(SRCS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(GENCAT_PROG): $(GENMSG_LUX)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /usr/bin/gencat $@ $(GENMSG_LUX)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LUXGENCAT_PROG): $(LUXFIRMWARED) $(GENCAT_PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.file) $(GENCAT_PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: all $(ROOTUSRSBINPROG) $(LUXIBFIRMWARE) $(LUXGENCAT_PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(POFILE): $(POFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CAT) $(POFILES) > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(OBJS) $(PROG) $(GENCAT_PROG) $(GENMSG_LUX)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: lint_SRCS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.targ