| 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 | LIB_PATH_VAR = @LIB_PATH_VAR@
|
|---|
| 26 | teventdir = @teventdir@
|
|---|
| 27 |
|
|---|
| 28 | TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
|---|
| 29 | TALLOC_LDFLAGS = @TALLOC_CFLAGS@
|
|---|
| 30 | TALLOC_LIBS = @TALLOC_LIBS@
|
|---|
| 31 |
|
|---|
| 32 | TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
|---|
| 33 | TEVENT_LDFLAGS = @TEVENT_CFLAGS@
|
|---|
| 34 | TEVENT_LIBS = @TEVENT_LIBS@
|
|---|
| 35 |
|
|---|
| 36 | CFLAGS = $(CPPFLAGS) $(TALLOC_CFLAGS) $(TEVENT_CFLAGS) @CFLAGS@
|
|---|
| 37 | LDFLAGS = $(TALLOC_LDFLAGS) $(TEVENT_LDFLAGS) @LDFLAGS@
|
|---|
| 38 | LIBS = $(TALLOC_LIBS) $(TEVENT_LIBS) @LIBS@
|
|---|
| 39 |
|
|---|
| 40 | TEVENT_OBJ = @TEVENT_OBJ@ @LIBREPLACEOBJ@
|
|---|
| 41 |
|
|---|
| 42 | SONAMEFLAG = @SONAMEFLAG@
|
|---|
| 43 | VERSIONSCRIPT = @VERSIONSCRIPT@
|
|---|
| 44 | EXPORTSFILE = @EXPORTSFILE@
|
|---|
| 45 |
|
|---|
| 46 | default: all
|
|---|
| 47 |
|
|---|
| 48 | include $(teventdir)/tevent.mk
|
|---|
| 49 | include $(teventdir)/rules.mk
|
|---|
| 50 |
|
|---|
| 51 | all:: showflags dirs $(PROGS) $(TEVENT_SOLIB) libtevent.a
|
|---|
| 52 |
|
|---|
| 53 | install:: all
|
|---|
| 54 | $(TEVENT_SOLIB): $(TEVENT_OBJ)
|
|---|
| 55 | $(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(TEVENT_OBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TEVENT_SONAME)
|
|---|
| 56 |
|
|---|
| 57 | shared-build: all
|
|---|
| 58 | ${INSTALLCMD} -d $(sharedbuilddir)/lib
|
|---|
| 59 | ${INSTALLCMD} -m 644 libtevent.a $(sharedbuilddir)/lib
|
|---|
| 60 | ${INSTALLCMD} -m 755 $(TEVENT_SOLIB) $(sharedbuilddir)/lib
|
|---|
| 61 | ln -sf $(TEVENT_SOLIB) $(sharedbuilddir)/lib/$(TEVENT_SONAME)
|
|---|
| 62 | ln -sf $(TEVENT_SOLIB) $(sharedbuilddir)/lib/libtevent.so
|
|---|
| 63 | ${INSTALLCMD} -d $(sharedbuilddir)/include
|
|---|
| 64 | ${INSTALLCMD} -m 644 $(srcdir)/tevent.h $(sharedbuilddir)/include
|
|---|
| 65 |
|
|---|
| 66 | check: test
|
|---|
| 67 |
|
|---|
| 68 | installcheck:: test install
|
|---|
| 69 |
|
|---|
| 70 | clean::
|
|---|
| 71 | rm -f *.o *.a */*.o
|
|---|
| 72 | rm -fr abi
|
|---|
| 73 |
|
|---|
| 74 | distclean:: clean
|
|---|
| 75 | rm -f config.log config.status config.h config.cache
|
|---|
| 76 | rm -f Makefile
|
|---|
| 77 |
|
|---|
| 78 | realdistclean:: distclean
|
|---|
| 79 | rm -f configure config.h.in
|
|---|