blob: a34afab69cc1103b2122e9b18f3c882afe69cab9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Makefile configuration for SLP.
# The SLP Java package
PKGPATH=com/sun/slp
PKGNAME=com.sun.slp
# The SLP directories.
SLPDIR=$(SRC)/lib/libslp
DOC=$(SLPDIR)/javadoc
CLASSES=$(SLPDIR)/classes
SLPJAVASRC=$(SLPDIR)/javalib
# SLP jar file, its ultimate destination, and packaging details
SLPJAR=slp.jar
SLPDJAR=slpd.jar
JARDESTDIR=$(ROOT)/usr/share/lib/slp
INSJARS=$(JARDESTDIR)/$(SLPJAR) $(JARDESTDIR)/$(SLPDJAR)
$(JARDESTDIR)/%: $(CLASSES)/%
$(INS.file)
# Manifest files
SLPMANI= $(CLASSES)/manifest.slp
SLPDMANI= $(CLASSES)/manifest.slpd
MANIFESTS= $(SLPMANI) $(SLPDMANI)
# Controlled CLASSPATH for making
SLPCLASSPATH=$(CLASSES):$(SLPJAVASRC)
# javac flags
JFLAGS= -O -d $(CLASSES) -sourcepath $(SLPCLASSPATH)
JFLAGS += -source 7 -target 7 -Xlint:-options
# The default make rule for Java files
COMPILE.java=$(JAVAC) $(JFLAGS)
$(CLASSES)/$(PKGPATH)/%.class: $(SLPJAVASRC)/$(PKGPATH)/%.java
$(COMPILE.java) $<
# Where to put the message files
MSGDIR = $(ROOT)/usr/share/lib/locale/$(PKGPATH)
MSGDIRS = $(ROOT)/usr/share/lib/locale \
$(ROOT)/usr/share/lib/locale/com \
$(ROOT)/usr/share/lib/locale/com/sun \
$(MSGDIR)
CLIENT_MSGS=ClientLib_en.properties
SERVER_MSGS=Server_en.properties
MSGFILES=$(MSGDIR)/$(CLIENT_MSGS) $(MSGDIR)/$(SERVER_MSGS)
$(JARDESTDIR)/$(SLPDJAR) := FILEMODE = 600
# All SLP classes, not including internal classes (since these are
# generated and packaged automatically buy this Makefile). Since
# we take advantage of -Xdepend, the strategy is to place trigger
# classes at the beginning of the list; these will trigger javac to
# compile all other classes.
SLP_CLASSES=\
UARequester.class SARequester.class slpd.class \
SunServerDATable.class AttributeVerifier.class \
SunDATable.class SLPHeaderV2.class SLPServerHeaderV2.class \
SLPHeaderV1.class SLPV1Manager.class Syslog.class \
StderrLog.class SLPDgui.class \
ServiceLocationException.class ServiceLocationEnumeration.class \
ServiceLocationEnumerator.class Assert.class \
ServiceType.class ServiceURL.class \
ServiceLocationAttribute.class ServerAttribute.class \
AttributeString.class AttributePattern.class \
Opaque.class AuthBlock.class \
Defaults.class SLPConfig.class \
SrvLocMsg.class SrvLocHeader.class\
SrvLocMsgImpl.class CAttrMsg.class \
SAttrMsg.class CDAAdvert.class \
SDAAdvert.class CSAAdvert.class \
SSAAdvert.class CSrvMsg.class \
SSrvMsg.class CSrvTypeMsg.class \
SSrvTypeMsg.class CSrvReg.class \
SSrvReg.class CSrvDereg.class \
SSrvDereg.class DATable.class \
ServiceStore.class ServiceStoreFactory.class \
ServiceTable.class ServiceStoreInMemory.class \
Advertiser.class Locator.class \
ServiceLocationManager.class PermSARegTable.class \
DAAdvertiser.class ServerDATable.class \
Listener.class StreamListener.class \
RequestHandler.class Transact.class \
SLPV1SAttrMsg.class SLPV1SDAAdvert.class \
SLPV1SSrvDereg.class SLPV1SSrvMsg.class \
SLPV1SSrvReg.class SLPV1SSrvTypeMsg.class \
ServiceLocationAttributeV1.class ServiceURLV1.class \
SLPTemplateRegistry.class ActiveDiscoverer.class \
AttributeDescriptor.class ClientMsgManager.class \
IANACharCode.class Parser.class \
ServiceLocationAttributeVerifier.class SLPV1CDAAdvert.class \
URLAttributeVerifier.class TemplateRegistry.class \
ServiceLocationAttributeDescriptor.class \
SLPTokenizer.class
# This is a hand-crafted subset of classes that are needed for slp.jar.
# We take the extra effort here so that customers don't need to pull
# in slpd.jar, which is more than double the size of slp.jar, when
# they will only need these classes.
UA_SA_SUBSET_CLASSES_ORIG=\
Advertiser.class Assert.class AttributeString.class \
AuthBlock.class CAttrMsg.class CDAAdvert.class \
CSAAdvert.class CSrvDereg.class CSrvMsg.class \
CSrvReg.class CSrvTypeMsg.class DATable\$$DARecord.class \
SLPHeaderV2.class SrvLocHeader.class SrvLocMsgImpl.class \
DATable.class Defaults.class \
Locator.class Opaque.class PermSARegTable.class \
SARequester.class SLPConfig.class Syslog.class \
ServiceURL.class SrvLocMsg.class Transact.class \
ServerAttribute.class ServiceLocationAttribute.class \
ServiceLocationEnumeration.class ServiceLocationEnumerator.class \
ServiceLocationException.class ServiceType.class \
UARequester.class ServiceLocationManager.class \
SunDATable.class TemplateRegistry.class SLPTemplateRegistry.class \
ServiceLocationAttributeVerifier.class AttributeVerifier.class \
ServiceLocationAttributeDescriptor.class AttributeDescriptor.class \
URLAttributeVerifier.class StderrLog.class \
StderrLog.class SLPConfig\$$SLPProperties.class \
SLPHeaderV2\$$OptionParser.class SLPHeaderV2\$$SLPOption.class \
SLPTokenizer.class
ALL_SLP_CLASSES=${SLP_CLASSES:%=$(CLASSES)/$(PKGPATH)/%}
UA_SA_SUBSET_CLASSES=${UA_SA_SUBSET_CLASSES_ORIG:%=$(PKGPATH)/%}
|