xref: /onnv-gate/usr/src/lib/libslp/javalib/Makefile (revision 0:68f95e015346)
1*0Sstevel@tonic-gate#
2*0Sstevel@tonic-gate# CDDL HEADER START
3*0Sstevel@tonic-gate#
4*0Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate# with the License.
8*0Sstevel@tonic-gate#
9*0Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate# See the License for the specific language governing permissions
12*0Sstevel@tonic-gate# and limitations under the License.
13*0Sstevel@tonic-gate#
14*0Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate#
20*0Sstevel@tonic-gate# CDDL HEADER END
21*0Sstevel@tonic-gate#
22*0Sstevel@tonic-gate#
23*0Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
24*0Sstevel@tonic-gate#
25*0Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26*0Sstevel@tonic-gate# Use is subject to license terms.
27*0Sstevel@tonic-gate#
28*0Sstevel@tonic-gate# Makefile for building SLP API and slpd.
29*0Sstevel@tonic-gate
30*0Sstevel@tonic-gateinclude $(SRC)/Makefile.master
31*0Sstevel@tonic-gateinclude Makefile.conf
32*0Sstevel@tonic-gate
33*0Sstevel@tonic-gate#Compile and create basic library.
34*0Sstevel@tonic-gate
35*0Sstevel@tonic-gate# The most efficient parallelization factor is 2. Any more than this
36*0Sstevel@tonic-gate# slows the build down. A factor of 1 is more efficient than > 2, so
37*0Sstevel@tonic-gate# use the PARALELL directive only if you can restrict the factor to 2.
38*0Sstevel@tonic-gate.NO_PARALLEL:
39*0Sstevel@tonic-gate
40*0Sstevel@tonic-gateall:            $(CLASSES) $(ALL_SLP_CLASSES)
41*0Sstevel@tonic-gate
42*0Sstevel@tonic-gateclean:
43*0Sstevel@tonic-gate		-$(RM) $(CLASSES)/$(PKGPATH)/*.class $(CLASSES)/$(PKGPATH)/*.properties
44*0Sstevel@tonic-gate		-$(RM) $(CLASSES)/manifest*
45*0Sstevel@tonic-gate		-$(RM) -r $(DOC)/*
46*0Sstevel@tonic-gate		-$(RM) manifest_slpd.template manifest_slp.template
47*0Sstevel@tonic-gate
48*0Sstevel@tonic-gateclobber:	clean
49*0Sstevel@tonic-gate		-$(RM) $(CLASSES)/*.jar
50*0Sstevel@tonic-gate		-$(RM) -r $(CLASSES)/META_INF
51*0Sstevel@tonic-gate
52*0Sstevel@tonic-gate# Make the class dir, if it doesn't exist
53*0Sstevel@tonic-gate$(CLASSES):
54*0Sstevel@tonic-gate		-@mkdir -p $@
55*0Sstevel@tonic-gate
56*0Sstevel@tonic-gate#Make docs for the API only.
57*0Sstevel@tonic-gatedocs:
58*0Sstevel@tonic-gate		-@mkdir -p $(DOC)
59*0Sstevel@tonic-gate		cd $(SLPJAVASRC); $(JAVADOC) -public -author -version -classpath $(SLPCLASSPATH) -d $(DOC) $(PKGNAME)
60*0Sstevel@tonic-gate
61*0Sstevel@tonic-gate$(CLASSES)/$(PKGPATH):
62*0Sstevel@tonic-gate		$(INS.dir)
63*0Sstevel@tonic-gate
64*0Sstevel@tonic-gatemessage_files:	$(CLASSES)/$(PKGPATH) $(CLASSES)/$(PKGPATH)/$(CLIENT_MSGS) $(CLASSES)/$(PKGPATH)/$(SERVER_MSGS)
65*0Sstevel@tonic-gate
66*0Sstevel@tonic-gate$(CLASSES)/$(PKGPATH)/$(CLIENT_MSGS): $(PKGPATH)/$(CLIENT_MSGS)
67*0Sstevel@tonic-gate	cp -f $? $@
68*0Sstevel@tonic-gate
69*0Sstevel@tonic-gate$(CLASSES)/$(PKGPATH)/$(SERVER_MSGS): $(PKGPATH)/$(SERVER_MSGS)
70*0Sstevel@tonic-gate	cp -f $? $@
71*0Sstevel@tonic-gate
72*0Sstevel@tonic-gate_msg:		$(MSGDIRS) $(MSGFILES)
73*0Sstevel@tonic-gate
74*0Sstevel@tonic-gate$(MSGDIRS):
75*0Sstevel@tonic-gate		$(INS.dir)
76*0Sstevel@tonic-gate
77*0Sstevel@tonic-gate$(MSGDIR)/%:	$(PKGPATH)/%
78*0Sstevel@tonic-gate		$(INS.file)
79*0Sstevel@tonic-gate
80*0Sstevel@tonic-gate$(CLASSES)/$(SLPDJAR): $(ALL_SLP_CLASSES) $(SLPDMANI)
81*0Sstevel@tonic-gate		cd $(CLASSES); $(JAR) cmf manifest.slpd $@ $(PKGPATH)
82*0Sstevel@tonic-gate
83*0Sstevel@tonic-gate$(CLASSES)/$(SLPJAR): $(ALL_SLP_CLASSES) $(SLPMANI)
84*0Sstevel@tonic-gate		cd $(CLASSES); $(JAR) cmf manifest.slp $@ $(UA_SA_SUBSET_CLASSES) $(PKGPATH)/$(CLIENT_MSGS)
85*0Sstevel@tonic-gate
86*0Sstevel@tonic-gate$(JARDESTDIR):
87*0Sstevel@tonic-gate		$(INS.dir)
88*0Sstevel@tonic-gate
89*0Sstevel@tonic-gatemanifests:
90*0Sstevel@tonic-gate	$(MAKE) -f Makefile.manifest CLASSES=$(CLASSES) PKGPATH=$(PKGPATH)
91*0Sstevel@tonic-gate
92*0Sstevel@tonic-gateinstall:	all message_files manifests $(JARDESTDIR) $(INSJARS)
93*0Sstevel@tonic-gate
94*0Sstevel@tonic-gate# empty targets for top-level building compatability
95*0Sstevel@tonic-gate
96*0Sstevel@tonic-gateinstall_h lint:
97*0Sstevel@tonic-gate
98*0Sstevel@tonic-gate# jstyle check -- more for developer's convenience since the checks are
99*0Sstevel@tonic-gate# not automated in the build.
100*0Sstevel@tonic-gate
101*0Sstevel@tonic-gatecheck:
102*0Sstevel@tonic-gate	$(JSTYLE) -p $(PKGPATH)/*.java
103