2 # Copyright 2012-2023 Free Software Foundation, Inc.
4 # This file is part of GNU lightning.
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)
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.
17 AM_CFLAGS = -I $(top_builddir)/include -I$(top_srcdir)/include \
18 -D_GNU_SOURCE $(LIGHTNING_CFLAGS)
20 info_TEXINFOS = lightning.texi
21 MOSTLYCLEANFILES = lightning.tmp
23 lightning_TEXINFOS = body.texi version.texi
25 noinst_PROGRAMS = incr printf rpn rfib ifib fact
27 $(top_builddir)/lib/liblightning.la:
28 cd $(top_builddir)/lib; $(MAKE) $(AM_MAKEFLAGS) liblightning.la
30 incr_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
33 printf_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
34 printf_SOURCES = printf.c
36 rpn_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
39 rfib_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
42 ifib_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
45 fact_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)