Merge commit 'b1e7e97d3b60469b243b3b2e22c7d8cbd11c7c90'
[unleashed.git] / usr / src / cmd / fwflash / Makefile.com
blobdeba0ddec33a3a75b7effd859d1787917d0f83ef
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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 CERRWARN +=             -Wno-parentheses
30 CERRWARN +=             -Wno-uninitialized
31 CERRWARN +=             -Wno-address
33 ROOTUSR=                $(ROOT)/usr
34 ROOTUSRINCLD=           $(ROOTUSR)/include
35 ROOTUSRINCLDFWFLASH=    $(ROOTUSRINCLD)/fwflash
36 ROOTUSRLIB=             $(ROOTUSR)/lib
37 ROOTUSRLIBFWFLASH=      $(ROOTUSRLIB)/fwflash
38 ROOTUSRLIBFWFLASHIDF=   $(ROOTUSRLIBFWFLASH)/identify
39 ROOTUSRLIBFWFLASHVRF=   $(ROOTUSRLIBFWFLASH)/verify
40 ROOTUSRSBIN=            $(ROOTUSR)/sbin
42 $(ROOTUSR):
43         $(INS.dir)
45 $(ROOTUSRINCLD):        $(ROOTUSR)
46         $(INS.dir)
48 $(ROOTUSRINCLDFWFLASH):
49         $(INS.dir)
51 $(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
52         $(INS.file)
54 $(ROOTUSRLIB):
55         $(INS.dir)
57 $(ROOTUSRLIBFWFLASH):   $(ROOTUSRLIB)
58         $(INS.dir)
60 $(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) %
61         $(INS.dir)
63 $(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
64         $(INS.dir)
66 $(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
67         $(INS.file)
69 $(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
70         $(INS.dir)
72 $(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
73         $(INS.file)
75 $(ROOTUSRSBIN):         $(ROOTUSR)
76         $(INS.dir)
78 $(ROOTUSRSBIN)/%:       %
79         $(INS.file)
81 %.po: $(SRCDIR)/%.c
82         $(RM) messages.po
83         $(XGETTEXT) $(XGETFLAGS) \
84             `($(GREP) -l gettext $< || echo /dev/null)`
85         $(SED) "/^domain/d" messages.po > $@
86         $(RM) messages.po
88 $(POFILE): $(POFILES)
89         $(RM) $@
90         cat $(POFILES) >$@