Debian Codegraph @

modules/gcide/Makefile.am

raw
1 # This file is part of GNU Dico
2 # Copyright (C) 2012-2024 Sergey Poznyakoff
3 #
4 # GNU Dico is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # GNU Dico is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GNU Dico. If not, see <http://www.gnu.org/licenses/>.
16
17 SUBDIRS = . tests
18
19 moddir=@DICO_MODDIR@
20
21 mod_LTLIBRARIES=gcide.la
22 noinst_LTLIBRARIES=libgcide.la
23 libgcide_la_SOURCES=webchr.c ent.c markup.l grk.c
24
25 if INOTIFY_COND
26 libgcide_la_SOURCES += watcher.c
27 endif
28
29 gcide_la_SOURCES = gcide.c idx.c
30 gcide_la_LIBADD = libgcide.la ../../lib/libdico.la $(LIBICONV) @LTLIBINTL@
31 gcide_la_LDFLAGS = -module -avoid-version -no-undefined
32 AM_CPPFLAGS =\
33 -DLIBEXECDIR=\"${libexecdir}\"\
34 @DICO_MODULE_INCLUDES@
35
36 libexec_PROGRAMS=idxgcide
37 idxgcide_SOURCES=idxgcide.l idxgcide-cli.h
38 idxgcide_LDADD = \
39 libgcide.la\
40 ../../xdico/libxdico.la\
41 ../../lib/libdico.la\
42 $(LIBICONV) \
43 @LIBINTL@
44 idxgcide_CPPFLAGS =\
45 -DLIBEXECDIR=\"${libexecdir}\"\
46 @DICO_PROG_INCLUDES@
47
48 noinst_HEADERS = gcide.h
49
50 AM_LFLAGS=-d
51
52 SUFFIXES=.opt .h
53
54 .opt.h:
55 $(AM_V_GEN)m4 -s $(top_srcdir)/@GRECS_SUBDIR@/build-aux/getopt.m4 $< > $@
56
57 BUILT_SOURCES=idxgcide-cli.h
58 EXTRA_DIST=idxgcide-cli.opt