a615fc8cd2cc32b8fca7aae48723c59651f45f88
[sliver-openvswitch.git] / extras / ezio / automake.mk
1 # Copyright (C) 2008, 2009, 2010 Nicira Networks, Inc.
2 #
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.  This file is offered as-is,
6 # without warranty of any kind.
7
8 EXTRA_DIST += extras/ezio/ezio3.ti
9
10 if HAVE_CURSES
11 if HAVE_PCRE_PARTIAL
12 install-data-hook:
13         @echo tic -x $(srcdir)/extras/ezio/ezio3.ti
14         @if ! tic -x $(srcdir)/extras/ezio/ezio3.ti; then                             \
15           echo "-----------------------------------------------------------"; \
16           echo "Failed to install ezio3 terminfo file.  The ezio-term";       \
17           echo "program will not work until it has been installed.";          \
18           echo "Probably, you need to install the 'tic' program from";        \
19           echo "ncurses, e.g. using a command like:";                         \
20           echo "  apt-get install ncurses-bin";                               \
21           echo "and then re-run \"make install\"";                            \
22           echo "-----------------------------------------------------------"; \
23           exit 1;                                                             \
24         fi
25
26 bin_PROGRAMS += extras/ezio/ezio-term
27 extras_ezio_ezio_term_SOURCES = \
28         extras/ezio/ezio-term.c \
29         extras/ezio/ezio.c \
30         extras/ezio/ezio.h \
31         extras/ezio/terminal.c \
32         extras/ezio/terminal.h \
33         extras/ezio/tty.c \
34         extras/ezio/tty.h \
35         extras/ezio/vt.h
36 if HAVE_LINUX_VT_H
37 extras_ezio_ezio_term_SOURCES += extras/ezio/vt-linux.c
38 else
39 extras_ezio_ezio_term_SOURCES += extras/ezio/vt-dummy.c
40 endif
41 extras_ezio_ezio_term_LDADD = lib/libopenvswitch.a $(NCURSES_LIBS)
42
43 bin_PROGRAMS += extras/ezio/ovs-switchui
44 extras_ezio_ovs_switchui_SOURCES = extras/ezio/ovs-switchui.c
45 extras_ezio_ovs_switchui_LDADD = \
46         lib/libopenvswitch.a \
47         $(NCURSES_LIBS) \
48         $(PCRE_LIBS) \
49         $(SSL_LIBS) \
50         -lm
51 endif # HAVE_PCRE_PARTIAL
52 endif # HAVE_CURSES