xref: /titanic_51/usr/src/lib/print/Makefile (revision a31148363f598def767ac48c5d82e1572e44b935)
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# ident	"%Z%%M%	%I%	%E% SMI"
26#
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	mod_ipp
38
39all :=                  TARGET = all
40clean :=                TARGET = clean
41clobber :=              TARGET = clobber
42install :=              TARGET = install
43install_h :=              TARGET = install_h
44lint :=                 TARGET = lint
45
46include $(SRC)/Makefile.master
47
48TEXT_DOMAIN=	SUNW_OST_OSLIB
49POFILE= print-lib.po
50
51.KEEP_STATE:
52
53all:	$(TXTS) $(SUBDIRS)
54
55#
56# Each message catalog file is generated in each sub
57# directory and copied to the usr/src/cmd/lp/ directory.
58# Those message catalog files are consolidated into one
59# message catalog file.  The consolidated one will be copied
60# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
61#
62
63_msg:	$(MSGDOMAIN)
64	@$(RM) $(POFILE)
65	$(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print`
66	@/bin/cat messages.po | sed '/domain/d' > $(POFILE)
67	@$(RM) messages.po
68	$(RM)  $(MSGDOMAIN)/$(POFILE)
69	/bin/cp $(POFILE) $(MSGDOMAIN)
70
71install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
72
73install_h clean strip lint: $(SUBDIRS)
74
75clobber: $(SUBDIRS) local_clobber
76
77local_clobber:
78	$(RM) $(CLOBBERFILES) $(POFILE)
79
80$(SUBDIRS):	FRC
81	@cd $@; pwd; $(MAKE) $(TARGET)
82
83FRC:
84
85include $(SRC)/Makefile.msg.targ
86
87# Dependencies
88libpapi-dynamic:	libpapi-common
89libpapi-lpd:		libpapi-dynamic
90libipp-core:		libpapi-common
91libpapi-ipp:		libpapi-common libipp-core libhttp-core
92libipp-listener:	libpapi-dynamic libipp-core
93mod_ipp:		libipp-listener
94
95