From 524db0cf19648e3c7c78d3e73103b7a0bdcd6bfc Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 18 Jan 2017 17:14:52 -0800 Subject: *: move source into src/ subdir Restoring some organizational sanity since adopting autotools. --- src/modules/stars/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/modules/stars/Makefile.am (limited to 'src/modules/stars/Makefile.am') diff --git a/src/modules/stars/Makefile.am b/src/modules/stars/Makefile.am new file mode 100644 index 0000000..e709e85 --- /dev/null +++ b/src/modules/stars/Makefile.am @@ -0,0 +1,4 @@ +noinst_LIBRARIES = libstars.a +libstars_a_SOURCES = draw.h stars.c stars.h starslib.c starslib.h +libstars_a_CFLAGS = @ROTOTILLER_CFLAGS@ +libstars_a_CPPFLAGS = @ROTOTILLER_CFLAGS@ -I../../ -- cgit v1.2.1 From 404a356b2b22a134aea151145d1baabf253ee491 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 18 Jan 2017 18:03:38 -0800 Subject: autotools: s#../../#@top_srcdir@/src# The relative path broke out-of-tree builds. Previously the following: $ mkdir /tmp/foo $ cd /tmp/foo $ ~/src/rototiller/configure $ make Would fail to compile unable to locate the headers in ~/rototiller/src This fixes it. --- src/modules/stars/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/stars/Makefile.am') diff --git a/src/modules/stars/Makefile.am b/src/modules/stars/Makefile.am index e709e85..2e2c243 100644 --- a/src/modules/stars/Makefile.am +++ b/src/modules/stars/Makefile.am @@ -1,4 +1,4 @@ noinst_LIBRARIES = libstars.a libstars_a_SOURCES = draw.h stars.c stars.h starslib.c starslib.h libstars_a_CFLAGS = @ROTOTILLER_CFLAGS@ -libstars_a_CPPFLAGS = @ROTOTILLER_CFLAGS@ -I../../ +libstars_a_CPPFLAGS = @ROTOTILLER_CFLAGS@ -I@top_srcdir@/src -- cgit v1.2.1