xref: /titanic_41/usr/src/cmd/print/printmgr/Makefile (revision b86efd96f8acd85ddaa930a2f0c1d664237e4aaf)
1#
2# CDDL HEADER START
3#
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
7# with the License.
8#
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.
13#
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]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# Makefile for print manager
29#
30PROG =		pmserver.jar pmclient.jar
31
32include		$(SRC)/cmd/Makefile.cmd
33
34SUBDIRS =	com bin
35
36all	:=	TARGET= all
37install	:=	TARGET= install
38clean	:=	TARGET= clean
39clobber	:=	TARGET= clobber
40lint	:=	TARGET= lint
41_msg	:=	TARGET= _msg
42
43ROOTDIRS =	$(ROOT)/usr/sadm/admin \
44		$(ROOT)/usr/sadm/admin/printmgr \
45		$(ROOT)/usr/sadm/admin/printmgr/classes
46
47ROOTBIN =	$(ROOT)/usr/sadm/admin/printmgr/classes
48ROOTBINPROG =   $(PROG:%=$(ROOTBIN)/%)
49
50$(ROOTBINPROG):= FILEMODE	= 644
51$(ROOTBINPROG):= OWNER		= root
52$(ROOTBINPROG):= GROUP		= lp
53
54.KEEP_STATE:
55
56all:		$(SUBDIRS)
57install:	$(SUBDIRS) $(ROOTDIRS) $(ROOTBINPROG) .WAIT links
58
59links:
60		$(RM) $(ROOTUSRSBIN)/printmgr
61		$(SYMLINK) ../../usr/sadm/admin/bin/printmgr \
62			$(ROOTUSRSBIN)/printmgr
63
64clean clobber:	$(SUBDIRS)
65	-$(RM) $(PROG)
66
67lint _msg:	$(SUBDIRS)
68
69strip:
70
71$(PROG): FRC
72	@if [ $@ = "pmclient.jar" ]; \
73	then $(JAR) cf $@ \
74		com/sun/admin/pm/client/*class \
75		com/sun/admin/pm/client/images/*gif 2>/dev/null; \
76	else $(JAR) cf $@ \
77		com/sun/admin/pm/server/*class 2>/dev/null; \
78	fi
79
80$(SUBDIRS):	FRC
81	@cd $@; pwd; $(MAKE) $(TARGET)
82
83$(ROOTDIRS):
84	$(INS.dir)
85
86$(ROOTBIN)/%: %
87	$(INS.file)
88
89FRC:
90