Makefile revision 4604:5989fb2cb1d5
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 28include ../Makefile.lib 29 30SUBDIRS = $(MACH) 31$(BUILD64)SUBDIRS += $(MACH64) 32 33all := TARGET= all 34clean := TARGET= clean 35clobber := TARGET= clobber 36delete := TARGET= delete 37install := TARGET= install 38lint := TARGET= lint 39catalog := TARGET= catalog 40_msg := TARGET= _msg 41package := TARGET= package 42 43LIBRARY= libsldap.a 44TEXT_DOMAIN = SUNW_OST_OSLIB 45XGETFLAGS= 46POFILE= $(LIBRARY:.a=.po) 47POFILES= generic.po 48 49.KEEP_STATE: 50 51all 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 78FRC: 79 80# EXPORT DELETE START 81EXPORT_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