9162 libpp: this statement may fall through
[unleashed.git] / usr / src / lib / print / Makefile
blob4572cdc14e7f4c30e8f11d372797b681842afc48
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 include $(SRC)/Makefile.master
28 SUBDIRS = \
29 libprint \
30 libpapi-common \
31 libpapi-dynamic \
32 libpapi-lpd \
33 libipp-core \
34 libhttp-core \
35 libpapi-ipp \
36 libipp-listener
38 all := TARGET = all
39 clean := TARGET = clean
40 clobber := TARGET = clobber
41 install := TARGET = install
42 install_h := TARGET = install_h
43 lint := TARGET = lint
45 TEXT_DOMAIN= SUNW_OST_OSLIB
46 POFILE= print-lib.po
48 .KEEP_STATE:
50 all: $(TXTS) $(SUBDIRS)
53 # Each message catalog file is generated in each sub
54 # directory and copied to the usr/src/cmd/lp/ directory.
55 # Those message catalog files are consolidated into one
56 # message catalog file. The consolidated one will be copied
57 # into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
60 _msg: $(MSGDOMAIN)
61 @$(RM) $(POFILE)
62 $(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print`
63 @/bin/cat messages.po | sed '/domain/d' > $(POFILE)
64 @$(RM) messages.po
65 $(RM) $(MSGDOMAIN)/$(POFILE)
66 /bin/cp $(POFILE) $(MSGDOMAIN)
68 install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
70 install_h clean strip lint: $(SUBDIRS)
72 clobber: $(SUBDIRS) local_clobber
74 local_clobber:
75 $(RM) $(CLOBBERFILES) $(POFILE)
77 $(SUBDIRS): FRC
78 @cd $@; pwd; $(MAKE) $(TARGET)
80 FRC:
82 include $(SRC)/Makefile.msg.targ
84 # Dependencies
85 libpapi-dynamic: libpapi-common
86 libpapi-lpd: libpapi-dynamic
87 libipp-core: libpapi-common
88 libpapi-ipp: libpapi-common libipp-core libhttp-core
89 libipp-listener: libpapi-dynamic libipp-core