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 include ../Makefile.lib
  29 
  30 LIBRARY=        libgss.a
  31 
  32 # defines the duplicate sources we share with gsscred
  33 GSSCRED_DIR = $(SRC)/cmd/gss/gsscred
  34 DUPLICATE_SRC = gsscred_utils.c gsscred_file.c # gen_oids.c
  35 CLEAN_SRC = $(DUPLICATE_SRC) gen_oids.c
  36 
  37 SUBDIRS = $(MACH)
  38 $(BUILD64)SUBDIRS +=    $(MACH64)
  39 
  40 ROOTDIRS= $(ROOT)/usr/include
  41 GSSMECH_DIR=    $(ROOT)/usr/lib/gss
  42 
  43 all :=          TARGET= all
  44 clean :=        TARGET= clean
  45 clobber :=      TARGET= clobber
  46 install :=      TARGET= install
  47 lint :=         TARGET= lint
  48 
  49 POFILE =        $(LIBRARY:.a=.po)
  50 XGETFLAGS+=     -a
  51 MSGFILES =      `$(GREP) -l gettext *.[ch]`
  52 
  53 .KEEP_STATE:
  54 
  55 all clean clobber lint:  $(SUBDIRS)
  56 
  57 install: $(GSSMECH_DIR) all .WAIT $(SUBDIRS)
  58 
  59 check install_h:
  60 
  61 _msg:   $(MSGDOMAINPOFILE)
  62 
  63 $(POFILE):      pofile_MSGFILES
  64 
  65 $(GSSMECH_DIR):
  66         $(INS.dir)
  67 
  68 $(SUBDIRS):   FRC
  69         @cd $@; pwd; $(MAKE) $(TARGET)
  70 
  71 FRC:
  72 
  73 # include library targets
  74 include ../Makefile.targ
  75 
  76 # EXPORT DELETE START
  77 # Special target to clean up the source tree for export distribution
  78 # Warning: This target changes the source tree
  79 
  80 EXPORT_SRC:
  81         $(RM) Makefile+ g_seal.c+ g_unseal.c+
  82         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
  83                 < g_seal.c > g_seal.c+
  84         $(MV) g_seal.c+ g_seal.c
  85         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
  86                 < g_unseal.c > g_unseal.c+
  87         $(MV) g_unseal.c+ g_unseal.c
  88         sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
  89                 < Makefile > Makefile+
  90         $(MV) Makefile+ Makefile
  91         $(CHMOD) 444 Makefile g_seal.c g_unseal.c
  92 
  93 # EXPORT DELETE END
  94 
  95 
  96 include $(SRC)/Makefile.msg.targ