summaryrefslogtreecommitdiffstats
path: root/rules/templates
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2014-06-18 17:23:30 +0200
committerJuergen Borleis <jbe@pengutronix.de>2014-07-11 10:28:35 +0200
commit17ec8971c9cb2cf1a8ffc3ab7979b3d2b32b57a2 (patch)
tree9eef165be6203b220e822bdb62a0cfb056f8550d /rules/templates
parent90733c2ed7f0caf964aebab6b369953869027b24 (diff)
downloadptxdist-17ec8971c9cb2cf1a8ffc3ab7979b3d2b32b57a2.tar.gz
ptxdist-17ec8971c9cb2cf1a8ffc3ab7979b3d2b32b57a2.tar.xz
lib autotools template: improvements to the Makefile.am
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Diffstat (limited to 'rules/templates')
-rw-r--r--rules/templates/src-autoconf-lib/Makefile.am97
1 files changed, 86 insertions, 11 deletions
diff --git a/rules/templates/src-autoconf-lib/Makefile.am b/rules/templates/src-autoconf-lib/Makefile.am
index 3f80257da..af31d7527 100644
--- a/rules/templates/src-autoconf-lib/Makefile.am
+++ b/rules/templates/src-autoconf-lib/Makefile.am
@@ -1,25 +1,100 @@
+if BUILD_SILENTLY
+AM_MAKEFLAGS = --no-print-directory
+endif
+
+# TODO add more subdirs to visit on demand
+# SUBDIR =
+
+# pkg's stuff
+pkgconfigdir = \
+ $(libdir)/pkgconfig
+
+pkgconfig_DATA = \
+ lib@name@.pc
+
+# this one gets not installed, only internally used
+noinst_HEADERS = \
+ internal.h
+
+# this one gets installed to enable others to link against your library
+include_HEADERS = \
+ lib@name@.h
+
+#
+# What is to build here
+#
lib_LTLIBRARIES = \
lib@name@.la
-AM_CPPFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/include
-# $(some_CFLAGS)
-
+# TODO remove the not used M4 macro files
EXTRA_DIST = \
- autogen.sh
+ autogen.sh \
+ m4/attributes.m4 \
+ m4/ax_armv4_detection.m4 \
+ m4/ax_armv5_detection.m4 \
+ m4/ax_armv6_detection.m4 \
+ m4/ax_armv7_detection.m4 \
+ m4/ax_floating_point.m4 \
+ m4/pkg.m4 \
+ lib@name@.pc.in \
+ COPYING
+# if "make" has built it, clean only some basic files, but not all
+# MOSTLYCLEANFILES =
+
+# clean files "make" has built
+CLEANFILES = \
+ $(DIST_ARCHIVES)
+
+# clean files "configure" has built
+DISTCLEAN = \
+ config.log \
+ config.status \
+ config.h \
+ libtool \
+ Makefile
+
+# clean all files the maintainer of the package has created
MAINTAINERCLEANFILES = \
configure \
+ configure.scan \
+ config.guess \
+ config.sub \
+ install-sh \
+ ltmain.sh \
+ config.h.in~ \
+ missing \
+ depcomp \
+ config.h.in \
+ Makefile.in \
aclocal.m4 \
- Makefile.in
+ m4/libtool.m4 \
+ m4/ltoptions.m4 \
+ m4/ltsugar.m4 \
+ m4/ltversion.m4 \
+ m4/lt~obsolete.m4 \
+ autoscan.log
#
-# binary
+# library
#
+# lib@namenodash@_la_CPPFLAGS = \
+# $(some_pre_processor_flags)
+
+# lib@namenodash@_la_CFLAGS = \
+# $(some_compiler_flags)
+
+# lib@namenodash@_la_LIBADD = \
+# $(some_libs)
+
+# Note: It overrides the AM_LDFLAGS variable
+lib@namenodash@_la_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ @LDFLAGS_NOUNDEFINED@ \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+ -release $(API_RELEASE)
+
lib@namenodash@_la_SOURCES = \
@name@.c
-#@namenodash@_LDADD = \
-# $(some_LIBS)
-
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}