Merge branch 'master' of ssh://git.samba.org/data/git/samba
[sfrench/samba-autobuild/.git] / lib / tevent / Makefile.in
1 #!gmake
2 #
3 # Makefile for tdb directory
4 #
5
6 CC = @CC@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 includedir = @includedir@
11 libdir = @libdir@
12 VPATH = @srcdir@:@libreplacedir@
13 srcdir = @srcdir@
14 builddir = @builddir@
15 sharedbuilddir = @sharedbuilddir@
16 INSTALLCMD = @INSTALL@
17 CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude -I.
18 LDFLAGS = @LDFLAGS@
19 EXEEXT = @EXEEXT@
20 SHLD = @SHLD@
21 SHLD_FLAGS = @SHLD_FLAGS@
22 PACKAGE_VERSION = @PACKAGE_VERSION@
23 PICFLAG = @PICFLAG@
24 SHLIBEXT = @SHLIBEXT@
25 SWIG = swig
26 PYTHON = @PYTHON@
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 teventdir = @teventdir@
33
34 TALLOC_CFLAGS = @TALLOC_CFLAGS@
35 TALLOC_LDFLAGS = @TALLOC_CFLAGS@
36 TALLOC_LIBS = @TALLOC_LIBS@
37
38 TEVENT_CFLAGS = @TEVENT_CFLAGS@
39 TEVENT_LDFLAGS = @TEVENT_CFLAGS@
40 TEVENT_LIBS = @TEVENT_LIBS@
41
42 CFLAGS = $(CPPFLAGS) $(TALLOC_CFLAGS) $(TEVENT_CFLAGS) @CFLAGS@
43 LDFLAGS = $(TALLOC_LDFLAGS) $(TEVENT_LDFLAGS) @LDFLAGS@
44 LIBS = $(TALLOC_LIBS) $(TEVENT_LIBS) @LIBS@
45
46 TEVENT_OBJ = @TEVENT_OBJ@ @LIBREPLACEOBJ@
47
48 default: all
49
50 include $(teventdir)/tevent.mk
51 include $(teventdir)/rules.mk
52
53 all:: showflags dirs $(PROGS) $(TEVENT_SOLIB) libtevent.a $(PYTHON_BUILD_TARGET)
54
55 install:: all
56 $(TEVENT_SOLIB): $(TEVENT_OBJ)
57         $(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(TEVENT_OBJ) @SONAMEFLAG@$(TEVENT_SONAME)
58
59 shared-build: all
60         ${INSTALLCMD} -d $(sharedbuilddir)/lib
61         ${INSTALLCMD} -m 644 libtevent.a $(sharedbuilddir)/lib
62         ${INSTALLCMD} -m 755 $(TEVENT_SOLIB) $(sharedbuilddir)/lib
63         ln -sf $(TEVENT_SOLIB) $(sharedbuilddir)/lib/$(TEVENT_SONAME)
64         ln -sf $(TEVENT_SOLIB) $(sharedbuilddir)/lib/libtevent.so
65         ${INSTALLCMD} -d $(sharedbuilddir)/include
66         ${INSTALLCMD} -m 644 $(srcdir)/tevent.h $(sharedbuilddir)/include
67
68 check: test
69
70 test:: $(PYTHON_CHECK_TARGET)
71 installcheck:: test install
72
73 clean::
74         rm -f *.o *.a */*.o
75
76 distclean:: clean
77         rm -f config.log config.status include/config.h config.cache
78         rm -f Makefile
79
80 realdistclean:: distclean
81         rm -f configure include/config.h.in