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