first version upgrade
[devspec.git] / devspec.en_US / project / recutils / utils / Makefile.am
blob863e0d34d64106c6380cba2210c4220300a4e8ec
1 # utils/ Makefile.am
2 # GNU rec
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 if COMPILE_MDB2REC
20    MDB2REC = mdb2rec
21 else
22    MDB2REC =
23 endif
25 bin_PROGRAMS = recinf recsel recins recdel recset recfix recfmt \
26                csv2rec rec2csv $(MDB2REC)
28 COMMONSRC = recutl.h recutl.c
29 COMMONLIBS = $(top_builddir)/lib/librecutils.la $(top_builddir)/src/librec.la
31 if CRYPT
32   COMMONLIBS += $(LTLIBGCRYPT)
33 endif
35 AM_CFLAGS =
36 if USE_COVERAGE
37   AM_CFLAGS += -fprofile-arcs -ftest-coverage
38 endif
40 AM_CPPFLAGS = -I$(top_builddir)/lib \
41               -I$(top_srcdir)/lib -I$(top_srcdir)/src \
42               -I$(top_srcdir)/libcsv -DLOCALEDIR=\"$(localedir)\" \
43               -DMDB_DATETIME=$(MDB_DATETIME)
45 recinf_SOURCES = $(COMMONSRC) \
46                  recinf.c
47 recinf_LDADD = $(COMMONLIBS)
49 recsel_SOURCES = $(COMMONSRC) \
50                  recsel.c
51 recsel_LDADD = $(COMMONLIBS)
53 recins_SOURCES = $(COMMONSRC) \
54                  recins.c
55 recins_LDADD = $(COMMONLIBS)
57 recdel_SOURCES = $(COMMONSRC) \
58                  recdel.c
59 recdel_LDADD = $(COMMONLIBS)
61 recset_SOURCES = $(COMMONSRC) \
62                  recset.c
63 recset_LDADD = $(COMMONLIBS)
65 recfix_SOURCES = $(COMMONSRC) \
66                  recfix.c
67 recfix_LDADD = $(COMMONLIBS)
69 recfmt_SOURCES = $(COMMONSRC) \
70                  recfmt.c
71 recfmt_LDADD = $(COMMONLIBS)
73 csv2rec_SOURCES = $(COMMONSRC) \
74                   csv2rec.c
75 csv2rec_LDADD = $(COMMONLIBS) \
76                 $(top_builddir)/libcsv/libcsv.la
78 rec2csv_SOURCES = $(COMMONSRC) \
79                   rec2csv.c
80 rec2csv_LDADD = $(COMMONLIBS) \
81                 $(top_builddir)/libcsv/libcsv.la
83 mdb2rec_SOURCES = $(COMMONSRC) \
84                   mdb2rec.c
85 mdb2rec_CFLAGS = $(GLIB_CFLAGS)
86 mdb2rec_LDADD = $(COMMONLIBS) $(MDBLIBS)
88 # End of Makefile.am