xref: /titanic_52/usr/src/lib/libds/Makefile.com (revision ba9236fbcb49a99c7d71c0c25d1e45cb2a75ac78)
130588217SMike Christensen#
230588217SMike Christensen# CDDL HEADER START
330588217SMike Christensen#
430588217SMike Christensen# The contents of this file are subject to the terms of the
530588217SMike Christensen# Common Development and Distribution License (the "License").
630588217SMike Christensen# You may not use this file except in compliance with the License.
730588217SMike Christensen#
830588217SMike Christensen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
930588217SMike Christensen# or http://www.opensolaris.org/os/licensing.
1030588217SMike Christensen# See the License for the specific language governing permissions
1130588217SMike Christensen# and limitations under the License.
1230588217SMike Christensen#
1330588217SMike Christensen# When distributing Covered Code, include this CDDL HEADER in each
1430588217SMike Christensen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1530588217SMike Christensen# If applicable, add the following below this CDDL HEADER, with the
1630588217SMike Christensen# fields enclosed by brackets "[]" replaced with your own identifying
1730588217SMike Christensen# information: Portions Copyright [yyyy] [name of copyright owner]
1830588217SMike Christensen#
1930588217SMike Christensen# CDDL HEADER END
2030588217SMike Christensen#
2130588217SMike Christensen#
2230588217SMike Christensen# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2330588217SMike Christensen# Use is subject to license terms.
2430588217SMike Christensen#
2530588217SMike Christensen#
2630588217SMike Christensen
2730588217SMike ChristensenLIBRARY = libds.a
2830588217SMike ChristensenVERS = .1
2930588217SMike Christensen
3030588217SMike ChristensenLIBSRCS = libds.c
3130588217SMike ChristensenOBJECTS = $(LIBSRCS:%.c=%.o)
3230588217SMike Christensen
3330588217SMike Christenseninclude ../../Makefile.lib
3430588217SMike Christensen
3530588217SMike ChristensenLIBS = $(DYNLIB) $(LINTLIB)
3630588217SMike Christensen
3730588217SMike ChristensenSRCDIR = ../common
3830588217SMike ChristensenSRCS = $(LIBSRCS:%.c=$(SRCDIR)/%.c)
3930588217SMike Christensen
4030588217SMike ChristensenCPPFLAGS += -I. -I$(SRC)/uts/sun4v
4130588217SMike ChristensenCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
4230588217SMike ChristensenCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
4330588217SMike Christensen
4430588217SMike ChristensenLDLIBS += -lsysevent -lnvpair -lc
4530588217SMike Christensen
4630588217SMike ChristensenLINTFLAGS = -msux
47*ba9236fbSMike ChristensenLINTFLAGS64 = -msux -m64
4830588217SMike Christensen
4930588217SMike Christensen$(LINTLIB) := SRCS = $(LINTSRC:%=$(SRCDIR)/%)
5030588217SMike Christensen$(LINTLIB) := LINTFLAGS = -nsvx -I$(ROOT)/usr/platform/sun4v/include
51*ba9236fbSMike Christensen$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 \
5230588217SMike Christensen	-I$(ROOT)/usr/platform/sun4v/include
5330588217SMike Christensen
5430588217SMike Christensen.KEEP_STATE:
5530588217SMike Christensen
5630588217SMike Christensenall: $(LIBS)
5730588217SMike Christensen
5830588217SMike Christensenlint: $(LINTLIB) lintcheck
5930588217SMike Christensen
6030588217SMike Christensenpics/%.o: $(SRCDIR)/%.c
6130588217SMike Christensen	$(COMPILE.c) -o $@ $<
6230588217SMike Christensen	$(POST_PROCESS_O)
6330588217SMike Christensen
6430588217SMike Christenseninclude ../../Makefile.targ
65