net lua
[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 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 eventsdir = @eventsdir@
33
34 TALLOC_CFLAGS = @TALLOC_CFLAGS@
35 TALLOC_LDFLAGS = @TALLOC_CFLAGS@
36 TALLOC_LIBS = @TALLOC_LIBS@
37
38 EVENTS_CFLAGS = @EVENTS_CFLAGS@
39 EVENTS_LDFLAGS = @EVENTS_CFLAGS@
40 EVENTS_LIBS = @EVENTS_LIBS@
41
42 CFLAGS = $(CPPFLAGS) $(TALLOC_CFLAGS) $(EVENTS_CFLAGS) @CFLAGS@
43 LDFLAGS = $(TALLOC_LDFLAGS) $(EVENTS_LDFLAGS) @LDFLAGS@
44 LIBS = $(TALLOC_LIBS) $(EVENTS_LIBS) @LIBS@
45
46 EVENTS_OBJ = @EVENTS_OBJ@ @LIBREPLACEOBJ@
47
48 default: all
49
50 include $(eventsdir)/events.mk
51 include $(eventsdir)/rules.mk
52
53 all:: showflags dirs $(PROGS) $(EVENTS_SOLIB) libevents.a $(PYTHON_BUILD_TARGET)
54
55 install:: all
56 $(EVENTS_SOLIB): $(EVENTS_OBJ)
57         $(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(EVENTS_OBJ) @SONAMEFLAG@$(EVENTS_SONAME)
58
59 shared-build: all
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
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