xref: /titanic_50/usr/src/lib/libvscan/Makefile.com (revision 911106dfb16696472af8c1b7b4c554a829354fa8)
1*911106dfSjm199354#
2*911106dfSjm199354# CDDL HEADER START
3*911106dfSjm199354#
4*911106dfSjm199354# The contents of this file are subject to the terms of the
5*911106dfSjm199354# Common Development and Distribution License (the "License").
6*911106dfSjm199354# You may not use this file except in compliance with the License.
7*911106dfSjm199354#
8*911106dfSjm199354# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*911106dfSjm199354# or http://www.opensolaris.org/os/licensing.
10*911106dfSjm199354# See the License for the specific language governing permissions
11*911106dfSjm199354# and limitations under the License.
12*911106dfSjm199354#
13*911106dfSjm199354# When distributing Covered Code, include this CDDL HEADER in each
14*911106dfSjm199354# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*911106dfSjm199354# If applicable, add the following below this CDDL HEADER, with the
16*911106dfSjm199354# fields enclosed by brackets "[]" replaced with your own identifying
17*911106dfSjm199354# information: Portions Copyright [yyyy] [name of copyright owner]
18*911106dfSjm199354#
19*911106dfSjm199354# CDDL HEADER END
20*911106dfSjm199354#
21*911106dfSjm199354#
22*911106dfSjm199354# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*911106dfSjm199354# Use is subject to license terms.
24*911106dfSjm199354#
25*911106dfSjm199354# ident	"%Z%%M%	%I%	%E% SMI"
26*911106dfSjm199354#
27*911106dfSjm199354
28*911106dfSjm199354LIBRARY= libvscan.a
29*911106dfSjm199354VERS= .1
30*911106dfSjm199354
31*911106dfSjm199354OBJS_SHARED=
32*911106dfSjm199354OBJS_COMMON= libvscan.o
33*911106dfSjm199354
34*911106dfSjm199354OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED)
35*911106dfSjm199354
36*911106dfSjm199354include ../../Makefile.lib
37*911106dfSjm199354
38*911106dfSjm199354LIBS=	$(DYNLIB) $(LINTLIB)
39*911106dfSjm199354
40*911106dfSjm199354SRCDIR =	../common
41*911106dfSjm199354SRCS=	$(OBJS_COMMON:%.o=$(SRCDIR)/%.c)	\
42*911106dfSjm199354	$(OBJS_SHARED:%.o=$(SRC)/common/vscan/%.c)
43*911106dfSjm199354$(LINTLIB) := SRCS=	$(SRCDIR)/$(LINTSRC)
44*911106dfSjm199354
45*911106dfSjm199354# Reset the Makefile.lib macro ROOTLIBDIR to refer to usr/lib/vscan
46*911106dfSjm199354ROOTLIBDIR = $(ROOT)/usr/lib/vscan
47*911106dfSjm199354ROOTHDRDIR = $(ROOT)/usr/include
48*911106dfSjm199354ROOTHDRS = $(HDRS:%=$(ROOTHDRDIR)/%)
49*911106dfSjm199354
50*911106dfSjm199354$(ROOTLIBDIR):
51*911106dfSjm199354	$(INS.dir)
52*911106dfSjm199354
53*911106dfSjm199354LDLIBS +=	-lc -lscf -lsecdb -lnsl -lm
54*911106dfSjm199354CFLAGS +=   $(CCVERBOSE)
55*911106dfSjm199354CPPFLAGS += -I$(SRCDIR)
56*911106dfSjm199354DYNFLAGS +=	-R/usr/lib/vscan
57*911106dfSjm199354LDLIBS32 +=	-L$(ROOT)/usr/lib/vscan
58*911106dfSjm199354
59*911106dfSjm199354#C99MODE=	-xc99=%all
60*911106dfSjm199354#C99LMODE=	-Xc99=%all
61*911106dfSjm199354
62*911106dfSjm199354.KEEP_STATE:
63*911106dfSjm199354
64*911106dfSjm199354install: all $(ROOTLIBDIR) install_h
65*911106dfSjm199354
66*911106dfSjm199354install_h: $(ROOTHDRDIR) $(ROOTHDRS)
67*911106dfSjm199354
68*911106dfSjm199354all: $(LIBS)
69*911106dfSjm199354
70*911106dfSjm199354lint: lintcheck
71*911106dfSjm199354
72*911106dfSjm199354include ../../Makefile.targ
73*911106dfSjm199354
74