20221212
[devspec.git] / devspec.en_US / project / recutils / src / Makefile.am
blobbe7c8fadf1eedba52f6d95a99980109c990a0d45
1 # src/ Makefile.am
2 # GNU recutils
4 # Copyright (C) 2009-2019 Jose E. Marchesi
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 lib_LTLIBRARIES = librec.la
21 include_HEADERS = rec.h
23 librec_la_SOURCES = rec.c \
24                     rec-mset.c \
25                     rec-utils.h \
26                     rec-utils.c \
27                     rec-comment.c \
28                     rec-field-name.c \
29                     rec-field.c \
30                     rec-record.c \
31                     rec-rset.c \
32                     rec-db.c \
33                     rec-parser.c \
34                     rec-writer.c \
35                     rec-int.c \
36                     rec-sex-parser.h \
37                     rec-sex-parser.c \
38                     rec-sex-ast.h \
39                     rec-sex-ast.c \
40                     rec-sex-tab.y \
41                     rec-sex-lex.l \
42                     rec-sex.c \
43                     rec-fex.c \
44                     rec-types.c \
45                     rec-buf.c \
46                     rec-aggregate.c
48 if CRYPT
49    librec_la_SOURCES += rec-crypt.c
50 else
51    librec_la_SOURCES += rec-crypt-dummy.c
52 endif
54 BUILT_SOURCES = rec-sex-tab.h
55 AM_YFLAGS = -d
56 AM_LFLAGS = -d
57 AM_CFLAGS = 
58 if USE_COVERAGE
59   AM_CFLAGS += -fprofile-arcs -ftest-coverage
60 endif
62 AM_LDFLAGS = -no-undefined
63 AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \
64               -DLOCALEDIR=\"$(localedir)\"
65 librec_la_LDFLAGS = -version-info 1:0:0
66 librec_la_LIBADD = $(top_builddir)/lib/librecutils.la \
67                    $(LIB_CLOCK_GETTIME)
69 if CRYPT
70    librec_la_LIBADD += $(LTLIBGCRYPT)
71 endif
73 if REMOTE_DESCRIPTORS
74   AM_CPPFLAGS += -DREMOTE_DESCRIPTORS
75   librec_la_LIBADD += $(CURLLIBS)
76 endif
78 if UUID_TYPE
79   AM_CPPFLAGS += -DUUID_TYPE
80   librec_la_LIBADD += $(UUIDLIBS)
81 endif
83 check-syntax: all
85 # End of Makefile.am