ref: 3ea3b46576867f56e3fc1297ca6ef73da614473b
parent: 63acb184cc32874e3f3b92cddbeef298251e57c1
author: David Seifert <soap@gentoo.org>
date: Sat Jun 10 11:48:00 EDT 2017
Modernise Automake code to be more portable * Prefer POSIX pattern rules over GNU patterns rules * Use AM_CPPFLAGS and not INCLUDES
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -6,7 +6,7 @@
check_PROGRAMS = varispeed-play timewarp-file
SAMPLERATEDIR =../src
-INCLUDES = -I$(srcdir)/$(SAMPLERATEDIR) @OS_SPECIFIC_INCLUDES@
+AM_CPPFLAGS = -I$(srcdir)/$(SAMPLERATEDIR) @OS_SPECIFIC_INCLUDES@
OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,8 +31,8 @@
@echo
@echo
-%.s : $(srcdir)/%.c
- $(CC) -S $(CFLAGS) $(DEFAULT_INCLUDES) $(srcdir)/$+ -o $@
+.c.s:
+ $(CC) -S $(CFLAGS) $(CPPFLAGS) $(DEFAULT_INCLUDES) $< -o $@
# Disable autoheader.
AUTOHEADER=echo
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -18,7 +18,7 @@
throughput_test
SAMPLRATEDIR =../src
-INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR)
+AM_CPPFLAGS = -I$(srcdir)/$(SAMPLRATEDIR)
noinst_HEADERS = util.h
#===============================================================================