Makefile revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER START
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# The contents of this file are subject to the terms of the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Common Development and Distribution License (the "License").
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You may not use this file except in compliance with the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# or http://www.opensolaris.org/os/licensing.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# See the License for the specific language governing permissions
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# and limitations under the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# When distributing Covered Code, include this CDDL HEADER in each
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If applicable, add the following below this CDDL HEADER, with the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# fields enclosed by brackets "[]" replaced with your own identifying
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER END
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Use is subject to license terms.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesPROG = luxadm
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOBJS = adm.o fchba.o lux_util.o fabric_conf.o
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesOBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesOBJS_i386 = x86_adm.o errormsgs.o
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesOBJS = $(OBJS_$(MACH)) $(COBJS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesSRCS = $(OBJS:%.o=%.c)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesPOFILES = $(OBJS:%.o=%.po)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesPOFILE = luxadm.po
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../Makefile.cmd
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholessparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesi386_LDLIBS =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLDLIBS += $($(MACH)_LDLIBS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLDLIBS += -lnvpair
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLDLIBS += -ldevice
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLDLIBS += -lHBAAPI
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesINCS += -I$(SRC)/lib/sun_fc/common
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_GETS
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes.KEEP_STATE:
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesall: $(PROG)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(PROG): $(OBJS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(POST_PROCESS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesGENCAT_PROG=a5k_g_fc_i18n_cat
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesGENMSG_LUX= $(PROG).msg
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLUXFIRMWARED= $(ROOTLIB)/locale/C/LC_MESSAGES
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLUXIBFIRMWARE_sparc= $(LUXFIRMWARED)/ibfirmware
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgLUXIBFIRMWARE= $(LUXIBFIRMWARE_$(MACH))
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLUXGENCAT_PROG_sparc= $(LUXFIRMWARED)/$(GENCAT_PROG)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLUXGENCAT_PROG= $(LUXGENCAT_PROG_$(MACH))
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(LUXIBFIRMWARE):= FILEMODE= 0644
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(LUXGENCAT_PROG):= FILEMODE= 0644
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(LUXFIRMWARED):
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(INS.dir)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(LUXIBFIRMWARE): $(LUXFIRMWARED) ibfirmware
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(INS.file) ibfirmware
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(GENMSG_LUX): $(SRCS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes /usr/bin/genmsg -d -p '$(COMPILE.cpp)' -o $@ $(SRCS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(GENCAT_PROG): $(GENMSG_LUX)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes /usr/bin/gencat $@ $(GENMSG_LUX)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(LUXGENCAT_PROG): $(LUXFIRMWARED) $(GENCAT_PROG)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(INS.file) $(GENCAT_PROG)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall: all $(ROOTUSRSBINPROG) $(LUXIBFIRMWARE) $(LUXGENCAT_PROG)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(POFILE): $(POFILES)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) $@
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(CAT) $(POFILES) > $@
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclean:
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes $(RM) $(OBJS) $(PROG) $(GENCAT_PROG) $(GENMSG_LUX)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeslint: lint_SRCS
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../Makefile.targ
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes