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# 22e6590bdcSVuong Nguyen# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2331e37bb4Svn83148# Use is subject to license terms. 2431e37bb4Svn83148# 2531e37bb4Svn83148 2631e37bb4Svn83148LIBRARY = libldom.a 2731e37bb4Svn83148VERS = .1 2831e37bb4Svn83148 29e6590bdcSVuong NguyenLIBSRCS = ldom.c ldom_alloc.c ldmsvcs_utils.c ldom_xmpp_client.c ldom_utils.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 4025351652SVuong NguyenCPPFLAGS += -I. -I$(SRC)/uts/sun4v -I$(ROOT)/usr/platform/sun4v/include \ 41*494f7e12SKeith M Wesolowski -I$(ADJUNCT_PROTO)/usr/include/libxml2 4231e37bb4Svn83148CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) 4331e37bb4Svn83148CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) 4431e37bb4Svn83148 457014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 467014882cSRichard Lowe 47c95876f5SVuong Nguyen$(DYNLIB) := LDLIBS += $(MACH_LDLIBS) 48c95876f5SVuong Nguyen$(DYNLIB) := LDLIBS += -lfmd_agent -lnvpair -lscf -lmdesc -lc -lxml2 -lsocket \ 49c95876f5SVuong Nguyen -lumem 5031e37bb4Svn83148 5131e37bb4Svn83148LINTFLAGS = -msux 520bb07399SNick ToddLINTFLAGS64 = -msux -m64 5331e37bb4Svn83148 5431e37bb4Svn83148$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 5531e37bb4Svn83148$(LINTLIB) := LINTFLAGS = -nsvx -I$(ROOT)/usr/platform/sun4v/include 560bb07399SNick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 \ 5731e37bb4Svn83148 -I$(ROOT)/usr/platform/sun4v/include 5831e37bb4Svn83148 5931e37bb4Svn83148.KEEP_STATE: 6031e37bb4Svn83148 6131e37bb4Svn83148all: $(LIBS) 6231e37bb4Svn83148 6331e37bb4Svn83148lint: $(LINTLIB) lintcheck 6431e37bb4Svn83148 6531e37bb4Svn83148pics/%.o: ../$(MACH)/%.c 6631e37bb4Svn83148 $(COMPILE.c) -o $@ $< 6731e37bb4Svn83148 $(POST_PROCESS_O) 6831e37bb4Svn83148 6931e37bb4Svn83148include ../../../Makefile.targ 7031e37bb4Svn83148include ../../Makefile.targ 71