xref: /titanic_44/usr/src/lib/print/Makefile (revision 14c3be3932e278c263b32fb17daff38fd4de18f8)
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
5355b4669Sjacobs# Common Development and Distribution License (the "License").
6355b4669Sjacobs# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22355b4669Sjacobs# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
25*14c3be39SGordon Ross
26*14c3be39SGordon Rossinclude $(SRC)/Makefile.master
277c478bd9Sstevel@tonic-gate
28355b4669SjacobsSUBDIRS = \
29355b4669Sjacobs	libprint \
30355b4669Sjacobs	libpapi-common \
31355b4669Sjacobs	libpapi-dynamic \
32355b4669Sjacobs	libpapi-lpd \
33355b4669Sjacobs	libipp-core \
34355b4669Sjacobs	libhttp-core \
35355b4669Sjacobs	libpapi-ipp \
36*14c3be39SGordon Ross	libipp-listener
37*14c3be39SGordon Ross
38*14c3be39SGordon Ross$(ENABLE_IPP_PRINTING) SUBDIRS += mod_ipp
397c478bd9Sstevel@tonic-gate
40355b4669Sjacobsall :=                  TARGET = all
41355b4669Sjacobsclean :=                TARGET = clean
42355b4669Sjacobsclobber :=              TARGET = clobber
43355b4669Sjacobsinstall :=              TARGET = install
44355b4669Sjacobsinstall_h :=              TARGET = install_h
45355b4669Sjacobslint :=                 TARGET = lint
467c478bd9Sstevel@tonic-gate
47355b4669SjacobsTEXT_DOMAIN=	SUNW_OST_OSLIB
48355b4669SjacobsPOFILE= print-lib.po
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gate.KEEP_STATE:
517c478bd9Sstevel@tonic-gate
52355b4669Sjacobsall:	$(TXTS) $(SUBDIRS)
537c478bd9Sstevel@tonic-gate
54355b4669Sjacobs#
55355b4669Sjacobs# Each message catalog file is generated in each sub
56355b4669Sjacobs# directory and copied to the usr/src/cmd/lp/ directory.
57355b4669Sjacobs# Those message catalog files are consolidated into one
58355b4669Sjacobs# message catalog file.  The consolidated one will be copied
59355b4669Sjacobs# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
60355b4669Sjacobs#
617c478bd9Sstevel@tonic-gate
62355b4669Sjacobs_msg:	$(MSGDOMAIN)
63355b4669Sjacobs	@$(RM) $(POFILE)
64355b4669Sjacobs	$(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print`
65355b4669Sjacobs	@/bin/cat messages.po | sed '/domain/d' > $(POFILE)
66355b4669Sjacobs	@$(RM) messages.po
67355b4669Sjacobs	$(RM)  $(MSGDOMAIN)/$(POFILE)
68355b4669Sjacobs	/bin/cp $(POFILE) $(MSGDOMAIN)
697c478bd9Sstevel@tonic-gate
70355b4669Sjacobsinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
717c478bd9Sstevel@tonic-gate
72355b4669Sjacobsinstall_h clean strip lint: $(SUBDIRS)
737c478bd9Sstevel@tonic-gate
74355b4669Sjacobsclobber: $(SUBDIRS) local_clobber
757c478bd9Sstevel@tonic-gate
76355b4669Sjacobslocal_clobber:
77355b4669Sjacobs	$(RM) $(CLOBBERFILES) $(POFILE)
787c478bd9Sstevel@tonic-gate
79355b4669Sjacobs$(SUBDIRS):	FRC
80355b4669Sjacobs	@cd $@; pwd; $(MAKE) $(TARGET)
817c478bd9Sstevel@tonic-gate
82355b4669SjacobsFRC:
837c478bd9Sstevel@tonic-gate
84355b4669Sjacobsinclude $(SRC)/Makefile.msg.targ
857c478bd9Sstevel@tonic-gate
86355b4669Sjacobs# Dependencies
87355b4669Sjacobslibpapi-dynamic:	libpapi-common
88355b4669Sjacobslibpapi-lpd:		libpapi-dynamic
89355b4669Sjacobslibipp-core:		libpapi-common
90355b4669Sjacobslibpapi-ipp:		libpapi-common libipp-core libhttp-core
91355b4669Sjacobslibipp-listener:	libpapi-dynamic libipp-core
92355b4669Sjacobsmod_ipp:		libipp-listener
93