summaryrefslogtreecommitdiff
path: root/talloc/Makefile.in
blob: 9b1b6320b6a5ede8b871532281b6d0ed42bc210d (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@
buildinstdir = @buildinstdir@
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)

build-install:: all
	${INSTALLCMD} -d $(buildinstdir)/lib
	${INSTALLCMD} -m 755 libtalloc.a $(buildinstdir)/lib
	${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(buildinstdir)/lib
	ln -sf $(TALLOC_SOLIB) $(buildinstdir)/lib/$(TALLOC_SONAME)
	ln -sf $(TALLOC_SOLIB) $(buildinstdir)/lib/libtalloc.so
	${INSTALLCMD} -d $(buildinstdir)/include
	${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(buildinstdir)/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