summaryrefslogtreecommitdiff
path: root/talloc/Makefile.in
blob: 586a61642f9cde1d34fb0c4935d67fced1f826a7 (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
#!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@
PACKAGE_VERSION = @PACKAGE_VERSION@
SHLIBEXT = @SHLIBEXT@
SHLD = @SHLD@
SHLD_FLAGS = @SHLD_FLAGS@
tallocdir = @tallocdir@

LIBOBJ = $(TALLOC_OBJ) @LIBREPLACEOBJ@

all:: showflags $(EXTRA_TARGETS)

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

$(TALLOC_SOLIB): $(LIBOBJ)
	$(SHLD) $(SHLD_FLAGS) -o $@ $(LIBOBJ) @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