xref: /titanic_52/usr/src/cmd/fwflash/Makefile.com (revision a29e56d91db891741f1af9f6bbd3e3c3cac5f19b)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# cmd/fwflash/Makefile.com
25#
26#
27# common rules for $SRC/cmd/fwflash
28
29CERRWARN +=		-_gcc=-Wno-parentheses
30CERRWARN +=		-_gcc=-Wno-uninitialized
31CERRWARN +=		-_gcc=-Wno-address
32
33ROOTUSR=                $(ROOT)/usr
34ROOTUSRINCLD=		$(ROOTUSR)/include
35ROOTUSRINCLDFWFLASH=	$(ROOTUSRINCLD)/fwflash
36ROOTUSRLIB=             $(ROOTUSR)/lib
37ROOTUSRLIBFWFLASH=	$(ROOTUSRLIB)/fwflash
38ROOTUSRLIBFWFLASHIDF=	$(ROOTUSRLIBFWFLASH)/identify
39ROOTUSRLIBFWFLASHVRF=   $(ROOTUSRLIBFWFLASH)/verify
40ROOTUSRSBIN=		$(ROOTUSR)/sbin
41
42$(ROOTUSR):
43	$(INS.dir)
44
45$(ROOTUSRINCLD):	$(ROOTUSR)
46	$(INS.dir)
47
48$(ROOTUSRINCLDFWFLASH):
49	$(INS.dir)
50
51$(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
52	$(INS.file)
53
54$(ROOTUSRLIB):
55	$(INS.dir)
56
57$(ROOTUSRLIBFWFLASH):	$(ROOTUSRLIB)
58	$(INS.dir)
59
60$(ROOTUSRLIBFWFLASH)/%:	$(ROOTUSRLIB) %
61	$(INS.dir)
62
63$(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
64	$(INS.dir)
65
66$(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
67	$(INS.file)
68
69$(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
70	$(INS.dir)
71
72$(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
73	$(INS.file)
74
75$(ROOTUSRSBIN):		$(ROOTUSR)
76	$(INS.dir)
77
78$(ROOTUSRSBIN)/%:	%
79	$(INS.file)
80
81
82
83%.ln: $(SRCDIR)/%.c
84	$(LINT.c) $(LINTFLAGS) -c $<
85
86%.po: $(SRCDIR)/%.c
87	$(RM) messages.po
88	$(XGETTEXT) $(XGETFLAGS) \
89	    `($(GREP) -l gettext $< || echo /dev/null)`
90	$(SED) "/^domain/d" messages.po > $@
91	$(RM) messages.po
92
93$(POFILE): $(POFILES)
94	$(RM) $@
95	cat $(POFILES) >$@
96
97LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
98	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
99