Home | History | Annotate | Download | only in libsldap
      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 2007 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 SUBDIRS =	$(MACH)
     31 $(BUILD64)SUBDIRS += $(MACH64)
     32 
     33 all :=		TARGET= all
     34 clean :=	TARGET= clean
     35 clobber :=	TARGET= clobber
     36 delete :=	TARGET= delete
     37 install :=	TARGET= install
     38 lint :=		TARGET= lint
     39 catalog :=	TARGET= catalog
     40 _msg :=		TARGET= _msg
     41 package :=	TARGET= package
     42 
     43 LIBRARY=	libsldap.a
     44 TEXT_DOMAIN =	SUNW_OST_OSLIB
     45 XGETFLAGS=
     46 POFILE=		$(LIBRARY:.a=.po)
     47 POFILES=	generic.po
     48 
     49 .KEEP_STATE:
     50 
     51 all clean clobber delete install lint catalog package: $(SUBDIRS)
     52 
     53 # install rule for install_h target
     54 $(ROOTHDRDIR)/%: %
     55 	$(INS.file)
     56 
     57 $(SUBDIRS):	FRC
     58 	@cd $@; pwd; $(MAKE) $(TARGET)
     59 
     60 _msg:	$(MSGDOMAIN) $(POFILE)
     61 	$(RM) $(MSGDOMAIN)/$(POFILE)
     62 	$(RM) generic.po
     63 	cp $(POFILE) $(MSGDOMAIN)
     64 
     65 $(POFILE): $(POFILES)
     66 	$(RM) $@
     67 	$(CAT) $(POFILES) > $@
     68 
     69 $(MSGDOMAIN):
     70 	$(INS.dir)
     71 
     72 $(POFILES):
     73 	$(RM) messages.po
     74 	$(XGETTEXT) $(XGETFLAGS)  common/*.[ch]*
     75 	sed "/^domain/d" < messages.po  > $@
     76 	$(RM) messages.po
     77 
     78 FRC:
     79 
     80 # EXPORT DELETE START
     81 EXPORT_SRC:
     82 	$(RM) -f common/ns_crypt.c+ Makefile+
     83 	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
     84 		common/ns_crypt.c > common/ns_crypt.c+
     85 	$(MV) common/ns_crypt.c+ common/ns_crypt.c
     86 	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
     87 		< Makefile > Makefile+
     88 	$(MV) Makefile+ Makefile
     89 	$(CHMOD) 444 Makefile common/ns_crypt.c
     90 
     91 # EXPORT DELETE END
     92