4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # cmd/fwflash/Makefile.com
27 # common rules for $SRC/cmd/fwflash
29 CLOSED= $(SRC)/../closed
31 CERRWARN += -_gcc=-Wno-parentheses
32 CERRWARN += -_gcc=-Wno-uninitialized
33 CERRWARN += -_gcc=-Wno-address
36 ROOTUSRINCLD= $(ROOTUSR)/include
37 ROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash
38 ROOTUSRLIB= $(ROOTUSR)/lib
39 ROOTUSRLIBFWFLASH= $(ROOTUSRLIB)/fwflash
40 ROOTUSRLIBFWFLASHIDF= $(ROOTUSRLIBFWFLASH)/identify
41 ROOTUSRLIBFWFLASHVRF= $(ROOTUSRLIBFWFLASH)/verify
42 ROOTUSRSBIN= $(ROOTUSR)/sbin
47 $(ROOTUSRINCLD): $(ROOTUSR)
50 $(ROOTUSRINCLDFWFLASH):
53 $(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
59 $(ROOTUSRLIBFWFLASH): $(ROOTUSRLIB)
62 $(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) %
65 $(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
68 $(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
71 $(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
74 $(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
77 $(ROOTUSRSBIN): $(ROOTUSR)
86 $(LINT.c) $(LINTFLAGS) -c $<
90 $(XGETTEXT) $(XGETFLAGS) \
91 `($(GREP) -l gettext $< || echo /dev/null)`
92 $(SED) "/^domain/d" messages.po > $@
99 LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
100 -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED