Merge "citrix" into "master".
[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
10 if HAVE_CURSES
11 if HAVE_PCRE
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/byteq.c \
29         extras/ezio/byteq.h \
30         extras/ezio/ezio-term.c \
31         extras/ezio/ezio.c \
32         extras/ezio/ezio.h \
33         extras/ezio/terminal.c \
34         extras/ezio/terminal.h \
35         extras/ezio/tty.c \
36         extras/ezio/tty.h \
37         extras/ezio/vt.h
38 if HAVE_LINUX_VT_H
39 extras_ezio_ezio_term_SOURCES += extras/ezio/vt-linux.c
40 else
41 extras_ezio_ezio_term_SOURCES += extras/ezio/vt-dummy.c
42 endif
43 extras_ezio_ezio_term_LDADD = lib/libopenvswitch.a $(NCURSES_LIBS)
44
45 bin_PROGRAMS += extras/ezio/ovs-switchui
46 extras_ezio_ovs_switchui_SOURCES = extras/ezio/ovs-switchui.c
47 extras_ezio_ovs_switchui_LDADD = \
48         lib/libopenvswitch.a \
49         $(NCURSES_LIBS) \
50         $(PCRE_LIBS) \
51         $(SSL_LIBS) \
52         -lm
53 endif # HAVE_PCRE
54 endif # HAVE_CURSES