17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate# with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# 237c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# Makefile for building SLP API and slpd. 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master 297c478bd9Sstevel@tonic-gateinclude Makefile.conf 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate#Compile and create basic library. 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate# The most efficient parallelization factor is 2. Any more than this 347c478bd9Sstevel@tonic-gate# slows the build down. A factor of 1 is more efficient than > 2, so 357c478bd9Sstevel@tonic-gate# use the PARALELL directive only if you can restrict the factor to 2. 367c478bd9Sstevel@tonic-gate.NO_PARALLEL: 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateall: $(CLASSES) $(ALL_SLP_CLASSES) 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateclean: 417c478bd9Sstevel@tonic-gate -$(RM) $(CLASSES)/$(PKGPATH)/*.class $(CLASSES)/$(PKGPATH)/*.properties 427c478bd9Sstevel@tonic-gate -$(RM) $(CLASSES)/manifest* 437c478bd9Sstevel@tonic-gate -$(RM) -r $(DOC)/* 447c478bd9Sstevel@tonic-gate -$(RM) manifest_slpd.template manifest_slp.template 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateclobber: clean 477c478bd9Sstevel@tonic-gate -$(RM) $(CLASSES)/*.jar 487c478bd9Sstevel@tonic-gate -$(RM) -r $(CLASSES)/META_INF 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate# Make the class dir, if it doesn't exist 517c478bd9Sstevel@tonic-gate$(CLASSES): 527c478bd9Sstevel@tonic-gate -@mkdir -p $@ 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate#Make docs for the API only. 557c478bd9Sstevel@tonic-gatedocs: 567c478bd9Sstevel@tonic-gate -@mkdir -p $(DOC) 577c478bd9Sstevel@tonic-gate cd $(SLPJAVASRC); $(JAVADOC) -public -author -version -classpath $(SLPCLASSPATH) -d $(DOC) $(PKGNAME) 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate$(CLASSES)/$(PKGPATH): 607c478bd9Sstevel@tonic-gate $(INS.dir) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gatemessage_files: $(CLASSES)/$(PKGPATH) $(CLASSES)/$(PKGPATH)/$(CLIENT_MSGS) $(CLASSES)/$(PKGPATH)/$(SERVER_MSGS) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate$(CLASSES)/$(PKGPATH)/$(CLIENT_MSGS): $(PKGPATH)/$(CLIENT_MSGS) 657c478bd9Sstevel@tonic-gate cp -f $? $@ 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate$(CLASSES)/$(PKGPATH)/$(SERVER_MSGS): $(PKGPATH)/$(SERVER_MSGS) 687c478bd9Sstevel@tonic-gate cp -f $? $@ 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate_msg: $(MSGDIRS) $(MSGFILES) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate$(MSGDIRS): 737c478bd9Sstevel@tonic-gate $(INS.dir) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate$(MSGDIR)/%: $(PKGPATH)/% 767c478bd9Sstevel@tonic-gate $(INS.file) 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate$(CLASSES)/$(SLPDJAR): $(ALL_SLP_CLASSES) $(SLPDMANI) 797c478bd9Sstevel@tonic-gate cd $(CLASSES); $(JAR) cmf manifest.slpd $@ $(PKGPATH) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate$(CLASSES)/$(SLPJAR): $(ALL_SLP_CLASSES) $(SLPMANI) 827c478bd9Sstevel@tonic-gate cd $(CLASSES); $(JAR) cmf manifest.slp $@ $(UA_SA_SUBSET_CLASSES) $(PKGPATH)/$(CLIENT_MSGS) 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate$(JARDESTDIR): 857c478bd9Sstevel@tonic-gate $(INS.dir) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gatemanifests: 887c478bd9Sstevel@tonic-gate $(MAKE) -f Makefile.manifest CLASSES=$(CLASSES) PKGPATH=$(PKGPATH) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateinstall: all message_files manifests $(JARDESTDIR) $(INSJARS) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate# empty targets for top-level building compatability 93*241c90a0SRichard Loweinstall_h: 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gate# jstyle check -- more for developer's convenience since the checks are 967c478bd9Sstevel@tonic-gate# not automated in the build. 977c478bd9Sstevel@tonic-gatecheck: 987c478bd9Sstevel@tonic-gate $(JSTYLE) -p $(PKGPATH)/*.java 99