summaryrefslogtreecommitdiffstats
path: root/cli/src/Makefile.am
blob: 7054f1120c8cdf3ac1aca0d0e9be0bb67d17de8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sbin_PROGRAMS = gluster

gluster_SOURCES = cli.c registry.c input.c cli-cmd.c cli-rl.c \
	 cli-cmd-volume.c cli-cmd-peer.c cli-rpc-ops.c cli-cmd-parser.c\
	 cli-cmd-system.c cli-cmd-misc.c cli-xml-output.c
if ENABLE_BD_XLATOR
gluster_SOURCES += cli-cmd-volume-bdevice.c
endif

gluster_LDADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(GF_LDADD)\
		$(RLLIBS) $(top_builddir)/rpc/xdr/src/libgfxdr.la \
		$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
		$(GF_GLUSTERFS_LIBS) $(LIBXML2_LIBS)

gluster_LDFLAGS = $(GF_LDFLAGS)
noinst_HEADERS = cli.h cli-mem-types.h cli-cmd.h

AM_CPPFLAGS = $(GF_CPPFLAGS) \
	-I$(top_srcdir)/libglusterfs/src -I$(top_srcdir)/rpc/rpc-lib/src\
	-I$(top_srcdir)/rpc/xdr/src\
	-DDATADIR=\"$(localstatedir)\" \
	-DCONFDIR=\"$(sysconfdir)/glusterfs\" \
	-DGSYNCD_PREFIX=\"$(libexecdir)/glusterfs\"\
	-DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE) -DSBIN_DIR=\"$(sbindir)\"\
	$(LIBXML2_CFLAGS)

AM_CFLAGS = -Wall $(GF_GLUSTERFS_CFLAGS)

CLEANFILES =

$(top_builddir)/libglusterfs/src/libglusterfs.la:
	$(MAKE) -C $(top_builddir)/libglusterfs/src/ all