aboutsummaryrefslogtreecommitdiff
path: root/deps/lightning/Makefile.am
blob: c921901e034ff6aef69b08c2096595ebcce57ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Copyright 2000, 2001, 2002, 2012-2019 Free Software Foundation, Inc.
#
# This file is part of GNU lightning.
#
# GNU lightning is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GNU lightning is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
# License for more details.
#

ACLOCAL_AMFLAGS = -I m4

SUBDIRS =		\
	check		\
	doc		\
	include		\
	lib

pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = lightning.pc

if get_jit_size
JIT_SIZE_PATH = "$(top_builddir)/jit_$(cpu)-sz.c"
AM_CPPFLAGS=-DGET_JIT_SIZE=1 -DJIT_SIZE_PATH='$(JIT_SIZE_PATH)'
AM_CFLAGS = -I$(top_srcdir)/include -D_GNU_SOURCE $(LIGHTNING_CFLAGS)

noinst_PROGRAMS = size
size_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
size_SOURCES = size.c

get_jit_size::	$(JIT_SIZE_PATH)

$(JIT_SIZE_PATH):
	make clean
	make check
	$(top_builddir)/size

CLEANFILES = $(JIT_SIZE_PATH)
endif