lib: remove sparc-only libdscp
[unleashed.git] / usr / src / cmd / fm / ipmitopo / Makefile.com
blobabead8f550b90088ce0034c2ea0ceee9b3ff8a44
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
26 .KEEP_STATE:
27 .SUFFIXES:
29 SRCS += ipmitopo.c
30 OBJS = $(SRCS:%.c=%.o)
32 PROG = ipmitopo
33 ROOTLIBFM = $(ROOT)/usr/lib/fm
34 ROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd
35 ROOTPROG = $(ROOTLIBFMD)/$(PROG)
37 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
38 CPPFLAGS += -I. -I../common
39 CFLAGS += $(CTF_FLAGS)
40 LDLIBS += -lipmi -lnvpair
42 CERRWARN += -Wno-uninitialized
44 .NO_PARALLEL:
45 .PARALLEL: $(OBJS)
47 all: $(PROG)
49 $(PROG): $(OBJS)
50         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
51         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
52         $(POST_PROCESS)
54 %.o: ../common/%.c
55         $(COMPILE.c) $<
56         $(CTFCONVERT_O)
58 %.o: %.c
59         $(COMPILE.c) $<
60         $(CTFCONVERT_O)
62 clean:
63         $(RM) $(OBJS)
65 clobber: clean
66         $(RM) $(PROG)
68 $(ROOTLIBFMD)/%: %
69         $(INS.file)
71 install_h:
73 install: all $(ROOTPROG)