recutils/utils/Makefile.am
2025-08-31 14:58:19 -04:00

90 lines
2.4 KiB
Makefile

# utils/ Makefile.am
# GNU rec
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
# 2018, 2019, 2020, 2022 Jose E. Marchesi
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if COMPILE_MDB2REC
MDB2REC = mdb2rec
else
MDB2REC =
endif
bin_PROGRAMS = recinf recsel recins recdel recset recfix recfmt \
csv2rec rec2csv $(MDB2REC)
COMMONSRC = recutl.h recutl.c
COMMONLIBS = $(top_builddir)/lib/librecutils.la $(top_builddir)/src/librec.la
if CRYPT
COMMONLIBS += $(LTLIBGCRYPT)
endif
AM_CFLAGS =
if USE_COVERAGE
AM_CFLAGS += -fprofile-arcs -ftest-coverage
endif
AM_CPPFLAGS = -I$(top_builddir)/lib \
-I$(top_srcdir)/lib -I$(top_srcdir)/src \
-I$(top_srcdir)/libcsv -DLOCALEDIR=\"$(localedir)\" \
-DMDB_DATETIME=$(MDB_DATETIME)
recinf_SOURCES = $(COMMONSRC) \
recinf.c
recinf_LDADD = $(COMMONLIBS)
recsel_SOURCES = $(COMMONSRC) \
recsel.c
recsel_LDADD = $(COMMONLIBS)
recins_SOURCES = $(COMMONSRC) \
recins.c
recins_LDADD = $(COMMONLIBS)
recdel_SOURCES = $(COMMONSRC) \
recdel.c
recdel_LDADD = $(COMMONLIBS)
recset_SOURCES = $(COMMONSRC) \
recset.c
recset_LDADD = $(COMMONLIBS)
recfix_SOURCES = $(COMMONSRC) \
recfix.c
recfix_LDADD = $(COMMONLIBS)
recfmt_SOURCES = $(COMMONSRC) \
recfmt.c
recfmt_LDADD = $(COMMONLIBS)
csv2rec_SOURCES = $(COMMONSRC) \
csv2rec.c
csv2rec_LDADD = $(COMMONLIBS) \
$(top_builddir)/libcsv/libcsv.la
rec2csv_SOURCES = $(COMMONSRC) \
rec2csv.c
rec2csv_LDADD = $(COMMONLIBS) \
$(top_builddir)/libcsv/libcsv.la
mdb2rec_SOURCES = $(COMMONSRC) \
mdb2rec.c
mdb2rec_CFLAGS = $(GLIB_CFLAGS)
mdb2rec_LDADD = $(COMMONLIBS) $(MDBLIBS)
# End of Makefile.am