15a7763bfSjmcp# 25a7763bfSjmcp# CDDL HEADER START 35a7763bfSjmcp# 45a7763bfSjmcp# The contents of this file are subject to the terms of the 55a7763bfSjmcp# Common Development and Distribution License (the "License"). 65a7763bfSjmcp# You may not use this file except in compliance with the License. 75a7763bfSjmcp# 85a7763bfSjmcp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95a7763bfSjmcp# or http://www.opensolaris.org/os/licensing. 105a7763bfSjmcp# See the License for the specific language governing permissions 115a7763bfSjmcp# and limitations under the License. 125a7763bfSjmcp# 135a7763bfSjmcp# When distributing Covered Code, include this CDDL HEADER in each 145a7763bfSjmcp# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155a7763bfSjmcp# If applicable, add the following below this CDDL HEADER, with the 165a7763bfSjmcp# fields enclosed by brackets "[]" replaced with your own identifying 175a7763bfSjmcp# information: Portions Copyright [yyyy] [name of copyright owner] 185a7763bfSjmcp# 195a7763bfSjmcp# CDDL HEADER END 205a7763bfSjmcp# 214196e263SSherry Moore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 225a7763bfSjmcp# Use is subject to license terms. 235a7763bfSjmcp# 245a7763bfSjmcp# cmd/fwflash/Makefile.com 255a7763bfSjmcp# 265a7763bfSjmcp# 275a7763bfSjmcp# common rules for $SRC/cmd/fwflash 285a7763bfSjmcp 295a7763bfSjmcpCLOSED= $(SRC)/../closed 305a7763bfSjmcp 31*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 32*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 33*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-address 34*7014882cSRichard Lowe 355a7763bfSjmcpROOTUSR= $(ROOT)/usr 36a799b1e7Speihong huangROOTUSRINCLD= $(ROOTUSR)/include 37a799b1e7Speihong huangROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash 38a799b1e7Speihong huangROOTUSRLIB= $(ROOTUSR)/lib 39a799b1e7Speihong huangROOTUSRLIBFWFLASH= $(ROOTUSRLIB)/fwflash 40a799b1e7Speihong huangROOTUSRLIBFWFLASHIDF= $(ROOTUSRLIBFWFLASH)/identify 41a799b1e7Speihong huangROOTUSRLIBFWFLASHVRF= $(ROOTUSRLIBFWFLASH)/verify 42a799b1e7Speihong huangROOTUSRSBIN= $(ROOTUSR)/sbin 435a7763bfSjmcp 445a7763bfSjmcp$(ROOTUSR): 455a7763bfSjmcp $(INS.dir) 465a7763bfSjmcp 47a799b1e7Speihong huang$(ROOTUSRINCLD): $(ROOTUSR) 485a7763bfSjmcp $(INS.dir) 495a7763bfSjmcp 50a799b1e7Speihong huang$(ROOTUSRINCLDFWFLASH): 515a7763bfSjmcp $(INS.dir) 525a7763bfSjmcp 53a799b1e7Speihong huang$(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) % 54a799b1e7Speihong huang $(INS.file) 55a799b1e7Speihong huang 56a799b1e7Speihong huang$(ROOTUSRLIB): 57a799b1e7Speihong huang $(INS.dir) 58a799b1e7Speihong huang 59a799b1e7Speihong huang$(ROOTUSRLIBFWFLASH): $(ROOTUSRLIB) 60a799b1e7Speihong huang $(INS.dir) 61a799b1e7Speihong huang 62a799b1e7Speihong huang$(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) % 63a799b1e7Speihong huang $(INS.dir) 64a799b1e7Speihong huang 65a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH) 66a799b1e7Speihong huang $(INS.dir) 67a799b1e7Speihong huang 68a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) % 69a799b1e7Speihong huang $(INS.file) 70a799b1e7Speihong huang 71a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH) 72a799b1e7Speihong huang $(INS.dir) 73a799b1e7Speihong huang 74a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) % 755a7763bfSjmcp $(INS.file) 765a7763bfSjmcp 775a7763bfSjmcp$(ROOTUSRSBIN): $(ROOTUSR) 785a7763bfSjmcp $(INS.dir) 795a7763bfSjmcp 805a7763bfSjmcp$(ROOTUSRSBIN)/%: % 815a7763bfSjmcp $(INS.file) 825a7763bfSjmcp 83a799b1e7Speihong huang 84a799b1e7Speihong huang 85a799b1e7Speihong huang%.ln: $(SRCDIR)/%.c 86a799b1e7Speihong huang $(LINT.c) $(LINTFLAGS) -c $< 87a799b1e7Speihong huang 88a799b1e7Speihong huang%.po: $(SRCDIR)/%.c 89a799b1e7Speihong huang $(RM) messages.po 90a799b1e7Speihong huang $(XGETTEXT) $(XGETFLAGS) \ 91a799b1e7Speihong huang `($(GREP) -l gettext $< || echo /dev/null)` 92a799b1e7Speihong huang $(SED) "/^domain/d" messages.po > $@ 93a799b1e7Speihong huang $(RM) messages.po 94a799b1e7Speihong huang 95a799b1e7Speihong huang$(POFILE): $(POFILES) 96a799b1e7Speihong huang $(RM) $@ 97a799b1e7Speihong huang cat $(POFILES) >$@ 985a7763bfSjmcp 99f1c23465SJames C. McPhersonLINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \ 100f1c23465SJames C. McPherson -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 101