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