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