Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Copyright 2000, 2001, 2002, 2012, 2013 Free Software Foundation, Inc.
  3. #
  4. # This file is part of GNU lightning.
  5. #
  6. # GNU lightning is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU Lesser General Public License as published
  8. # by the Free Software Foundation; either version 3, or (at your option)
  9. # any later version.
  10. #
  11. # GNU lightning is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  13. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  14. # License for more details.
  15. #
  16. ACLOCAL_AMFLAGS = -I m4
  17. SUBDIRS = \
  18. check \
  19. doc \
  20. include \
  21. lib
  22. pkgconfiglibdir = $(libdir)/pkgconfig
  23. pkgconfiglib_DATA = lightning.pc
  24. if get_jit_size
  25. JIT_SIZE_PATH = "$(top_builddir)/jit_$(cpu)-sz.c"
  26. AM_CPPFLAGS=-DGET_JIT_SIZE=1 -DJIT_SIZE_PATH='$(JIT_SIZE_PATH)'
  27. AM_CFLAGS = -I$(top_srcdir)/include -D_GNU_SOURCE $(LIGHTNING_CFLAGS)
  28. noinst_PROGRAMS = size
  29. size_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
  30. size_SOURCES = size.c
  31. get_jit_size:: $(JIT_SIZE_PATH)
  32. $(JIT_SIZE_PATH):
  33. make clean
  34. make CFLAGS='-O0 -g3' check
  35. $(top_builddir)/size
  36. CLEANFILES = $(JIT_SIZE_PATH)
  37. endif