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