3 # Makefile for tdb directory
8 exec_prefix = @
exec_prefix@
10 includedir = @
includedir@
12 VPATH
= @
srcdir@
:@libreplacedir@
15 sharedbuilddir
= @sharedbuilddir@
16 INSTALLCMD
= @INSTALL@
17 CPPFLAGS
= @CPPFLAGS@
-I
$(srcdir)/include -Iinclude
-I.
21 SHLD_FLAGS
= @SHLD_FLAGS@
22 PACKAGE_VERSION
= @PACKAGE_VERSION@
26 PYTHON_CONFIG
= @PYTHON_CONFIG@
27 PYTHON_BUILD_TARGET
= @PYTHON_BUILD_TARGET@
28 PYTHON_INSTALL_TARGET
= @PYTHON_INSTALL_TARGET@
29 PYTHON_CHECK_TARGET
= @PYTHON_CHECK_TARGET@
30 LIB_PATH_VAR
= @LIB_PATH_VAR@
31 teventdir
= @teventdir@
33 TALLOC_CFLAGS
= @TALLOC_CFLAGS@
34 TALLOC_LDFLAGS
= @TALLOC_CFLAGS@
35 TALLOC_LIBS
= @TALLOC_LIBS@
37 TEVENT_CFLAGS
= @TEVENT_CFLAGS@
38 TEVENT_LDFLAGS
= @TEVENT_CFLAGS@
39 TEVENT_LIBS
= @TEVENT_LIBS@
41 CFLAGS
= $(CPPFLAGS
) $(TALLOC_CFLAGS
) $(TEVENT_CFLAGS
) @CFLAGS@
42 LDFLAGS
= $(TALLOC_LDFLAGS
) $(TEVENT_LDFLAGS
) @LDFLAGS@
43 LIBS
= $(TALLOC_LIBS
) $(TEVENT_LIBS
) @LIBS@
45 TEVENT_OBJ
= @TEVENT_OBJ@ @LIBREPLACEOBJ@
49 include $(teventdir
)/tevent.mk
50 include $(teventdir
)/rules.mk
52 all:: showflags dirs
$(PROGS
) $(TEVENT_SOLIB
) libtevent.a
$(PYTHON_BUILD_TARGET
)
55 $(TEVENT_SOLIB
): $(TEVENT_OBJ
)
56 $(SHLD
) $(SHLD_FLAGS
) $(LDFLAGS
) $(LIBS
) -o
$@
$(TEVENT_OBJ
) @SONAMEFLAG@
$(TEVENT_SONAME
)
59 ${INSTALLCMD} -d
$(sharedbuilddir
)/lib
60 ${INSTALLCMD} -m
644 libtevent.a
$(sharedbuilddir
)/lib
61 ${INSTALLCMD} -m
755 $(TEVENT_SOLIB
) $(sharedbuilddir
)/lib
62 ln
-sf
$(TEVENT_SOLIB
) $(sharedbuilddir
)/lib
/$(TEVENT_SONAME
)
63 ln
-sf
$(TEVENT_SOLIB
) $(sharedbuilddir
)/lib
/libtevent.so
64 ${INSTALLCMD} -d
$(sharedbuilddir
)/include
65 ${INSTALLCMD} -m
644 $(srcdir)/tevent.h
$(sharedbuilddir
)/include
69 test:: $(PYTHON_CHECK_TARGET
)
70 installcheck:: test install
76 rm -f config.log config.status config.h config.cache
79 realdistclean
:: distclean
80 rm -f configure config.h.in