xref: /titanic_51/usr/src/lib/print/Makefile (revision 6a59053b922dcd35760db6b042abda7cb6ef1c80)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include $(SRC)/Makefile.master
27
28SUBDIRS = \
29	libprint \
30	libpapi-common \
31	libpapi-dynamic \
32	libpapi-lpd \
33	libipp-core \
34	libhttp-core \
35	libpapi-ipp \
36	libipp-listener
37
38$(ENABLE_IPP_PRINTING) SUBDIRS += mod_ipp
39
40all :=                  TARGET = all
41clean :=                TARGET = clean
42clobber :=              TARGET = clobber
43install :=              TARGET = install
44install_h :=              TARGET = install_h
45lint :=                 TARGET = lint
46
47TEXT_DOMAIN=	SUNW_OST_OSLIB
48POFILE= print-lib.po
49
50.KEEP_STATE:
51
52all:	$(TXTS) $(SUBDIRS)
53
54#
55# Each message catalog file is generated in each sub
56# directory and copied to the usr/src/cmd/lp/ directory.
57# Those message catalog files are consolidated into one
58# message catalog file.  The consolidated one will be copied
59# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
60#
61
62_msg:	$(MSGDOMAIN)
63	@$(RM) $(POFILE)
64	$(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print`
65	@/bin/cat messages.po | sed '/domain/d' > $(POFILE)
66	@$(RM) messages.po
67	$(RM)  $(MSGDOMAIN)/$(POFILE)
68	/bin/cp $(POFILE) $(MSGDOMAIN)
69
70install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
71
72install_h clean strip lint: $(SUBDIRS)
73
74clobber: $(SUBDIRS) local_clobber
75
76local_clobber:
77	$(RM) $(CLOBBERFILES) $(POFILE)
78
79$(SUBDIRS):	FRC
80	@cd $@; pwd; $(MAKE) $(TARGET)
81
82FRC:
83
84include $(SRC)/Makefile.msg.targ
85
86# Dependencies
87libpapi-dynamic:	libpapi-common
88libpapi-lpd:		libpapi-dynamic
89libipp-core:		libpapi-common
90libpapi-ipp:		libpapi-common libipp-core libhttp-core
91libipp-listener:	libpapi-dynamic libipp-core
92mod_ipp:		libipp-listener
93