1*31e37bb4Svn83148# 2*31e37bb4Svn83148# CDDL HEADER START 3*31e37bb4Svn83148# 4*31e37bb4Svn83148# The contents of this file are subject to the terms of the 5*31e37bb4Svn83148# Common Development and Distribution License (the "License"). 6*31e37bb4Svn83148# You may not use this file except in compliance with the License. 7*31e37bb4Svn83148# 8*31e37bb4Svn83148# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*31e37bb4Svn83148# or http://www.opensolaris.org/os/licensing. 10*31e37bb4Svn83148# See the License for the specific language governing permissions 11*31e37bb4Svn83148# and limitations under the License. 12*31e37bb4Svn83148# 13*31e37bb4Svn83148# When distributing Covered Code, include this CDDL HEADER in each 14*31e37bb4Svn83148# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*31e37bb4Svn83148# If applicable, add the following below this CDDL HEADER, with the 16*31e37bb4Svn83148# fields enclosed by brackets "[]" replaced with your own identifying 17*31e37bb4Svn83148# information: Portions Copyright [yyyy] [name of copyright owner] 18*31e37bb4Svn83148# 19*31e37bb4Svn83148# CDDL HEADER END 20*31e37bb4Svn83148# 21*31e37bb4Svn83148# 22*31e37bb4Svn83148# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*31e37bb4Svn83148# Use is subject to license terms. 24*31e37bb4Svn83148# 25*31e37bb4Svn83148#ident "%Z%%M% %I% %E% SMI" 26*31e37bb4Svn83148 27*31e37bb4Svn83148LIBRARY = libldom.a 28*31e37bb4Svn83148VERS = .1 29*31e37bb4Svn83148 30*31e37bb4Svn83148LIBSRCS = ldom.c ldmsvcs_utils.c 31*31e37bb4Svn83148OBJECTS = $(LIBSRCS:%.c=%.o) 32*31e37bb4Svn83148 33*31e37bb4Svn83148include ../../../Makefile.lib 34*31e37bb4Svn83148include ../../Makefile.lib 35*31e37bb4Svn83148 36*31e37bb4Svn83148SRCDIR = ../sparc 37*31e37bb4Svn83148 38*31e37bb4Svn83148LIBS = $(DYNLIB) $(LINTLIB) 39*31e37bb4Svn83148 40*31e37bb4Svn83148SPECMAPFILE = $(MAPDIR)/mapfile 41*31e37bb4Svn83148 42*31e37bb4Svn83148CPPFLAGS += -I. -I$(SRC)/uts/sun4v 43*31e37bb4Svn83148CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) 44*31e37bb4Svn83148CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) 45*31e37bb4Svn83148 46*31e37bb4Svn83148LDLIBS += $(MACH_LDLIBS) 47*31e37bb4Svn83148LDLIBS += -lnvpair -lmdesc -lc 48*31e37bb4Svn83148 49*31e37bb4Svn83148LINTFLAGS = -msux 50*31e37bb4Svn83148LINTFLAGS64 = -msux -Xarch=$(MACH64:sparcv9=v9) 51*31e37bb4Svn83148 52*31e37bb4Svn83148$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 53*31e37bb4Svn83148$(LINTLIB) := LINTFLAGS = -nsvx -I$(ROOT)/usr/platform/sun4v/include 54*31e37bb4Svn83148$(LINTLIB) := LINTFLAGS64 = -nsvx -Xarch=$(MACH64:sparcv9=v9) \ 55*31e37bb4Svn83148 -I$(ROOT)/usr/platform/sun4v/include 56*31e37bb4Svn83148 57*31e37bb4Svn83148ROOTLIBDIR = $(ROOT)/usr/platform/sun4v/lib/fm/fmd 58*31e37bb4Svn83148ROOTLIBDIR64 = $(ROOT)/usr/platform/sun4v/lib/fm/fmd/$(MACH64) 59*31e37bb4Svn83148 60*31e37bb4Svn83148.KEEP_STATE: 61*31e37bb4Svn83148 62*31e37bb4Svn83148all: $(LIBS) 63*31e37bb4Svn83148 64*31e37bb4Svn83148lint: $(LINTLIB) lintcheck 65*31e37bb4Svn83148 66*31e37bb4Svn83148pics/%.o: ../$(MACH)/%.c 67*31e37bb4Svn83148 $(COMPILE.c) -o $@ $< 68*31e37bb4Svn83148 $(POST_PROCESS_O) 69*31e37bb4Svn83148 70*31e37bb4Svn83148include ../../../Makefile.targ 71*31e37bb4Svn83148include ../../Makefile.targ 72