xref: /titanic_52/usr/src/cmd/fwflash/Makefile.com (revision 1dd08564e4a3aafe66b00aee6f222b0885346fe8)
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 2008 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24#ident	"%Z%%M%	%I%	%E% SMI"
25#
26# cmd/fwflash/Makefile.com
27#
28#
29
30# common rules for $SRC/cmd/fwflash
31
32CLOSED=			$(SRC)/../closed
33
34ROOTLIB=                $(ROOT)/usr/lib
35ROOTLIBFWFLASH=         $(ROOTLIB)/fwflash
36ROOTLIBFWFLASHPLUGINS=  $(ROOTLIBFWFLASH)/identify
37ROOTLIBFWFLASHVERIFY=   $(ROOTLIBFWFLASH)/verify
38ROOTUSR=                $(ROOT)/usr
39ROOTUSRINCLUDE=         $(ROOTUSR)/include
40ROOTUSRINCLUDEFWFLASH=  $(ROOTUSRINCLUDE)/fwflash
41ROOTUSRSBIN=		$(ROOT)/usr/sbin
42
43
44
45$(ROOTLIB):
46	$(INS.dir)
47
48$(ROOTLIBFWFLASH):	$(ROOTLIB)
49	$(INS.dir)
50
51$(ROOTLIBFWFLASH)/%:	$(ROOTLIB) %
52	$(INS.dir)
53
54$(ROOTLIBFWFLASHPLUGINS): $(ROOTLIBFWFLASH)
55	$(INS.dir)
56
57$(ROOTLIBFWFLASHPLUGINS)/%: $(ROOTLIBFWFLASHPLUGINS) %
58	$(INS.file)
59
60$(ROOTLIBFWFLASHVERIFY): $(ROOTLIBFWFLASH)
61	$(INS.dir)
62
63$(ROOTLIBFWFLASHVERIFY)/%: $(ROOTLIBFWFLASHVERIFY) %
64	$(INS.file)
65
66$(ROOTUSR):
67	$(INS.dir)
68
69$(ROOTUSRINCLUDE):	$(ROOTUSR)
70	$(INS.dir)
71
72$(ROOTUSRINCLUDEFWFLASH):
73	$(INS.dir)
74
75$(ROOTUSRINCLUDEFWFLASH)/%: $(ROOTUSRINCLUDEFWFLASH) %
76	$(INS.file)
77
78$(ROOTUSRSBIN):		$(ROOTUSR)
79	$(INS.dir)
80
81$(ROOTUSRSBIN)/%:	%
82	$(INS.file)
83
84BUILD.SO=  $(CC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(LDLIBS)
85POST_PROCESS_O += ; $(CTFCONVERT_POST)
86POST_PROCESS_SO += ; $(CTFMERGE_POST)
87
88LINTFLAGS += -erroff=E_CONSTANT_CONDITION -D_POSIX_PTHREAD_SEMANTICS \
89	-erroff=E_CONST_TRUNCATED_BY_ASSIGN \
90	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED \
91	-erroff=E_BAD_PTR_CAST_ALIGN
92