Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.
[sliver-openvswitch.git] / extras / ezio / automake.mk
1 # Copyright (C) 2008, 2009 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 install-data-hook:
10         @echo tic -x $(srcdir)/extras/ezio/ezio3.ti
11         @if ! tic -x $(srcdir)/extras/ezio/ezio3.ti; then                             \
12           echo "-----------------------------------------------------------"; \
13           echo "Failed to install ezio3 terminfo file.  The ezio-term";       \
14           echo "program will not work until it has been installed.";          \
15           echo "Probably, you need to install the 'tic' program from";        \
16           echo "ncurses, e.g. using a command like:";                         \
17           echo "  apt-get install ncurses-bin";                               \
18           echo "and then re-run \"make install\"";                            \
19           echo "-----------------------------------------------------------"; \
20           exit 1;                                                             \
21         fi
22
23 bin_PROGRAMS += extras/ezio/ezio-term
24 extras_ezio_ezio_term_SOURCES = \
25         extras/ezio/byteq.c \
26         extras/ezio/byteq.h \
27         extras/ezio/ezio-term.c \
28         extras/ezio/ezio.c \
29         extras/ezio/ezio.h \
30         extras/ezio/terminal.c \
31         extras/ezio/terminal.h \
32         extras/ezio/tty.c \
33         extras/ezio/tty.h \
34         extras/ezio/vt.h
35 if HAVE_LINUX_VT_H
36 extras_ezio_ezio_term_SOURCES += extras/ezio/vt-linux.c
37 else
38 extras_ezio_ezio_term_SOURCES += extras/ezio/vt-dummy.c
39 endif
40 extras_ezio_ezio_term_LDADD = lib/libopenvswitch.a $(NCURSES_LIBS)
41
42 bin_PROGRAMS += extras/ezio/ovs-switchui
43 extras_ezio_ovs_switchui_SOURCES = extras/ezio/ovs-switchui.c
44 extras_ezio_ovs_switchui_LDADD = \
45         lib/libopenvswitch.a \
46         $(NCURSES_LIBS) \
47         $(PCRE_LIBS) \
48         $(SSL_LIBS) \
49         -lm