diff options
Diffstat (limited to 'src/client/Makefile.am')
-rw-r--r-- | src/client/Makefile.am | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/client/Makefile.am b/src/client/Makefile.am new file mode 100644 index 0000000..23a3225 --- /dev/null +++ b/src/client/Makefile.am @@ -0,0 +1,49 @@ +AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS) +AM_CPPFLAGS = $(LLDP_CPPFLAGS) +AM_LDFLAGS = $(LLDP_LDFLAGS) + +sbin_PROGRAMS = lldpcli +man_MANS = lldpcli.8 +dist_man_MANS = lldpctl.8 + +install-exec-local: lldpcli + cd $(DESTDIR)$(sbindir) && rm -f lldpctl + cd $(DESTDIR)$(sbindir) && $(LN_S) lldpcli lldpctl +uninstall-local: + cd $(DESTDIR)$(sbindir) && rm -f lldpctl + +lldpcli_SOURCES = client.h lldpcli.c display.c \ + conf.c conf-med.c conf-inv.c conf-dot3.c conf-power.c \ + conf-lldp.c conf-system.c \ + commands.c show.c \ + misc.c tokenizer.c \ + utf8.c \ + writer.h text_writer.c kv_writer.c json_writer.c +lldpcli_LDADD = \ + $(top_builddir)/src/libcommon-daemon-client.la \ + $(top_builddir)/src/lib/liblldpctl.la \ + @READLINE_LIBS@ +lldpcli_CFLAGS = $(AM_CFLAGS) +lldpcli_LDFLAGS = $(AM_LDFLAGS) $(LLDP_BIN_LDFLAGS) + +if USE_XML +lldpcli_SOURCES += xml_writer.c +lldpcli_CFLAGS += @libxml2_CFLAGS@ +lldpcli_LDADD += @libxml2_LIBS@ +endif + +# Completions +bashcompletiondir = $(datadir)/bash-completion/completions +dist_bashcompletion_DATA = completion/lldpcli +zshcompletiondir = $(datadir)/zsh/site-functions +dist_zshcompletion_DATA = completion/_lldpcli + +# Default configuration +lldpdconfdir = $(sysconfdir)/lldpd.d +dist_lldpdconf_DATA = README.conf + +TEMPLATES = lldpcli.8 +EXTRA_DIST = lldpcli.8.in +CLEANFILES = $(TEMPLATES) +lldpcli.8: lldpcli.8.in +include $(top_srcdir)/edit.am |