12eeaed14Srobj# 22eeaed14Srobj# CDDL HEADER START 32eeaed14Srobj# 42eeaed14Srobj# The contents of this file are subject to the terms of the 52eeaed14Srobj# Common Development and Distribution License (the "License"). 62eeaed14Srobj# You may not use this file except in compliance with the License. 72eeaed14Srobj# 82eeaed14Srobj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92eeaed14Srobj# or http://www.opensolaris.org/os/licensing. 102eeaed14Srobj# See the License for the specific language governing permissions 112eeaed14Srobj# and limitations under the License. 122eeaed14Srobj# 132eeaed14Srobj# When distributing Covered Code, include this CDDL HEADER in each 142eeaed14Srobj# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152eeaed14Srobj# If applicable, add the following below this CDDL HEADER, with the 162eeaed14Srobj# fields enclosed by brackets "[]" replaced with your own identifying 172eeaed14Srobj# information: Portions Copyright [yyyy] [name of copyright owner] 182eeaed14Srobj# 192eeaed14Srobj# CDDL HEADER END 202eeaed14Srobj# 212eeaed14Srobj# 2281d9f076SRobert Johnston# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 232eeaed14Srobj# Use is subject to license terms. 242eeaed14Srobj# 252eeaed14Srobj 262eeaed14Srobj.KEEP_STATE: 272eeaed14Srobj.SUFFIXES: 282eeaed14Srobj 292eeaed14SrobjSRCS += ipmitopo.c 302eeaed14SrobjOBJS = $(SRCS:%.c=%.o) 312eeaed14SrobjLINTFILES = $(SRCS:%.c=%.ln) 322eeaed14Srobj 332eeaed14SrobjPROG = ipmitopo 342eeaed14SrobjROOTLIBFM = $(ROOT)/usr/lib/fm 352eeaed14SrobjROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd 362eeaed14SrobjROOTPROG = $(ROOTLIBFMD)/$(PROG) 372eeaed14Srobj 382eeaed14Srobj$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 392eeaed14SrobjCPPFLAGS += -I. -I../common 402eeaed14SrobjCFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) 4181d9f076SRobert JohnstonLDLIBS += -lipmi -lnvpair 422eeaed14SrobjLINTFLAGS += -mnu 432eeaed14Srobj 44*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 45*7014882cSRichard Lowe 462eeaed14Srobj.NO_PARALLEL: 472eeaed14Srobj.PARALLEL: $(OBJS) $(LINTFILES) 482eeaed14Srobj 492eeaed14Srobjall: $(PROG) 502eeaed14Srobj 512eeaed14Srobj$(PROG): $(OBJS) 522eeaed14Srobj $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 532eeaed14Srobj $(CTFMERGE) -L VERSION -o $@ $(OBJS) 542eeaed14Srobj $(POST_PROCESS) 552eeaed14Srobj 562eeaed14Srobj%.o: ../common/%.c 572eeaed14Srobj $(COMPILE.c) $< 582eeaed14Srobj $(CTFCONVERT_O) 592eeaed14Srobj 602eeaed14Srobj%.o: %.c 612eeaed14Srobj $(COMPILE.c) $< 622eeaed14Srobj $(CTFCONVERT_O) 632eeaed14Srobj 642eeaed14Srobjclean: 652eeaed14Srobj $(RM) $(OBJS) $(LINTFILES) 662eeaed14Srobj 672eeaed14Srobjclobber: clean 682eeaed14Srobj $(RM) $(PROG) 692eeaed14Srobj 702eeaed14Srobj%.ln: ../common/%.c 712eeaed14Srobj $(LINT.c) -c $< 722eeaed14Srobj 732eeaed14Srobj%.ln: %.c 742eeaed14Srobj $(LINT.c) -c $< 752eeaed14Srobj 762eeaed14Srobjlint: $(LINTFILES) 772eeaed14Srobj $(LINT) $(LINTFLAGS) $(LINTFILES) 782eeaed14Srobj 792eeaed14Srobj$(ROOTLIBFMD)/%: % 802eeaed14Srobj $(INS.file) 812eeaed14Srobj 822eeaed14Srobjinstall_h: 832eeaed14Srobj 842eeaed14Srobjinstall: all $(ROOTPROG) 85