xref: /titanic_44/usr/src/lib/libldap5/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
4*7c478bd9Sstevel@tonic-gate#
5*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
6*7c478bd9Sstevel@tonic-gate#
7*7c478bd9Sstevel@tonic-gate# lib/libldap5/Makefile
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate
10*7c478bd9Sstevel@tonic-gateinclude			../Makefile.lib
11*7c478bd9Sstevel@tonic-gate
12*7c478bd9Sstevel@tonic-gateSUBDIRS =	$(MACH)
13*7c478bd9Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64)
14*7c478bd9Sstevel@tonic-gate
15*7c478bd9Sstevel@tonic-gateall :=		TARGET= all
16*7c478bd9Sstevel@tonic-gateclean :=	TARGET= clean
17*7c478bd9Sstevel@tonic-gateclobber :=	TARGET= clobber
18*7c478bd9Sstevel@tonic-gateinstall :=	TARGET= install
19*7c478bd9Sstevel@tonic-gatelint :=		TARGET= lint
20*7c478bd9Sstevel@tonic-gate_msg :=		TARGET= _msg
21*7c478bd9Sstevel@tonic-gate
22*7c478bd9Sstevel@tonic-gateLIBRARY=        libldap.a
23*7c478bd9Sstevel@tonic-gateTEXT_DOMAIN =   SUNW_OST_OSLIB
24*7c478bd9Sstevel@tonic-gateXGETFLAGS=
25*7c478bd9Sstevel@tonic-gatePOFILE=         $(LIBRARY:.a=.po)
26*7c478bd9Sstevel@tonic-gatePOFILES=        generic.po
27*7c478bd9Sstevel@tonic-gate
28*7c478bd9Sstevel@tonic-gate.KEEP_STATE:
29*7c478bd9Sstevel@tonic-gate
30*7c478bd9Sstevel@tonic-gateall clean clobber install: spec .WAIT $(SUBDIRS)
31*7c478bd9Sstevel@tonic-gate
32*7c478bd9Sstevel@tonic-gatelint:
33*7c478bd9Sstevel@tonic-gate	@ $(ECHO) "usr/src/lib/libldap5 is third-party code that"
34*7c478bd9Sstevel@tonic-gate	@ $(ECHO) "will never be made lint-clean: skipping"
35*7c478bd9Sstevel@tonic-gate
36*7c478bd9Sstevel@tonic-gate# install rule for install_h target
37*7c478bd9Sstevel@tonic-gate$(ROOTHDRDIR)/%: %
38*7c478bd9Sstevel@tonic-gate	$(INS.file)
39*7c478bd9Sstevel@tonic-gate
40*7c478bd9Sstevel@tonic-gateinstall_h: $(ROOTHDRS)
41*7c478bd9Sstevel@tonic-gate
42*7c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS)
43*7c478bd9Sstevel@tonic-gate
44*7c478bd9Sstevel@tonic-gate_msg:   $(MSGDOMAIN) $(POFILE)
45*7c478bd9Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(POFILE)
46*7c478bd9Sstevel@tonic-gate	$(RM) generic.po
47*7c478bd9Sstevel@tonic-gate	$(CP) $(POFILE) $(MSGDOMAIN)
48*7c478bd9Sstevel@tonic-gate
49*7c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES)
50*7c478bd9Sstevel@tonic-gate	$(RM) $@
51*7c478bd9Sstevel@tonic-gate	$(CAT) $(POFILES) > $@
52*7c478bd9Sstevel@tonic-gate
53*7c478bd9Sstevel@tonic-gate$(MSGDOMAIN):
54*7c478bd9Sstevel@tonic-gate	$(INS.dir)
55*7c478bd9Sstevel@tonic-gate
56*7c478bd9Sstevel@tonic-gate$(POFILES):
57*7c478bd9Sstevel@tonic-gate	$(RM) messages.po
58*7c478bd9Sstevel@tonic-gate	$(XGETTEXT) $(XGETFLAGS)  sources/ldap/*/*.[ch]*
59*7c478bd9Sstevel@tonic-gate	sed "/^domain/d" < messages.po  > $@
60*7c478bd9Sstevel@tonic-gate	$(RM) messages.po
61*7c478bd9Sstevel@tonic-gate
62*7c478bd9Sstevel@tonic-gate$(SUBDIRS) spec: FRC
63*7c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
64*7c478bd9Sstevel@tonic-gate
65*7c478bd9Sstevel@tonic-gateFRC:
66