Merge branch 'master' of ssh://git.samba.org/data/git/samba
[ira/wip.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 PYTHON = @PYTHON@
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@
32
33 TALLOC_CFLAGS = @TALLOC_CFLAGS@
34 TALLOC_LDFLAGS = @TALLOC_CFLAGS@
35 TALLOC_LIBS = @TALLOC_LIBS@
36
37 TEVENT_CFLAGS = @TEVENT_CFLAGS@
38 TEVENT_LDFLAGS = @TEVENT_CFLAGS@
39 TEVENT_LIBS = @TEVENT_LIBS@
40
41 CFLAGS = $(CPPFLAGS) $(TALLOC_CFLAGS) $(TEVENT_CFLAGS) @CFLAGS@
42 LDFLAGS = $(TALLOC_LDFLAGS) $(TEVENT_LDFLAGS) @LDFLAGS@
43 LIBS = $(TALLOC_LIBS) $(TEVENT_LIBS) @LIBS@
44
45 TEVENT_OBJ = @TEVENT_OBJ@ @LIBREPLACEOBJ@
46
47 default: all
48
49 include $(teventdir)/tevent.mk
50 include $(teventdir)/rules.mk
51
52 all:: showflags dirs $(PROGS) $(TEVENT_SOLIB) libtevent.a $(PYTHON_BUILD_TARGET)
53
54 install:: all
55 $(TEVENT_SOLIB): $(TEVENT_OBJ)
56         $(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(TEVENT_OBJ) @SONAMEFLAG@$(TEVENT_SONAME)
57
58 shared-build: all
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
66
67 check: test
68
69 test:: $(PYTHON_CHECK_TARGET)
70 installcheck:: test install
71
72 clean::
73         rm -f *.o *.a */*.o
74
75 distclean:: clean
76         rm -f config.log config.status include/config.h config.cache
77         rm -f Makefile
78
79 realdistclean:: distclean
80         rm -f configure include/config.h.in