xref: /titanic_50/usr/src/cmd/fwflash/Makefile.com (revision 9241eba2ee6b19f556bc3779eef7f62da5efffe5)
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
29*7014882cSRichard LoweCERRWARN +=		-_gcc=-Wno-parentheses
30*7014882cSRichard LoweCERRWARN +=		-_gcc=-Wno-uninitialized
31*7014882cSRichard LoweCERRWARN +=		-_gcc=-Wno-address
32*7014882cSRichard Lowe
335a7763bfSjmcpROOTUSR=                $(ROOT)/usr
34a799b1e7Speihong huangROOTUSRINCLD=		$(ROOTUSR)/include
35a799b1e7Speihong huangROOTUSRINCLDFWFLASH=	$(ROOTUSRINCLD)/fwflash
36a799b1e7Speihong huangROOTUSRLIB=             $(ROOTUSR)/lib
37a799b1e7Speihong huangROOTUSRLIBFWFLASH=	$(ROOTUSRLIB)/fwflash
38a799b1e7Speihong huangROOTUSRLIBFWFLASHIDF=	$(ROOTUSRLIBFWFLASH)/identify
39a799b1e7Speihong huangROOTUSRLIBFWFLASHVRF=   $(ROOTUSRLIBFWFLASH)/verify
40a799b1e7Speihong huangROOTUSRSBIN=		$(ROOTUSR)/sbin
415a7763bfSjmcp
425a7763bfSjmcp$(ROOTUSR):
435a7763bfSjmcp	$(INS.dir)
445a7763bfSjmcp
45a799b1e7Speihong huang$(ROOTUSRINCLD):	$(ROOTUSR)
465a7763bfSjmcp	$(INS.dir)
475a7763bfSjmcp
48a799b1e7Speihong huang$(ROOTUSRINCLDFWFLASH):
495a7763bfSjmcp	$(INS.dir)
505a7763bfSjmcp
51a799b1e7Speihong huang$(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
52a799b1e7Speihong huang	$(INS.file)
53a799b1e7Speihong huang
54a799b1e7Speihong huang$(ROOTUSRLIB):
55a799b1e7Speihong huang	$(INS.dir)
56a799b1e7Speihong huang
57a799b1e7Speihong huang$(ROOTUSRLIBFWFLASH):	$(ROOTUSRLIB)
58a799b1e7Speihong huang	$(INS.dir)
59a799b1e7Speihong huang
60a799b1e7Speihong huang$(ROOTUSRLIBFWFLASH)/%:	$(ROOTUSRLIB) %
61a799b1e7Speihong huang	$(INS.dir)
62a799b1e7Speihong huang
63a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
64a799b1e7Speihong huang	$(INS.dir)
65a799b1e7Speihong huang
66a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
67a799b1e7Speihong huang	$(INS.file)
68a799b1e7Speihong huang
69a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
70a799b1e7Speihong huang	$(INS.dir)
71a799b1e7Speihong huang
72a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
735a7763bfSjmcp	$(INS.file)
745a7763bfSjmcp
755a7763bfSjmcp$(ROOTUSRSBIN):		$(ROOTUSR)
765a7763bfSjmcp	$(INS.dir)
775a7763bfSjmcp
785a7763bfSjmcp$(ROOTUSRSBIN)/%:	%
795a7763bfSjmcp	$(INS.file)
805a7763bfSjmcp
81a799b1e7Speihong huang
82a799b1e7Speihong huang
83a799b1e7Speihong huang%.ln: $(SRCDIR)/%.c
84a799b1e7Speihong huang	$(LINT.c) $(LINTFLAGS) -c $<
85a799b1e7Speihong huang
86a799b1e7Speihong huang%.po: $(SRCDIR)/%.c
87a799b1e7Speihong huang	$(RM) messages.po
88a799b1e7Speihong huang	$(XGETTEXT) $(XGETFLAGS) \
89a799b1e7Speihong huang	    `($(GREP) -l gettext $< || echo /dev/null)`
90a799b1e7Speihong huang	$(SED) "/^domain/d" messages.po > $@
91a799b1e7Speihong huang	$(RM) messages.po
92a799b1e7Speihong huang
93a799b1e7Speihong huang$(POFILE): $(POFILES)
94a799b1e7Speihong huang	$(RM) $@
95a799b1e7Speihong huang	cat $(POFILES) >$@
965a7763bfSjmcp
97f1c23465SJames C. McPhersonLINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
98f1c23465SJames C. McPherson	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
99