131e37bb4Svn83148# 231e37bb4Svn83148# CDDL HEADER START 331e37bb4Svn83148# 431e37bb4Svn83148# The contents of this file are subject to the terms of the 531e37bb4Svn83148# Common Development and Distribution License (the "License"). 631e37bb4Svn83148# You may not use this file except in compliance with the License. 731e37bb4Svn83148# 831e37bb4Svn83148# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 931e37bb4Svn83148# or http://www.opensolaris.org/os/licensing. 1031e37bb4Svn83148# See the License for the specific language governing permissions 1131e37bb4Svn83148# and limitations under the License. 1231e37bb4Svn83148# 1331e37bb4Svn83148# When distributing Covered Code, include this CDDL HEADER in each 1431e37bb4Svn83148# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1531e37bb4Svn83148# If applicable, add the following below this CDDL HEADER, with the 1631e37bb4Svn83148# fields enclosed by brackets "[]" replaced with your own identifying 1731e37bb4Svn83148# information: Portions Copyright [yyyy] [name of copyright owner] 1831e37bb4Svn83148# 1931e37bb4Svn83148# CDDL HEADER END 2031e37bb4Svn83148# 2131e37bb4Svn83148# 22e4b86885SCheng Sean Ye# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2331e37bb4Svn83148# Use is subject to license terms. 2431e37bb4Svn83148# 2531e37bb4Svn83148 2631e37bb4Svn83148LIBRARY = libldom.a 2731e37bb4Svn83148VERS = .1 2831e37bb4Svn83148 29*25351652SVuong NguyenLIBSRCS = ldom.c ldom_alloc.c ldmsvcs_utils.c ldom_xmpp_client.c 3031e37bb4Svn83148OBJECTS = $(LIBSRCS:%.c=%.o) 3131e37bb4Svn83148 3231e37bb4Svn83148include ../../../Makefile.lib 3331e37bb4Svn83148include ../../Makefile.lib 3431e37bb4Svn83148 3562e61469Sdb35262SRCS = $(LIBSRCS:%.c=../sparc/%.c) 3631e37bb4Svn83148SRCDIR = ../sparc 3731e37bb4Svn83148 3831e37bb4Svn83148LIBS = $(DYNLIB) $(LINTLIB) 3931e37bb4Svn83148 40*25351652SVuong NguyenCPPFLAGS += -I. -I$(SRC)/uts/sun4v -I$(ROOT)/usr/platform/sun4v/include \ 41*25351652SVuong Nguyen -I/usr/include/libxml2 -I/usr/sfw/include 4231e37bb4Svn83148CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) 4331e37bb4Svn83148CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) 4431e37bb4Svn83148 4531e37bb4Svn83148LDLIBS += $(MACH_LDLIBS) 46*25351652SVuong NguyenLDLIBS += -lfmd_agent -lnvpair -lscf -lmdesc -lc -lxml2 -lsocket -lumem 4731e37bb4Svn83148 4831e37bb4Svn83148LINTFLAGS = -msux 490bb07399SNick ToddLINTFLAGS64 = -msux -m64 5031e37bb4Svn83148 5131e37bb4Svn83148$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 5231e37bb4Svn83148$(LINTLIB) := LINTFLAGS = -nsvx -I$(ROOT)/usr/platform/sun4v/include 530bb07399SNick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 \ 5431e37bb4Svn83148 -I$(ROOT)/usr/platform/sun4v/include 5531e37bb4Svn83148 5631e37bb4Svn83148.KEEP_STATE: 5731e37bb4Svn83148 5831e37bb4Svn83148all: $(LIBS) 5931e37bb4Svn83148 6031e37bb4Svn83148lint: $(LINTLIB) lintcheck 6131e37bb4Svn83148 6231e37bb4Svn83148pics/%.o: ../$(MACH)/%.c 6331e37bb4Svn83148 $(COMPILE.c) -o $@ $< 6431e37bb4Svn83148 $(POST_PROCESS_O) 6531e37bb4Svn83148 6631e37bb4Svn83148include ../../../Makefile.targ 6731e37bb4Svn83148include ../../Makefile.targ 68