xref: /titanic_41/usr/src/cmd/fm/ipmitopo/Makefile.com (revision 2eeaed14a5e2ed9bd811643ad5bffc3510ca0310)
1*2eeaed14Srobj#
2*2eeaed14Srobj# CDDL HEADER START
3*2eeaed14Srobj#
4*2eeaed14Srobj# The contents of this file are subject to the terms of the
5*2eeaed14Srobj# Common Development and Distribution License (the "License").
6*2eeaed14Srobj# You may not use this file except in compliance with the License.
7*2eeaed14Srobj#
8*2eeaed14Srobj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2eeaed14Srobj# or http://www.opensolaris.org/os/licensing.
10*2eeaed14Srobj# See the License for the specific language governing permissions
11*2eeaed14Srobj# and limitations under the License.
12*2eeaed14Srobj#
13*2eeaed14Srobj# When distributing Covered Code, include this CDDL HEADER in each
14*2eeaed14Srobj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2eeaed14Srobj# If applicable, add the following below this CDDL HEADER, with the
16*2eeaed14Srobj# fields enclosed by brackets "[]" replaced with your own identifying
17*2eeaed14Srobj# information: Portions Copyright [yyyy] [name of copyright owner]
18*2eeaed14Srobj#
19*2eeaed14Srobj# CDDL HEADER END
20*2eeaed14Srobj#
21*2eeaed14Srobj#
22*2eeaed14Srobj# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*2eeaed14Srobj# Use is subject to license terms.
24*2eeaed14Srobj#
25*2eeaed14Srobj#ident	"%Z%%M%	%I%	%E% SMI"
26*2eeaed14Srobj
27*2eeaed14Srobj.KEEP_STATE:
28*2eeaed14Srobj.SUFFIXES:
29*2eeaed14Srobj
30*2eeaed14SrobjSRCS += ipmitopo.c
31*2eeaed14SrobjOBJS = $(SRCS:%.c=%.o)
32*2eeaed14SrobjLINTFILES = $(SRCS:%.c=%.ln)
33*2eeaed14Srobj
34*2eeaed14SrobjPROG = ipmitopo
35*2eeaed14SrobjROOTLIBFM = $(ROOT)/usr/lib/fm
36*2eeaed14SrobjROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd
37*2eeaed14SrobjROOTPROG = $(ROOTLIBFMD)/$(PROG)
38*2eeaed14Srobj
39*2eeaed14Srobj$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
40*2eeaed14SrobjCPPFLAGS += -I. -I../common
41*2eeaed14SrobjCFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
42*2eeaed14SrobjLDLIBS += -lipmi
43*2eeaed14SrobjLINTFLAGS += -mnu
44*2eeaed14Srobj
45*2eeaed14Srobj.NO_PARALLEL:
46*2eeaed14Srobj.PARALLEL: $(OBJS) $(LINTFILES)
47*2eeaed14Srobj
48*2eeaed14Srobjall: $(PROG)
49*2eeaed14Srobj
50*2eeaed14Srobj$(PROG): $(OBJS)
51*2eeaed14Srobj	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
52*2eeaed14Srobj	$(CTFMERGE) -L VERSION -o $@ $(OBJS)
53*2eeaed14Srobj	$(POST_PROCESS)
54*2eeaed14Srobj
55*2eeaed14Srobj%.o: ../common/%.c
56*2eeaed14Srobj	$(COMPILE.c) $<
57*2eeaed14Srobj	$(CTFCONVERT_O)
58*2eeaed14Srobj
59*2eeaed14Srobj%.o: %.c
60*2eeaed14Srobj	$(COMPILE.c) $<
61*2eeaed14Srobj	$(CTFCONVERT_O)
62*2eeaed14Srobj
63*2eeaed14Srobjclean:
64*2eeaed14Srobj	$(RM) $(OBJS) $(LINTFILES)
65*2eeaed14Srobj
66*2eeaed14Srobjclobber: clean
67*2eeaed14Srobj	$(RM) $(PROG)
68*2eeaed14Srobj
69*2eeaed14Srobj%.ln: ../common/%.c
70*2eeaed14Srobj	$(LINT.c) -c $<
71*2eeaed14Srobj
72*2eeaed14Srobj%.ln: %.c
73*2eeaed14Srobj	$(LINT.c) -c $<
74*2eeaed14Srobj
75*2eeaed14Srobjlint: $(LINTFILES)
76*2eeaed14Srobj	$(LINT) $(LINTFLAGS) $(LINTFILES)
77*2eeaed14Srobj
78*2eeaed14Srobj$(ROOTLIBFMD)/%: %
79*2eeaed14Srobj	$(INS.file)
80*2eeaed14Srobj
81*2eeaed14Srobjinstall_h:
82*2eeaed14Srobj
83*2eeaed14Srobjinstall: all $(ROOTPROG)
84