xref: /titanic_50/usr/src/lib/libslp/javalib/Makefile.manifest (revision 3f7d54a6b84904c8f4d8daa4c7b577bede7df8b9)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1999, by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# Makefile for building Jar manifests. The file lists in the
29# manifests are dynamically generated from the lists of files
30# built by javalib/Makefile; this way there is one and only
31# one list of files which needs to be maintained. slpd.jar
32# includes all generated classfiles in com/sun/slp, so its
33# file list is generated by 'ls com/sun/slp/*.class'. slp.jar
34# contains only a subset of files; these files are named by
35# the UA_SA_SUBSET_CLASSES macro.
36#
37
38include $(SRC)/Makefile.master
39include Makefile.conf
40
41$(SLPMANI) := JARFILES = $(UA_SA_SUBSET_CLASSES) $(PKGPATH)/$(CLIENT_MSGS)
42$(SLPMANI) := SPECTITLE = "Service Location Protocol API"
43$(SLPDMANI) := JARFILES:sh= cd "$CLASSES"; ls "$PKGPATH"/*.class $PKGPATH/*.properties | sed 's/\$/\\\$\$/g'
44$(SLPDMANI) := SPECTITLE = "Service Location Protocol Daemon"
45SPECVERSION = 1.0
46SPECVENDOR = IETF
47IMPLTITLE = $(PKGNAME)
48IMPLVERS:sh=echo [`date`]
49IMPLVEND = "Sun Microsystems, Inc."
50$(SLPDMANI) := MAINCLASS = "Main-class: com.sun.slp.slpd\\n"
51$(SLPMANI) := MAINCLASS = ""
52all: $(MANIFESTS)
53
54$(MANIFESTS): Makefile.manifest Makefile.conf
55	@$(ECHO) "Manifest-Version: 1.0" > $@;
56	@$(ECHO) "Specification-Title: $(SPECTITLE)" >> $@;
57	@$(ECHO) "Specification-Version: $(SPECVERSION)" >> $@;
58	@$(ECHO) "Specification-Vendor: $(SPECVENDOR)" >> $@;
59	@$(ECHO) "Implementation-Title: $(IMPLTITLE)" >> $@;
60	@$(ECHO) "Implementation-Version: $(IMPLVERS)" >> $@;
61	@$(ECHO) "Implementation-Vendor: $(IMPLVEND)" >> $@;
62	@$(ECHO) $(MAINCLASS) >> $@;
63	@for f in $(JARFILES); \
64	do \
65		$(ECHO) "Name: $$f" >> $@; \
66		$(ECHO) >> $@; \
67	done;
68