xref: /titanic_52/usr/src/lib/libsmedia/plugins/Makefile.com (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libsmedia/plugins/Makefile.com
29
30MAPFILE=	$(MAPDIR)/mapfile
31
32LIBS =		$(DYNLIB)
33
34CPPFLAGS +=	-I../inc -I$(SRC)/cmd/smserverd/
35DYNFLAGS +=	-M $(MAPFILE)
36LDLIBS +=	-lc $(PLUGIN_SPECIFIC_LIB)
37
38LINTPLUGIN  = llib-$(LIBNAME).ln
39PLUGINDIR = $(ROOTLIBDIR)/smedia
40PLUGINDIR64 = $(ROOTLIBDIR)/smedia/$(MACH64)
41FILEMODE = 555
42
43SOFILES	= $(LIBRARY:%.a=%.so)
44PLUGINS  = $(LIBS:%=$(PLUGINDIR)/%)
45PLUGINS64  = $(LIBS:%=$(PLUGINDIR64)/%)
46
47CLEANFILES=	$(LINTOUT) $(LINTPLUGIN)
48CLOBBERFILES +=	$(MAPFILE)
49
50SRCS = $(OBJECTS:%.o=../common/%.c)
51LINTFLAGS += -xu
52LINTFLAGS64 += -xu
53$(LINTPLUGIN) :=	SRCS=$(OBJECTS:%.o=../common/%.c)
54$(LINTPLUGIN) :=	LINTFLAGS=-nvx
55$(LINTPLUGIN) :=	TARGET_ARCH=
56
57LINTSRC=	$(LINTPLUGIN:%.ln=%)
58ROOTLINTDIR=	$(ROOTLIBDIR)
59ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
60
61$(DYNLIB):	$(MAPFILE)
62
63.KEEP_STATE:
64
65$(MAPFILE):
66	@cd $(MAPDIR); $(MAKE) mapfile
67
68lint:	lintcheck
69
70objs/%.o pics/%.o: ../common/%.c
71	$(COMPILE.c) -o $@ $<
72	$(POST_PROCESS_O)
73
74$(PLUGINDIR) :
75	${INS.dir}
76
77$(PLUGINDIR64) :
78	${INS.dir}
79
80$(PLUGINDIR)/% : %
81	${INS.file}
82
83$(PLUGINDIR64)/% : %
84	${INS.file}
85
86