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@
27 PYTHON_CONFIG
= @PYTHON_CONFIG@
28 PYTHON_BUILD_TARGET
= @PYTHON_BUILD_TARGET@
29 PYTHON_INSTALL_TARGET
= @PYTHON_INSTALL_TARGET@
30 PYTHON_CHECK_TARGET
= @PYTHON_CHECK_TARGET@
31 LIB_PATH_VAR
= @LIB_PATH_VAR@
32 eventsdir
= @eventsdir@
34 TALLOC_CFLAGS
= @TALLOC_CFLAGS@
35 TALLOC_LDFLAGS
= @TALLOC_CFLAGS@
36 TALLOC_LIBS
= @TALLOC_LIBS@
38 EVENTS_CFLAGS
= @EVENTS_CFLAGS@
39 EVENTS_LDFLAGS
= @EVENTS_CFLAGS@
40 EVENTS_LIBS
= @EVENTS_LIBS@
42 CFLAGS
= $(CPPFLAGS
) $(TALLOC_CFLAGS
) $(EVENTS_CFLAGS
) @CFLAGS@
43 LDFLAGS
= $(TALLOC_LDFLAGS
) $(EVENTS_LDFLAGS
) @LDFLAGS@
44 LIBS
= $(TALLOC_LIBS
) $(EVENTS_LIBS
) @LIBS@
46 EVENTS_OBJ
= @EVENTS_OBJ@ @LIBREPLACEOBJ@
50 include $(eventsdir
)/events.mk
51 include $(eventsdir
)/rules.mk
53 all:: showflags dirs
$(PROGS
) $(EVENTS_SOLIB
) libevents.a
$(PYTHON_BUILD_TARGET
)
56 $(EVENTS_SOLIB
): $(EVENTS_OBJ
)
57 $(SHLD
) $(SHLD_FLAGS
) $(LDFLAGS
) $(LIBS
) -o
$@
$(EVENTS_OBJ
) @SONAMEFLAG@
$(EVENTS_SONAME
)
60 ${INSTALLCMD} -d
$(sharedbuilddir
)/lib
61 ${INSTALLCMD} -m
644 libevents.a
$(sharedbuilddir
)/lib
62 ${INSTALLCMD} -m
755 $(EVENTS_SOLIB
) $(sharedbuilddir
)/lib
63 ln
-sf
$(EVENTS_SOLIB
) $(sharedbuilddir
)/lib
/$(EVENTS_SONAME
)
64 ln
-sf
$(EVENTS_SOLIB
) $(sharedbuilddir
)/lib
/libevents.so
65 ${INSTALLCMD} -d
$(sharedbuilddir
)/include
66 ${INSTALLCMD} -m
644 $(srcdir)/events.h
$(sharedbuilddir
)/include
70 test:: $(PYTHON_CHECK_TARGET
)
71 installcheck:: test install
77 rm -f config.log config.status
include/config.h config.cache
80 realdistclean
:: distclean
81 rm -f configure
include/config.h.in