xref: /titanic_44/usr/src/cmd/fwflash/Makefile.com (revision 91d7f85e02991954d1e1bd44673df567ad8dcc87)
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
29CLOSED=			$(SRC)/../closed
30
31CERRWARN +=		-_gcc=-Wno-parentheses
32CERRWARN +=		-_gcc=-Wno-uninitialized
33CERRWARN +=		-_gcc=-Wno-address
34
35ROOTUSR=                $(ROOT)/usr
36ROOTUSRINCLD=		$(ROOTUSR)/include
37ROOTUSRINCLDFWFLASH=	$(ROOTUSRINCLD)/fwflash
38ROOTUSRLIB=             $(ROOTUSR)/lib
39ROOTUSRLIBFWFLASH=	$(ROOTUSRLIB)/fwflash
40ROOTUSRLIBFWFLASHIDF=	$(ROOTUSRLIBFWFLASH)/identify
41ROOTUSRLIBFWFLASHVRF=   $(ROOTUSRLIBFWFLASH)/verify
42ROOTUSRSBIN=		$(ROOTUSR)/sbin
43
44$(ROOTUSR):
45	$(INS.dir)
46
47$(ROOTUSRINCLD):	$(ROOTUSR)
48	$(INS.dir)
49
50$(ROOTUSRINCLDFWFLASH):
51	$(INS.dir)
52
53$(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
54	$(INS.file)
55
56$(ROOTUSRLIB):
57	$(INS.dir)
58
59$(ROOTUSRLIBFWFLASH):	$(ROOTUSRLIB)
60	$(INS.dir)
61
62$(ROOTUSRLIBFWFLASH)/%:	$(ROOTUSRLIB) %
63	$(INS.dir)
64
65$(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
66	$(INS.dir)
67
68$(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
69	$(INS.file)
70
71$(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
72	$(INS.dir)
73
74$(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
75	$(INS.file)
76
77$(ROOTUSRSBIN):		$(ROOTUSR)
78	$(INS.dir)
79
80$(ROOTUSRSBIN)/%:	%
81	$(INS.file)
82
83
84
85%.ln: $(SRCDIR)/%.c
86	$(LINT.c) $(LINTFLAGS) -c $<
87
88%.po: $(SRCDIR)/%.c
89	$(RM) messages.po
90	$(XGETTEXT) $(XGETFLAGS) \
91	    `($(GREP) -l gettext $< || echo /dev/null)`
92	$(SED) "/^domain/d" messages.po > $@
93	$(RM) messages.po
94
95$(POFILE): $(POFILES)
96	$(RM) $@
97	cat $(POFILES) >$@
98
99LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
100	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
101