mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
44d2e12403
Fixes #149 #148
274 lines
5.2 KiB
Makefile
274 lines
5.2 KiB
Makefile
|
|
bin_PROGRAMS = lnav
|
|
|
|
noinst_PROGRAMS = bin2c ptimec lnav-test
|
|
|
|
noinst_LIBRARIES = libdiag.a
|
|
|
|
PTIME_V = $(PTIME_V_@AM_V@)
|
|
PTIME_V_ = $(PTIME_V_@AM_DEFAULT_V@)
|
|
PTIME_V_0 = @echo " TIMEFMT " $@;
|
|
|
|
BIN2C_V = $(BIN2C_V_@AM_V@)
|
|
BIN2C_V_ = $(BIN2C_V_@AM_DEFAULT_V@)
|
|
BIN2C_V_0 = @echo " BIN2C " $@;
|
|
|
|
help.c: $(srcdir)/help.txt bin2c
|
|
$(BIN2C_V)./bin2c -z -c $(srcdir)/help.txt $@
|
|
|
|
dump-pid-sh.c: $(srcdir)/dump-pid.sh bin2c
|
|
$(BIN2C_V)./bin2c -z -c $(srcdir)/dump-pid.sh $@
|
|
|
|
default-log-formats-json.c: $(srcdir)/default-log-formats.json bin2c
|
|
$(BIN2C_V)./bin2c -z -c $(srcdir)/default-log-formats.json $@
|
|
|
|
init.sql: $(srcdir)/init_sql.py
|
|
$(PYTHON) $(srcdir)/init_sql.py > $@
|
|
|
|
init-sql.c: $(srcdir)/init.sql bin2c
|
|
$(BIN2C_V)./bin2c -z -c $(srcdir)/init.sql $@
|
|
|
|
TIME_FORMATS = \
|
|
"%Y-%m-%d %H:%M:%S" \
|
|
"%Y-%m-%d %H:%M" \
|
|
"%Y-%m-%dT%H:%M:%S" \
|
|
"%Y-%m-%dT%H:%M:%SZ" \
|
|
"%Y/%m/%d %H:%M:%S" \
|
|
"%Y/%m/%d %H:%M" \
|
|
"%a %b %d %H:%M:%S %Y" \
|
|
"%a %b %d %H:%M:%S %Z %Y" \
|
|
"%a %b %d %H:%M:%S " \
|
|
"%a %b %d %H:%M:%S.%L " \
|
|
"%d/%b/%Y:%H:%M:%S +0000" \
|
|
"%d/%b/%Y:%H:%M:%S %z" \
|
|
"%b %d %H:%M:%S" \
|
|
"%m/%d/%y %H:%M:%S" \
|
|
"%m/%d/%Y %I:%M:%S:%L %p %Z" \
|
|
"%N/%e/%Y %l:%M:%S %p" \
|
|
"%m%d %H:%M:%S" \
|
|
"%H:%M:%S" \
|
|
"%M:%S"
|
|
|
|
time_fmts.cc: ptimec
|
|
$(PTIME_V)./ptimec $(TIME_FORMATS) > $@
|
|
|
|
AM_LDFLAGS = \
|
|
$(STATIC_LDFLAGS) \
|
|
$(SQLITE3_LDFLAGS) \
|
|
$(PCRE_LDFLAGS) \
|
|
-pthread
|
|
|
|
AM_CPPFLAGS = \
|
|
-DSYSCONFDIR='"$(sysconfdir)"' \
|
|
-Wall \
|
|
$(SQLITE3_CFLAGS)
|
|
|
|
LDADD = \
|
|
libdiag.a \
|
|
$(READLINE_LIBS) \
|
|
$(CURSES_LIB) \
|
|
$(SQLITE3_LIBS) \
|
|
-lpcrecpp
|
|
|
|
dist_noinst_DATA = \
|
|
default-log-formats.json \
|
|
dump-pid.sh
|
|
|
|
noinst_HEADERS = \
|
|
ansi_scrubber.hh \
|
|
auto_fd.hh \
|
|
auto_mem.hh \
|
|
auto_pid.hh \
|
|
bookmarks.hh \
|
|
bottom_status_source.hh \
|
|
byte_array.hh \
|
|
chunky_index.hh \
|
|
column_namer.hh \
|
|
concise_index.hh \
|
|
data_scanner.hh \
|
|
data_parser.hh \
|
|
default-log-formats-json.hh \
|
|
db_sub_source.hh \
|
|
environ_vtab.hh \
|
|
filter_observer.hh \
|
|
format-text-files.hh \
|
|
grapher.hh \
|
|
grep_highlighter.hh \
|
|
grep_proc.hh \
|
|
help.hh \
|
|
help.txt \
|
|
hist_source.hh \
|
|
init.sql \
|
|
init-sql.hh \
|
|
intern_string.hh \
|
|
json_op.hh \
|
|
json_ptr.hh \
|
|
k_merge_tree.h \
|
|
line_buffer.hh \
|
|
listview_curses.hh \
|
|
lnav.hh \
|
|
lnav_commands.hh \
|
|
lnav_config.hh \
|
|
lnav_log.hh \
|
|
lnav_util.hh \
|
|
log_accel.hh \
|
|
log_data_helper.hh \
|
|
log_data_table.hh \
|
|
log_format.hh \
|
|
log_format_loader.hh \
|
|
logfile.hh \
|
|
logfile_sub_source.hh \
|
|
pcrepp.hh \
|
|
piper_proc.hh \
|
|
pretty_printer.hh \
|
|
ptimec.hh \
|
|
readline_curses.hh \
|
|
readline_highlighters.hh \
|
|
sequence_matcher.hh \
|
|
sequence_sink.hh \
|
|
session_data.hh \
|
|
shared_buffer.hh \
|
|
sql_util.hh \
|
|
sqlite-extension-func.h \
|
|
status_controllers.hh \
|
|
statusview_curses.hh \
|
|
strnatcmp.h \
|
|
strong_int.hh \
|
|
sysclip.hh \
|
|
termios_guard.hh \
|
|
term_extra.hh \
|
|
textfile_sub_source.hh \
|
|
textview_curses.hh \
|
|
time_T.hh \
|
|
top_status_source.hh \
|
|
view_curses.hh \
|
|
vt52_curses.hh \
|
|
log_vtab_impl.hh \
|
|
log_format_impls.cc \
|
|
xterm_mouse.hh \
|
|
yajlpp.hh \
|
|
spookyhash/SpookyV2.h
|
|
|
|
if USE_INCLUDED_YAJL
|
|
noinst_HEADERS += yajl/api/yajl_common.h \
|
|
yajl/api/yajl_gen.h \
|
|
yajl/api/yajl_parse.h \
|
|
yajl/api/yajl_tree.h \
|
|
yajl/yajl_alloc.h \
|
|
yajl/yajl_buf.h \
|
|
yajl/yajl_bytestack.h \
|
|
yajl/yajl_common.h \
|
|
yajl/yajl_encode.h \
|
|
yajl/yajl_lex.h \
|
|
yajl/yajl_parser.h \
|
|
yajl/yajl_version.h
|
|
endif
|
|
|
|
|
|
libdiag_a_SOURCES = \
|
|
ansi_scrubber.cc \
|
|
bookmarks.cc \
|
|
collation-functions.cc \
|
|
db_sub_source.cc \
|
|
environ_vtab.cc \
|
|
extension-functions.c \
|
|
fs-extension-functions.cc \
|
|
grep_proc.cc \
|
|
hist_source.cc \
|
|
intern_string.cc \
|
|
json-extension-functions.cc \
|
|
json_op.cc \
|
|
json_ptr.cc \
|
|
line_buffer.cc \
|
|
listview_curses.cc \
|
|
lnav_commands.cc \
|
|
lnav_config.cc \
|
|
lnav_log.cc \
|
|
lnav_util.cc \
|
|
log_accel.cc \
|
|
log_format.cc \
|
|
log_format_loader.cc \
|
|
logfile.cc \
|
|
logfile_sub_source.cc \
|
|
network-extension-functions.cc \
|
|
data_scanner.cc \
|
|
data_parser.cc \
|
|
ptimec_rt.cc \
|
|
readline_curses.cc \
|
|
readline_highlighters.cc \
|
|
session_data.cc \
|
|
sequence_matcher.cc \
|
|
shared_buffer.cc \
|
|
sqlite-extension-func.c \
|
|
statusview_curses.cc \
|
|
string-extension-functions.cc \
|
|
pcrepp.cc \
|
|
piper_proc.cc \
|
|
sql_util.cc \
|
|
state-extension-functions.cc \
|
|
strnatcmp.c \
|
|
sysclip.cc \
|
|
textview_curses.cc \
|
|
time_fmts.cc \
|
|
view_curses.cc \
|
|
vt52_curses.cc \
|
|
log_vtab_impl.cc \
|
|
xterm_mouse.cc \
|
|
yajlpp.cc \
|
|
spookyhash/SpookyV2.cpp
|
|
|
|
if USE_INCLUDED_YAJL
|
|
libdiag_a_SOURCES += yajl/yajl.c \
|
|
yajl/yajl_alloc.c \
|
|
yajl/yajl_alloc.h \
|
|
yajl/yajl_buf.c \
|
|
yajl/yajl_buf.h \
|
|
yajl/yajl_bytestack.h \
|
|
yajl/yajl_encode.c \
|
|
yajl/yajl_encode.h \
|
|
yajl/yajl_gen.c \
|
|
yajl/yajl_lex.c \
|
|
yajl/yajl_lex.h \
|
|
yajl/yajl_parser.c \
|
|
yajl/yajl_parser.h \
|
|
yajl/yajl_tree.c \
|
|
yajl/yajl_version.c
|
|
endif
|
|
|
|
|
|
dist_noinst_SCRIPTS = \
|
|
init_sql.py
|
|
|
|
TEXT2C_FILES = \
|
|
dump-pid-sh.o \
|
|
help.o \
|
|
init-sql.o \
|
|
default-log-formats-json.o
|
|
|
|
lnav_SOURCES = lnav.cc $(HELP_SRC)
|
|
lnav_LDADD = \
|
|
$(TEXT2C_FILES) \
|
|
$(LDADD)
|
|
|
|
lnav_test_SOURCES = lnav.cc $(HELP_SRC) test_override.c
|
|
lnav_test_LDADD = \
|
|
$(TEXT2C_FILES) \
|
|
$(LDADD)
|
|
|
|
bin2c_SOURCES = bin2c.c
|
|
bin2c_LDADD =
|
|
|
|
ptimec_SOURCES = ptimec.cc
|
|
ptimec_LDADD =
|
|
|
|
DISTCLEANFILES = \
|
|
dump-pid-sh.c \
|
|
help.c \
|
|
init-sql.c \
|
|
default-log-formats-json.c \
|
|
time_fmts.cc
|
|
|
|
uncrusty:
|
|
(cd $(srcdir) && uncrustify -c ../lnav.cfg --replace $(SOURCES) \
|
|
$(HEADERS))
|