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 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 \ 37 mod_ipp 38 39 all := TARGET = all 40 clean := TARGET = clean 41 clobber := TARGET = clobber 42 install := TARGET = install 43 install_h := TARGET = install_h 44 lint := TARGET = lint 45 46 include $(SRC)/Makefile.master 47 48 TEXT_DOMAIN= SUNW_OST_OSLIB 49 POFILE= print-lib.po 50 51 .KEEP_STATE: 52 53 all: $(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 71 install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS) 72 73 install_h clean strip lint: $(SUBDIRS) 74 75 clobber: $(SUBDIRS) local_clobber 76 77 local_clobber: 78 $(RM) $(CLOBBERFILES) $(POFILE) 79 80 $(SUBDIRS): FRC 81 @cd $@; pwd; $(MAKE) $(TARGET) 82 83 FRC: 84 85 include $(SRC)/Makefile.msg.targ 86 87 # Dependencies 88 libpapi-dynamic: libpapi-common 89 libpapi-lpd: libpapi-dynamic 90 libipp-core: libpapi-common 91 libpapi-ipp: libpapi-common libipp-core libhttp-core 92 libipp-listener: libpapi-dynamic libipp-core 93 mod_ipp: libipp-listener 94