Makefile.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!gmake
  2. #
  3. prefix = @prefix@
  4. datarootdir = @datarootdir@
  5. exec_prefix = @exec_prefix@
  6. includedir = @includedir@
  7. libdir = @libdir@
  8. mandir = @mandir@
  9. VPATH = @srcdir@
  10. srcdir = @srcdir@
  11. builddir = @builddir@
  12. XSLTPROC = @XSLTPROC@
  13. INSTALLCMD = @INSTALL@
  14. CC = @CC@
  15. CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@
  16. EXTRA_TARGETS = @DOC_TARGET@
  17. .SUFFIXES: .c .o .3 .3.xml .xml .html
  18. LIBOBJ = @TALLOC_OBJ@
  19. all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
  20. showflags:
  21. @echo 'talloc will be compiled with flags:'
  22. @echo ' CFLAGS = $(CFLAGS)'
  23. @echo ' LIBS = $(LIBS)'
  24. testsuite: $(LIBOBJ) testsuite.o
  25. $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
  26. libtalloc.a: $(LIBOBJ)
  27. ar -rv $@ $(LIBOBJ)
  28. @-ranlib $@
  29. install: all
  30. ${INSTALLCMD} -d $(DESTDIR)$(libdir)
  31. ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
  32. ${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir)
  33. ${INSTALLCMD} -d $(DESTDIR)${includedir}
  34. ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
  35. ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
  36. if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
  37. if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
  38. doc: talloc.3 talloc.3.html
  39. .3.xml.3:
  40. -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
  41. .xml.html:
  42. -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
  43. clean:
  44. rm -f *~ $(LIBOBJ) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
  45. test: testsuite
  46. ./testsuite
  47. gcov:
  48. gcov talloc.c
  49. installcheck:
  50. $(MAKE) test
  51. distclean: clean
  52. rm -f *~ */*~
  53. rm -f Makefile
  54. rm -f config.log config.status config.h config.cache
  55. realdistclean: distclean
  56. rm -f configure config.h.in