mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
110fe0c5a5
- split client specific routines out of ctdb_daemon.c - use ctdb_queue code in message send from client to daemon - use clearer names in client/daemon functions - use talloc autofree context to avoid global for unlink of socket on exit - start on API change for message handler, to allow ctdb messaging to handle daemon mode with multiple clients (This used to be ctdb commit 53555db45f3583ae4a32cc3aa9e07fb8ef2a77e3)
80 lines
2.1 KiB
Makefile
80 lines
2.1 KiB
Makefile
#!gmake
|
|
#
|
|
CC = @CC@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
datarootdir = @datarootdir@
|
|
includedir = @includedir@
|
|
libdir = @libdir@
|
|
bindir = @bindir@
|
|
VPATH = @srcdir@:@tdbdir@:@tallocdir@:@libreplacedir@
|
|
srcdir = @srcdir@
|
|
builddir = @builddir@
|
|
EXTRA_OBJ=@EXTRA_OBJ@
|
|
|
|
CFLAGS=-g -I$(srcdir)/include -Iinclude -Ilib/util -I$(srcdir) \
|
|
-I@tallocdir@ -I@tdbdir@/include -I@libreplacedir@ \
|
|
-DLIBDIR=\"$(libdir)\" -DSHLIBEXT=\"@SHLIBEXT@\" -DUSE_MMAP=1 @CFLAGS@
|
|
|
|
LIB_FLAGS=@LDFLAGS@ -Llib @LIBS@ -lpopt @INFINIBAND_LIBS@
|
|
|
|
EVENTS_OBJ = lib/events/events.o lib/events/events_standard.o
|
|
|
|
CTDB_COMMON_OBJ = common/ctdb.o common/ctdb_daemon.o common/ctdb_client.o common/ctdb_io.o common/util.o common/ctdb_util.o \
|
|
common/ctdb_call.o common/ctdb_ltdb.o common/ctdb_message.o \
|
|
lib/util/idtree.o lib/util/db_wrap.o
|
|
|
|
CTDB_TCP_OBJ = tcp/tcp_connect.o tcp/tcp_io.o tcp/tcp_init.o
|
|
|
|
CTDB_OBJ = $(CTDB_COMMON_OBJ) $(CTDB_TCP_OBJ)
|
|
|
|
OBJS = @TDBOBJ@ @TALLOCOBJ@ @LIBREPLACEOBJ@ @INFINIBAND_WRAPPER_OBJ@ $(EXTRA_OBJ) $(EVENTS_OBJ) $(CTDB_OBJ)
|
|
|
|
BINS = bin/ctdb_test bin/ctdb_bench bin/ctdb_fetch @INFINIBAND_BINS@
|
|
|
|
DIRS = lib bin
|
|
|
|
all: showflags dirs $(OBJS) $(BINS)
|
|
|
|
showflags:
|
|
@echo 'ctdb will be compiled with flags:'
|
|
@echo ' CFLAGS = $(CFLAGS)'
|
|
@echo ' LIBS = $(LIBS)'
|
|
|
|
.c.o:
|
|
@echo Compiling $*.c
|
|
@mkdir -p `dirname $@`
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
dirs:
|
|
@mkdir -p $(DIRS)
|
|
|
|
bin/ctdb_test: $(OBJS) tests/ctdb_test.o
|
|
@echo Linking $@
|
|
@$(CC) $(CFLAGS) -o $@ tests/ctdb_test.o $(OBJS) $(LIB_FLAGS)
|
|
|
|
bin/ctdb_bench: $(OBJS) tests/ctdb_bench.o
|
|
@echo Linking $@
|
|
@$(CC) $(CFLAGS) -o $@ tests/ctdb_bench.o $(OBJS) $(LIB_FLAGS)
|
|
|
|
bin/ctdb_fetch: $(OBJS) tests/ctdb_fetch.o
|
|
@echo Linking $@
|
|
@$(CC) $(CFLAGS) -o $@ tests/ctdb_fetch.o $(OBJS) $(LIB_FLAGS)
|
|
|
|
bin/ibwrapper_test: $(OBJS) ib/ibwrapper_test.o
|
|
@echo Linking $@
|
|
@$(CC) $(CFLAGS) -o $@ ib/ibwrapper_test.o $(OBJS) $(LIB_FLAGS)
|
|
|
|
clean:
|
|
rm -f *.o */*.o */*/*.o
|
|
rm -f $(BINS)
|
|
|
|
distclean: clean
|
|
rm -f *~ */*~
|
|
rm -rf bin
|
|
rm -f config.log config.status config.cache config.h
|
|
rm -f Makefile
|
|
|
|
realdistclean: distclean
|
|
rm -f configure config.h.in
|