xref: /titanic_50/usr/src/lib/fm/libldom/Makefile.com (revision e6590bdc0d540003c7df26f1d3b66db7cae9be2c)
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#
22*e6590bdcSVuong Nguyen# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
2331e37bb4Svn83148# Use is subject to license terms.
2431e37bb4Svn83148#
2531e37bb4Svn83148
2631e37bb4Svn83148LIBRARY = libldom.a
2731e37bb4Svn83148VERS = .1
2831e37bb4Svn83148
29*e6590bdcSVuong 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 \
4125351652SVuong Nguyen	-I/usr/include/libxml2 -I/usr/sfw/include
4231e37bb4Svn83148CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
4331e37bb4Svn83148CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
4431e37bb4Svn83148
45c95876f5SVuong Nguyen$(DYNLIB) := LDLIBS += $(MACH_LDLIBS)
46c95876f5SVuong Nguyen$(DYNLIB) := LDLIBS += -lfmd_agent -lnvpair -lscf -lmdesc -lc -lxml2 -lsocket \
47c95876f5SVuong Nguyen	-lumem
4831e37bb4Svn83148
4931e37bb4Svn83148LINTFLAGS = -msux
500bb07399SNick ToddLINTFLAGS64 = -msux -m64
5131e37bb4Svn83148
5231e37bb4Svn83148$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
5331e37bb4Svn83148$(LINTLIB) := LINTFLAGS = -nsvx -I$(ROOT)/usr/platform/sun4v/include
540bb07399SNick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 \
5531e37bb4Svn83148	-I$(ROOT)/usr/platform/sun4v/include
5631e37bb4Svn83148
5731e37bb4Svn83148.KEEP_STATE:
5831e37bb4Svn83148
5931e37bb4Svn83148all: $(LIBS)
6031e37bb4Svn83148
6131e37bb4Svn83148lint: $(LINTLIB) lintcheck
6231e37bb4Svn83148
6331e37bb4Svn83148pics/%.o: ../$(MACH)/%.c
6431e37bb4Svn83148	$(COMPILE.c) -o $@ $<
6531e37bb4Svn83148	$(POST_PROCESS_O)
6631e37bb4Svn83148
6731e37bb4Svn83148include ../../../Makefile.targ
6831e37bb4Svn83148include ../../Makefile.targ
69