summaryrefslogtreecommitdiff
path: root/lib/talloc/Makefile.in
blob: 8baa28baaedd9497124cddac3d4d9075d7b6cfbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!gmake
#
prefix = @prefix@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
VPATH = @srcdir@:@libreplacedir@
srcdir = @srcdir@
builddir = @builddir@
sharedbuilddir = @sharedbuilddir@
XSLTPROC = @XSLTPROC@
INSTALLCMD = @INSTALL@
CC = @CC@
CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@
EXTRA_TARGETS = @DOC_TARGET@
PICFLAG = @PICFLAG@
TALLOC_VERSION = @TALLOC_VERSION@
TALLOC_VERSION_MAJOR = @TALLOC_VERSION_MAJOR@
TALLOC_VERSION_MINOR = @TALLOC_VERSION_MINOR@
TALLOC_VERSION_RELEASE = @TALLOC_VERSION_RELEASE@
SHLIBEXT = @SHLIBEXT@
SHLD = @SHLD@
SHLD_FLAGS = @SHLD_FLAGS@
tallocdir = @tallocdir@

LIBOBJ = $(TALLOC_OBJ) @LIBREPLACEOBJ@

SONAMEFLAG = @SONAMEFLAG@
VERSIONSCRIPT = @VERSIONSCRIPT@
EXPORTSFILE = @EXPORTSFILE@

all:: showflags $(EXTRA_TARGETS)

include $(tallocdir)/rules.mk
include $(tallocdir)/talloc.mk

$(TALLOC_SOLIB): $(LIBOBJ)
	$(SHLD) $(SHLD_FLAGS) -o $@ $(LIBOBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TALLOC_SONAME)

shared-build: all
	${INSTALLCMD} -d $(sharedbuilddir)/lib
	${INSTALLCMD} -m 644 libtalloc.a $(sharedbuilddir)/lib
	${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(sharedbuilddir)/lib
	ln -sf $(TALLOC_SOLIB) $(sharedbuilddir)/lib/$(TALLOC_SONAME)
	ln -sf $(TALLOC_SOLIB) $(sharedbuilddir)/lib/libtalloc.so
	${INSTALLCMD} -d $(sharedbuilddir)/include
	${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(sharedbuilddir)/include

check: test

installcheck:: test install

distclean:: clean
	rm -f Makefile
	rm -f config.log config.status config.h config.cache

realdistclean:: distclean
	rm -f configure config.h.in