2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A# Makefile for building SLP API and slpd.
2N/A
2N/Ainclude $(SRC)/Makefile.master
2N/Ainclude Makefile.conf
2N/A
2N/A#Compile and create basic library.
2N/A
2N/A# The most efficient parallelization factor is 2. Any more than this
2N/A# slows the build down. A factor of 1 is more efficient than > 2, so
2N/A# use the PARALELL directive only if you can restrict the factor to 2.
2N/A.NO_PARALLEL:
2N/A
2N/Aall: $(CLASSES) $(ALL_SLP_CLASSES)
2N/A
2N/Aclean:
2N/A -$(RM) $(CLASSES)/$(PKGPATH)/*.class $(CLASSES)/$(PKGPATH)/*.properties
2N/A -$(RM) $(CLASSES)/manifest*
2N/A -$(RM) -r $(DOC)/*
2N/A -$(RM) manifest_slpd.template manifest_slp.template
2N/A
2N/Aclobber: clean
2N/A -$(RM) $(CLASSES)/*.jar
2N/A -$(RM) -r $(CLASSES)/META_INF
2N/A
2N/A# Make the class dir, if it doesn't exist
2N/A$(CLASSES):
2N/A -@mkdir -p $@
2N/A
2N/A#Make docs for the API only.
2N/Adocs:
2N/A -@mkdir -p $(DOC)
2N/A cd $(SLPJAVASRC); $(JAVADOC) -public -author -version -classpath $(SLPCLASSPATH) -d $(DOC) $(PKGNAME)
2N/A
2N/A$(CLASSES)/$(PKGPATH):
2N/A $(INS.dir)
2N/A
2N/Amessage_files: $(CLASSES)/$(PKGPATH) $(CLASSES)/$(PKGPATH)/$(CLIENT_MSGS) $(CLASSES)/$(PKGPATH)/$(SERVER_MSGS)
2N/A
2N/A$(CLASSES)/$(PKGPATH)/$(CLIENT_MSGS): $(PKGPATH)/$(CLIENT_MSGS)
2N/A cp -f $? $@
2N/A
2N/A$(CLASSES)/$(PKGPATH)/$(SERVER_MSGS): $(PKGPATH)/$(SERVER_MSGS)
2N/A cp -f $? $@
2N/A
2N/A_msg: $(MSGDIRS) $(MSGFILES)
2N/A
2N/A$(MSGDIRS):
2N/A $(INS.dir)
2N/A
2N/A$(MSGDIR)/%: $(PKGPATH)/%
2N/A $(INS.file)
2N/A
2N/A$(CLASSES)/$(SLPDJAR): $(ALL_SLP_CLASSES) $(SLPDMANI)
2N/A cd $(CLASSES); $(JAR) cmf manifest.slpd $@ $(PKGPATH)
2N/A
2N/A$(CLASSES)/$(SLPJAR): $(ALL_SLP_CLASSES) $(SLPMANI)
2N/A cd $(CLASSES); $(JAR) cmf manifest.slp $@ $(UA_SA_SUBSET_CLASSES) $(PKGPATH)/$(CLIENT_MSGS)
2N/A
2N/A$(JARDESTDIR):
2N/A $(INS.dir)
2N/A
2N/Amanifests:
2N/A $(MAKE) -f Makefile.manifest CLASSES=$(CLASSES) PKGPATH=$(PKGPATH)
2N/A
2N/Ainstall: all message_files manifests $(JARDESTDIR) $(INSJARS)
2N/A
2N/A# empty targets for top-level building compatibility
2N/A
2N/Ainstall_h lint:
2N/A
2N/A# jstyle check -- more for developer's convenience since the checks are
2N/A# not automated in the build.
2N/A
2N/Acheck:
2N/A $(JSTYLE) -p $(PKGPATH)/*.java