1
0
mirror of https://github.com/gluster/gluster-block.git synced 2026-02-06 06:45:30 +01:00
Files
gluster-block/cli/Makefile.am
Niels de Vos 5d3d0bc59c build: use rpcgen to generate all XDR code
Remove all generated files and have them generated when needed. This
build a libgbrpcxdr.la archive with the .o files that gets linked into
the libgbrpc.la archive. 'rpcgen' generates .c code that triggers
warnings for various compilers. This is not something that can easily be
fixed, so add rpc-pragmas.h (like GlusterFS does) to prevent these
warnings.

There are some functions used by gluster-blockd.c that are not part of
the header and were manually added to block.h. Because block.h get
regenerated now, these functions have been added to a new file
block_svc.h.

Note that generated and compiled files land in $(top_builddir). This
directory does not need to be the same as $(top_srcdir).

Change-Id: I0e764d159d6d785699537eed4e24b16883218038
Fixes: #2
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2017-03-17 15:11:09 +01:00

15 lines
420 B
Makefile

sbin_PROGRAMS = gluster-block
gluster_block_SOURCES = gluster-block.c
gluster_block_LDADD = $(top_builddir)/rpc/libgbrpc.la \
$(top_builddir)/utils/libgb.la
gluster_block_CFLAGS = -DDATADIR=\"$(localstatedir)\" \
-I$(top_srcdir)/ -I$(top_srcdir)/utils/ \
-I$(top_srcdir)/rpc -I$(top_builddir)/rpc/rpcl
DISTCLEANFILES = Makefile.in
CLEANFILES = *~