summaryrefslogtreecommitdiffstats
path: root/src/tailer/Makefile.am
blob: bb8a39a4d47c612bddbf0383e398d07952f9a2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
include $(top_srcdir)/aminclude_static.am

TESTS_ENVIRONMENT = $(SHELL) $(top_builddir)/TESTS_ENVIRONMENT
LOG_COMPILER = $(SHELL) $(top_builddir)/TESTS_ENVIRONMENT

BUILT_SOURCES = tailerbin.cc

AM_CPPFLAGS = \
	-Wall \
	$(CODE_COVERAGE_CPPFLAGS) \
	$(LIBARCHIVE_CFLAGS) \
	$(READLINE_CFLAGS) \
	$(SQLITE3_CFLAGS) \
	$(PCRE_CFLAGS) \
	$(LIBCURL_CPPFLAGS)

AM_LIBS = $(CODE_COVERAGE_LIBS)
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)

dist_noinst_DATA = \
    tailer.ape

noinst_LIBRARIES = \
    libtailercommon.a \
    libtailerpp.a \
    libtailerservice.a

noinst_HEADERS = \
    sha-256.h \
    tailer.h \
    tailer.looper.hh \
    tailer.looper.cfg.hh \
    tailerpp.hh

libtailercommon_a_SOURCES = \
    sha-256.c \
    tailer.c

libtailerpp_a_CPPFLAGS = \
    $(AM_CPPFLAGS) \
    -I$(srcdir)/.. \
    -I$(srcdir)/../fmtlib \
    -I$(srcdir)/../third-party \
	-I$(top_srcdir)/src/third-party/scnlib/include

libtailerpp_a_SOURCES = \
    tailerpp.cc

tailerbin.cc: tailer.ape ../../tools/bin2c$(BUILD_EXEEXT)
	../../tools/bin2c$(BUILD_EXEEXT) -n tailer_bin tailerbin $(srcdir)/tailer.ape

libtailerservice_a_CPPFLAGS = \
    $(AM_CPPFLAGS) \
    -I$(srcdir)/.. \
    -I$(srcdir)/../fmtlib \
    -I$(srcdir)/../third-party \
	-I$(top_srcdir)/src/third-party/scnlib/include

libtailerservice_a_SOURCES = \
    tailerbin.cc \
    tailer.looper.cc

check_PROGRAMS = \
    drive_tailer \
    tailer

tailer_SOURCES = \
    tailer.main.c

tailer_LDADD = libtailercommon.a

drive_tailer_CPPFLAGS = \
    -I$(srcdir)/.. \
    -I$(srcdir)/../fmtlib \
    -I$(top_srcdir)/src/third-party/scnlib/include

drive_tailer_SOURCES = \
    drive_tailer.cc

drive_tailer_LDADD = \
    libtailercommon.a \
    libtailerpp.a \
    ../base/libbase.a \
    ../fmtlib/libcppfmt.a

dist_noinst_SCRIPTS = \
    test_tailer.sh

TESTS = \
    test_tailer.sh

DISTCLEANFILES = \
	*.cmd \
	*.dat \
	*.out \
	*.err \
	*.db \
	*.dpt \
	*.diff \
	*.index \
	*.tmp \
	*.outbak \
	*.errbak \
	*.tmpbak \
    tailerbin.h \
    tailerbin.cc

distclean-local:
	$(RM_V)rm -f foo