summaryrefslogtreecommitdiff
path: root/source3/lib/talloc/Makefile.in
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-11 22:05:52 +0100
committerMichael Adam <obnox@samba.org>2008-02-13 01:40:11 +0100
commitff0065672e99c4693d2b3e1dcce969fd4852e609 (patch)
treef1e91a4040ed4c7a98ba226bc0c5320d736d1de2 /source3/lib/talloc/Makefile.in
parent38b92adebcbd30975dcc9977822ff305f324ef2d (diff)
downloadsamba-ff0065672e99c4693d2b3e1dcce969fd4852e609.tar.gz
samba-ff0065672e99c4693d2b3e1dcce969fd4852e609.tar.bz2
samba-ff0065672e99c4693d2b3e1dcce969fd4852e609.zip
Split rules.mk out of Makefile.
(cherry picked from commit 75ffc2c50d70e6f4108c3e6843c8d2bb212f6d9e) (This used to be commit 6f8165e4b064f37335e2b0b185ae6433c06a061a)
Diffstat (limited to 'source3/lib/talloc/Makefile.in')
-rw-r--r--source3/lib/talloc/Makefile.in40
1 files changed, 13 insertions, 27 deletions
diff --git a/source3/lib/talloc/Makefile.in b/source3/lib/talloc/Makefile.in
index 9ba557dd8e..5b0506d17f 100644
--- a/source3/lib/talloc/Makefile.in
+++ b/source3/lib/talloc/Makefile.in
@@ -19,24 +19,16 @@ PACKAGE_VERSION = @PACKAGE_VERSION@
SHLIBEXT = @SHLIBEXT@
SHLD_FLAGS = @SHLD_FLAGS@
-.SUFFIXES: .c .o .3 .3.xml .xml .html
-
LIBOBJ = @TALLOC_OBJ@ @LIBREPLACEOBJ@
SOLIB = libtalloc.$(SHLIBEXT).$(PACKAGE_VERSION)
SONAME = libtalloc.$(SHLIBEXT).1
-.c.o:
- $(CC) $(PICFLAG) -o $@ -c $< $(CFLAGS)
-
-all: showflags libtalloc.a $(SOLIB) testsuite $(EXTRA_TARGETS)
+all:: showflags libtalloc.a $(SOLIB) testsuite $(EXTRA_TARGETS)
-showflags:
- @echo 'talloc will be compiled with flags:'
- @echo ' CFLAGS = $(CFLAGS)'
- @echo ' LIBS = $(LIBS)'
+include rules.mk
-testsuite: $(LIBOBJ) testsuite.o
+testsuite:: $(LIBOBJ) testsuite.o
$(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
libtalloc.a: $(LIBOBJ)
@@ -46,7 +38,7 @@ libtalloc.a: $(LIBOBJ)
$(SOLIB): $(LIBOBJ)
$(CC) $(SHLD_FLAGS) -o $@ $(LIBOBJ) @SONAMEFLAG@$(SONAME)
-install: all
+install:: all
${INSTALLCMD} -d $(DESTDIR)$(libdir)
${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir)
@@ -59,30 +51,24 @@ install: all
which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
-doc: talloc.3 talloc.3.html
-
-.3.xml.3:
- -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+doc:: talloc.3 talloc.3.html
-.xml.html:
- -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
-
-clean:
+clean::
rm -f *~ $(LIBOBJ) $(SOLIB) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
-test: testsuite
+check: test
+
+test:: testsuite
./testsuite
-gcov:
+gcov::
gcov talloc.c
-installcheck:
- $(MAKE) test
+installcheck:: test
-distclean: clean
- rm -f *~ */*~
+distclean:: clean
rm -f Makefile
rm -f config.log config.status config.h config.cache
-realdistclean: distclean
+realdistclean:: distclean
rm -f configure config.h.in