s3-lsa: When looking up domains in LookupNames, do not strip the sid.
[Samba.git] / lib / talloc / talloc.mk
bloba563d613d64c9dc0ff5ff40f488f7feb55b9aaed
1 TALLOC_OBJ = $(tallocdir)/talloc.o
3 TALLOC_SOLIB = libtalloc.$(SHLIBEXT).$(TALLOC_VERSION)
4 TALLOC_SONAME = libtalloc.$(SHLIBEXT).$(TALLOC_VERSION_MAJOR)
5 TALLOC_STLIB = libtalloc.a
7 all:: $(TALLOC_STLIB) $(TALLOC_SOLIB) testsuite
9 testsuite:: $(LIBOBJ) testsuite.o testsuite_main.o
10 $(CC) $(CFLAGS) -o testsuite testsuite.o testsuite_main.o $(LIBOBJ) $(LIBS)
12 $(TALLOC_STLIB): $(LIBOBJ)
13 ar -rv $@ $(LIBOBJ)
14 @-ranlib $@
16 install:: all
17 ${INSTALLCMD} -d $(DESTDIR)$(libdir)
18 ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
19 ${INSTALLCMD} -m 755 $(TALLOC_STLIB) $(DESTDIR)$(libdir)
20 ${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(DESTDIR)$(libdir)
21 ${INSTALLCMD} -d $(DESTDIR)${includedir}
22 ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
23 ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
24 if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
25 if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
26 which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
27 which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
29 doc:: talloc.3 talloc.3.html
31 clean::
32 rm -f *~ $(LIBOBJ) $(TALLOC_SOLIB) $(TALLOC_STLIB) testsuite testsuite.o testsuite_main.o *.gc?? talloc.3 talloc.3.html
33 rm -fr abi
34 rm -f talloc.exports.sort talloc.exports.check talloc.exports.check.sort
35 rm -f talloc.signatures.sort talloc.signatures.check talloc.signatures.check.sort
37 test:: testsuite
38 ./testsuite
40 abi_checks::
41 @echo ABI checks:
42 @./script/abi_checks.sh talloc talloc.h
44 test:: abi_checks
46 gcov::
47 gcov talloc.c