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
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.
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]
23 #ident "%Z%%M% %I% %E% SMI"
25 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
28 # Makefile for building SLP API and slpd.
30 include $(SRC
)/Makefile.master
33 #Compile and create basic library.
35 # The most efficient parallelization factor is 2. Any more than this
36 # slows the build down. A factor of 1 is more efficient than > 2, so
37 # use the PARALELL directive only if you can restrict the factor to 2.
40 all: $(CLASSES
) $(ALL_SLP_CLASSES
)
43 -$(RM
) $(CLASSES
)/$(PKGPATH
)/*.class
$(CLASSES
)/$(PKGPATH
)/*.properties
44 -$(RM
) $(CLASSES
)/manifest
*
46 -$(RM
) manifest_slpd.template manifest_slp.template
49 -$(RM
) $(CLASSES
)/*.jar
50 -$(RM
) -r
$(CLASSES
)/META_INF
52 # Make the class dir, if it doesn't exist
56 #Make docs for the API only.
59 cd
$(SLPJAVASRC
); $(JAVADOC
) -public
-author
-version
-classpath
$(SLPCLASSPATH
) -d
$(DOC
) $(PKGNAME
)
61 $(CLASSES
)/$(PKGPATH
):
64 message_files
: $(CLASSES
)/$(PKGPATH
) $(CLASSES
)/$(PKGPATH
)/$(CLIENT_MSGS
) $(CLASSES
)/$(PKGPATH
)/$(SERVER_MSGS
)
66 $(CLASSES
)/$(PKGPATH
)/$(CLIENT_MSGS
): $(PKGPATH
)/$(CLIENT_MSGS
)
69 $(CLASSES
)/$(PKGPATH
)/$(SERVER_MSGS
): $(PKGPATH
)/$(SERVER_MSGS
)
72 _msg
: $(MSGDIRS
) $(MSGFILES
)
77 $(MSGDIR
)/%: $(PKGPATH
)/%
80 $(CLASSES
)/$(SLPDJAR
): $(ALL_SLP_CLASSES
) $(SLPDMANI
)
81 cd
$(CLASSES
); $(JAR
) cmf manifest.slpd
$@
$(PKGPATH
)
83 $(CLASSES
)/$(SLPJAR
): $(ALL_SLP_CLASSES
) $(SLPMANI
)
84 cd
$(CLASSES
); $(JAR
) cmf manifest.slp
$@
$(UA_SA_SUBSET_CLASSES
) $(PKGPATH
)/$(CLIENT_MSGS
)
90 $(MAKE
) -f Makefile.manifest CLASSES
=$(CLASSES
) PKGPATH
=$(PKGPATH
)
92 install: all message_files manifests
$(JARDESTDIR
) $(INSJARS
)
94 # empty targets for top-level building compatability
98 # jstyle check -- more for developer's convenience since the checks are
99 # not automated in the build.
102 $(JSTYLE
) -p
$(PKGPATH
)/*.java