Release
[nbd.git] / Makefile.am
blob4fcfd63536a70f881d8e1460d59b699a8726387a
1 ACLOCAL_AMFLAGS = -I support
2 SUBDIRS = . man doc tests systemd gznbd
3 bin_PROGRAMS = nbd-server nbd-trdump
4 EXTRA_PROGRAMS = nbd-client make-integrityhuge
5 noinst_LTLIBRARIES = libnbdsrv.la libcliserv.la
6 libcliserv_la_SOURCES = cliserv.h cliserv.c
7 libcliserv_la_CFLAGS = @CFLAGS@
8 client_srcs = nbd-client.c cliserv.h nbd-netlink.h
9 nbd_server_SOURCES = nbd-server.c cliserv.h lfs.h nbd.h nbdsrv.h backend.h \
10         netdb-compat.h
11 nbd_trdump_SOURCES = nbd-trdump.c cliserv.h nbd.h
12 client_flags = @CFLAGS@
13 nbd_server_CFLAGS = @CFLAGS@ @GLIB_CFLAGS@
14 nbd_trdump_CFLAGS = @CFLAGS@ @GLIB_CFLAGS@
15 libnbdsrv_la_SOURCES = nbdsrv.c nbdsrv.h treefiles.c treefiles.h
16 libnbdsrv_la_CFLAGS = @CFLAGS@ @GLIB_CFLAGS@
17 client_libs = libcliserv.la
18 nbd_server_LDADD = @GLIB_LIBS@ libnbdsrv.la libcliserv.la
19 nbd_trdump_LDADD = libcliserv.la
20 make_integrityhuge_SOURCES = make-integrityhuge.c cliserv.h nbd.h nbd-debug.h
21 EXTRA_DIST = maketr CodingStyle autogen.sh README.md support/genver.sh
22 if GNUTLS
23 nbd_server_CFLAGS += @GnuTLS_CFLAGS@
24 nbd_server_LDADD += @GnuTLS_LIBS@
25 endif
26 if CLIENT
27 sbin_PROGRAMS = nbd-client
28 if GNUTLS
29 sbin_PROGRAMS += min-nbd-client
30 min_nbd_client_SOURCES = $(client_srcs)
31 min_nbd_client_CFLAGS = $(client_flags) -DNOTLS -DPROG_NAME='"min-nbd-client"'
32 min_nbd_client_LDADD = $(client_libs)
33 nbd_client_SOURCES = $(client_srcs) crypto-gnutls.c crypto-gnutls.h buffer.c buffer.h
34 nbd_client_CFLAGS = $(client_flags) @GnuTLS_CFLAGS@ -DPROG_NAME='"nbd-client"'
35 nbd_client_LDADD = $(client_libs) @GnuTLS_LIBS@
36 else
37 nbd_client_SOURCES = $(client_srcs)
38 nbd_client_CFLAGS = $(client_flags) -DNOTLS -DPROG_NAME='"nbd-client"'
39 nbd_client_LDADD = $(client_libs)
40 endif
41 endif
43 AM_DISTCHECK_CONFIGURE_FLAGS=--enable-syslog