git subrepo pull --force deps/lightning
[pcsx_rearmed.git] / deps / lightning / Makefile.am
CommitLineData
4a71579b
PC
1#
2# Copyright 2000, 2001, 2002, 2012-2019 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
17ACLOCAL_AMFLAGS = -I m4
18
19SUBDIRS = \
519a9ea1 20 gnulib-lib \
4a71579b
PC
21 check \
22 doc \
23 include \
24 lib
25
519a9ea1
PC
26EXTRA_DIST = m4/gnulib-cache.m4
27
4a71579b
PC
28pkgconfiglibdir = $(libdir)/pkgconfig
29pkgconfiglib_DATA = lightning.pc
30
31if get_jit_size
32JIT_SIZE_PATH = "$(top_builddir)/jit_$(cpu)-sz.c"
33AM_CPPFLAGS=-DGET_JIT_SIZE=1 -DJIT_SIZE_PATH='$(JIT_SIZE_PATH)'
519a9ea1
PC
34AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
35 -D_GNU_SOURCE $(LIGHTNING_CFLAGS)
4a71579b
PC
36
37noinst_PROGRAMS = size
38size_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
39size_SOURCES = size.c
40
41get_jit_size:: $(JIT_SIZE_PATH)
42
43$(JIT_SIZE_PATH):
44 make clean
45 make check
46 $(top_builddir)/size
47
48CLEANFILES = $(JIT_SIZE_PATH)
49endif