xref: /titanic_44/usr/src/lib/libsldap/Makefile (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1999 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# lib/libsldap/Makefile
29#
30
31include			../Makefile.lib
32
33SUBDIRS=	spec .WAIT $(MACH) $(BUILD64) $(MACH64)
34
35all :=		TARGET= all
36clean :=	TARGET= clean
37clobber :=	TARGET= clobber
38delete :=	TARGET= delete
39install :=	TARGET= install
40lint :=		TARGET= lint
41catalog :=	TARGET= catalog
42_msg :=		TARGET= _msg
43package :=	TARGET= package
44
45LIBRARY=	libsldap.a
46TEXT_DOMAIN =	SUNW_OST_OSLIB
47XGETFLAGS=
48POFILE=		$(LIBRARY:.a=.po)
49POFILES=	generic.po
50
51.KEEP_STATE:
52
53all clean clobber delete install lint catalog package: $(SUBDIRS)
54
55# install rule for install_h target
56$(ROOTHDRDIR)/%: %
57	$(INS.file)
58
59$(MACH) $(MACH64) spec:	FRC
60	@cd $@; pwd; $(MAKE) $(TARGET)
61
62_msg:	$(MSGDOMAIN) $(POFILE)
63	$(RM) $(MSGDOMAIN)/$(POFILE)
64	$(RM) generic.po
65	cp $(POFILE) $(MSGDOMAIN)
66
67$(POFILE): $(POFILES)
68	$(RM) $@
69	$(CAT) $(POFILES) > $@
70
71$(MSGDOMAIN):
72	$(INS.dir)
73
74$(POFILES):
75	$(RM) messages.po
76	$(XGETTEXT) $(XGETFLAGS)  common/*.[ch]*
77	sed "/^domain/d" < messages.po  > $@
78	$(RM) messages.po
79
80FRC:
81
82# EXPORT DELETE START
83EXPORT_SRC:
84	$(RM) -f common/ns_crypt.c+ Makefile+
85	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" < \
86		common/ns_crypt.c > common/ns_crypt.c+
87	$(MV) common/ns_crypt.c+ common/ns_crypt.c
88	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
89		< Makefile > Makefile+
90	$(MV) Makefile+ Makefile
91	$(CHMOD) 444 Makefile common/ns_crypt.c
92
93# This target cleans up the SCCS files as well as the plain src.
94EXPORT_WS:
95	$(RM) -f common/ns_crypt.c+ Makefile+
96
97	sccs edit common/ns_crypt.c
98	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
99		< ns_crypt.c > common/ns_crypt.c+
100	sccs unedit common/ns_crypt.c
101	$(RM) -f common/ns_crypt.c ns_crypt.c
102	$(RM) -f common/SCCS/s.ns_crypt.c
103	$(MV) common/ns_crypt.c+ common/ns_crypt.c
104	sccs create common/ns_crypt.c
105	$(RM) common/,ns_crypt.c
106
107	sccs edit Makefile
108	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
109		< Makefile > Makefile+
110	sccs unedit Makefile
111	$(RM) -f Makefile
112	$(RM) -f SCCS/s.Makefile
113	$(MV) Makefile+ Makefile
114	sccs create Makefile
115	$(RM) ,Makefile
116
117# EXPORT DELETE END
118