17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5749f21d3Swesolows# Common Development and Distribution License (the "License"). 6749f21d3Swesolows# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21749f21d3Swesolows 227c478bd9Sstevel@tonic-gate# 23749f21d3Swesolows# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27749f21d3Swesolows# 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateall: $(PROG) 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate.NO_PARALLEL: 327c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS) $(LINTFILES) 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) $(MAPFILE) 357c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 367c478bd9Sstevel@tonic-gate $(CTFMERGE) -L VERSION -o $@ $(OBJS) 377c478bd9Sstevel@tonic-gate $(POST_PROCESS_SO) 387c478bd9Sstevel@tonic-gate 39*7aec1d6eScindi%.o: %.c 40*7aec1d6eScindi $(COMPILE.c) $< 41*7aec1d6eScindi $(CTFCONVERT_O) 42*7aec1d6eScindi 43*7aec1d6eScindi%.o: ../$(MACH)/%.c 44*7aec1d6eScindi $(COMPILE.c) $< 45*7aec1d6eScindi $(CTFCONVERT_O) 46*7aec1d6eScindi 47749f21d3Swesolows%.o: ../%.c 487c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 497c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 507c478bd9Sstevel@tonic-gate 51*7aec1d6eScindi%.o: ../../common/%.c 52*7aec1d6eScindi $(COMPILE.c) $< 53*7aec1d6eScindi $(CTFCONVERT_O) 54*7aec1d6eScindi 557c478bd9Sstevel@tonic-gateclean: 567c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(LINTFILES) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gateclobber: clean 597c478bd9Sstevel@tonic-gate $(RM) $(PROG) 607c478bd9Sstevel@tonic-gate 61*7aec1d6eScindi%.ln: %.c 62*7aec1d6eScindi $(LINT.c) -c $< 63*7aec1d6eScindi 64*7aec1d6eScindi%.ln: ../$(MACH)/%.c 65*7aec1d6eScindi $(LINT.c) -c $< 66*7aec1d6eScindi 67749f21d3Swesolows%.ln: ../%.c 687c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 697c478bd9Sstevel@tonic-gate 70*7aec1d6eScindi%.ln: ../../common/%.c 71*7aec1d6eScindi $(LINT.c) -erroff=E_BAD_PTR_CAST_ALIGN -v -c $< 72*7aec1d6eScindi 737c478bd9Sstevel@tonic-gatelint: $(LINTFILES) 747c478bd9Sstevel@tonic-gate $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gateinstall_h: 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/fm: 797c478bd9Sstevel@tonic-gate $(INS.dir) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/fm/fmd: $(ROOT)/usr/lib/fm 827c478bd9Sstevel@tonic-gate $(INS.dir) 837c478bd9Sstevel@tonic-gate 84749f21d3Swesolows$(ROOT)/usr/lib/fm/fmd/schemes: $(ROOT)/usr/lib/fm/fmd 85749f21d3Swesolows $(INS.dir) 86749f21d3Swesolows 87749f21d3Swesolows$(ROOT)/usr/lib/fm/fmd/schemes/$(MACH64): $(ROOT)/usr/lib/fm/fmd/schemes 887c478bd9Sstevel@tonic-gate $(INS.dir) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate$(ROOTPROG): $$(@D) $(PROG) 917c478bd9Sstevel@tonic-gate $(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG) 927c478bd9Sstevel@tonic-gate 93749f21d3Swesolows$(ROOTPROG64): $$(@D) $(PROG) 94749f21d3Swesolows $(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG) 95