xref: /titanic_50/usr/src/cmd/fwflash/Makefile.com (revision 4f680cc668fa6cf678c531083400ade9a9c7934c)
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# cmd/fwflash/Makefile.com
25#
26#
27
28# common rules for $SRC/cmd/fwflash
29
30CLOSED=			$(SRC)/../closed
31
32ROOTLIB=                $(ROOT)/usr/lib
33ROOTLIBFWFLASH=         $(ROOTLIB)/fwflash
34ROOTLIBFWFLASHPLUGINS=  $(ROOTLIBFWFLASH)/identify
35ROOTLIBFWFLASHVERIFY=   $(ROOTLIBFWFLASH)/verify
36ROOTUSR=                $(ROOT)/usr
37ROOTUSRINCLUDE=         $(ROOTUSR)/include
38ROOTUSRINCLUDEFWFLASH=  $(ROOTUSRINCLUDE)/fwflash
39ROOTUSRSBIN=		$(ROOT)/usr/sbin
40
41
42
43$(ROOTLIB):
44	$(INS.dir)
45
46$(ROOTLIBFWFLASH):	$(ROOTLIB)
47	$(INS.dir)
48
49$(ROOTLIBFWFLASH)/%:	$(ROOTLIB) %
50	$(INS.dir)
51
52$(ROOTLIBFWFLASHPLUGINS): $(ROOTLIBFWFLASH)
53	$(INS.dir)
54
55$(ROOTLIBFWFLASHPLUGINS)/%: $(ROOTLIBFWFLASHPLUGINS) %
56	$(INS.file)
57
58$(ROOTLIBFWFLASHVERIFY): $(ROOTLIBFWFLASH)
59	$(INS.dir)
60
61$(ROOTLIBFWFLASHVERIFY)/%: $(ROOTLIBFWFLASHVERIFY) %
62	$(INS.file)
63
64$(ROOTUSR):
65	$(INS.dir)
66
67$(ROOTUSRINCLUDE):	$(ROOTUSR)
68	$(INS.dir)
69
70$(ROOTUSRINCLUDEFWFLASH):
71	$(INS.dir)
72
73$(ROOTUSRINCLUDEFWFLASH)/%: $(ROOTUSRINCLUDEFWFLASH) %
74	$(INS.file)
75
76$(ROOTUSRSBIN):		$(ROOTUSR)
77	$(INS.dir)
78
79$(ROOTUSRSBIN)/%:	%
80	$(INS.file)
81
82BUILD.SO=  $(CC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(LDLIBS)
83POST_PROCESS_O += ; $(CTFCONVERT_POST)
84POST_PROCESS_SO += ; $(CTFMERGE_POST)
85
86LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
87	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
88