mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
e07400525f
Useful to build multiple standalone libraries that depend on each other without having to install them to the final install dir during the build.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
#!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
|