xref: /titanic_52/usr/src/lib/libsmedia/plugins/Makefile.plugin (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libsmedia/plugins/Makefile.plugin
29#
30# This file contains the targets and rules for plugins
31
32MAPFILE=	$(MAPDIR)/mapfile
33LIBS =		$(DYNLIB)
34
35CPPFLAGS +=	-I../inc -I$(SRC)/cmd/smserverd/
36
37POFILE  = $(LIBRARY:%.a=%.po)
38POFILE_SRCS =  $(OBJECTS:%.o=common/%.c)
39SED	= /usr/bin/sed
40CP	= /usr/bin/cp
41
42i386_ARCHITECTURES =    i386 $(BUILD64) amd64
43sparc_ARCHITECTURES =   sparc sparcv9
44
45SUBDIRS=	spec .WAIT $($(MACH)_ARCHITECTURES)
46
47all :=		TARGET= all
48clean :=	TARGET= clean
49clobber :=	TARGET= clobber
50install :=	TARGET= install
51lint :=		TARGET= lint
52
53all install clean lint: $(SUBDIRS)
54
55clobber : $(SUBDIRS)
56	$(RM) -f $(POFILE)
57
58$(MACH) $(MACH64) spec: FRC
59	@cd $@; pwd; $(MAKE) $(TARGET)
60
61FRC:
62
63.KEEP_STATE:
64
65catalog:  $(MSGDOMAIN) $(POFILE)
66	$(RM) $(MSGDOMAIN)/$(POFILE)
67	$(CP) $(POFILE) $(MSGDOMAIN)
68
69$(POFILE) : $(POFILE_SRCS)
70	$(RM) $@
71	$(COMPILE.cpp) $(POFILE_SRCS) | $(XGETTEXT) $(XGETFLAGS) -
72	$(SED) -e '/^domain/d' messages.po > $@
73	$(RM) messages.po
74
75