xref: /onnv-gate/usr/src/lib/fm/libldom/Makefile.com (revision 11831:491cfdc11ec6)
12072Svn83148#
22072Svn83148# CDDL HEADER START
32072Svn83148#
42072Svn83148# The contents of this file are subject to the terms of the
52072Svn83148# Common Development and Distribution License (the "License").
62072Svn83148# You may not use this file except in compliance with the License.
72072Svn83148#
82072Svn83148# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92072Svn83148# or http://www.opensolaris.org/os/licensing.
102072Svn83148# See the License for the specific language governing permissions
112072Svn83148# and limitations under the License.
122072Svn83148#
132072Svn83148# When distributing Covered Code, include this CDDL HEADER in each
142072Svn83148# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152072Svn83148# If applicable, add the following below this CDDL HEADER, with the
162072Svn83148# fields enclosed by brackets "[]" replaced with your own identifying
172072Svn83148# information: Portions Copyright [yyyy] [name of copyright owner]
182072Svn83148#
192072Svn83148# CDDL HEADER END
202072Svn83148#
212072Svn83148#
22*11831SVuong.Nguyen@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
232072Svn83148# Use is subject to license terms.
242072Svn83148#
252072Svn83148
262072Svn83148LIBRARY = libldom.a
272072Svn83148VERS = .1
282072Svn83148
29*11831SVuong.Nguyen@Sun.COMLIBSRCS = ldom.c ldom_alloc.c ldmsvcs_utils.c ldom_xmpp_client.c ldom_utils.c
302072Svn83148OBJECTS = $(LIBSRCS:%.c=%.o)
312072Svn83148
322072Svn83148include ../../../Makefile.lib
332072Svn83148include ../../Makefile.lib
342072Svn83148
352158Sdb35262SRCS = $(LIBSRCS:%.c=../sparc/%.c)
362072Svn83148SRCDIR = ../sparc
372072Svn83148
382072Svn83148LIBS = $(DYNLIB) $(LINTLIB)
392072Svn83148
407850SVuong.Nguyen@Sun.COMCPPFLAGS += -I. -I$(SRC)/uts/sun4v -I$(ROOT)/usr/platform/sun4v/include \
417850SVuong.Nguyen@Sun.COM	-I/usr/include/libxml2 -I/usr/sfw/include
422072Svn83148CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
432072Svn83148CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
442072Svn83148
458357SVuong.Nguyen@Sun.COM$(DYNLIB) := LDLIBS += $(MACH_LDLIBS)
468357SVuong.Nguyen@Sun.COM$(DYNLIB) := LDLIBS += -lfmd_agent -lnvpair -lscf -lmdesc -lc -lxml2 -lsocket \
478357SVuong.Nguyen@Sun.COM	-lumem
482072Svn83148
492072Svn83148LINTFLAGS = -msux
507684SNick.Todd@Sun.COMLINTFLAGS64 = -msux -m64
512072Svn83148
522072Svn83148$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
532072Svn83148$(LINTLIB) := LINTFLAGS = -nsvx -I$(ROOT)/usr/platform/sun4v/include
547684SNick.Todd@Sun.COM$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 \
552072Svn83148	-I$(ROOT)/usr/platform/sun4v/include
562072Svn83148
572072Svn83148.KEEP_STATE:
582072Svn83148
592072Svn83148all: $(LIBS)
602072Svn83148
612072Svn83148lint: $(LINTLIB) lintcheck
622072Svn83148
632072Svn83148pics/%.o: ../$(MACH)/%.c
642072Svn83148	$(COMPILE.c) -o $@ $<
652072Svn83148	$(POST_PROCESS_O)
662072Svn83148
672072Svn83148include ../../../Makefile.targ
682072Svn83148include ../../Makefile.targ
69