From cb5060cf003501c96d181fd59286f218c1d5f538 Mon Sep 17 00:00:00 2001 From: Ruben Laguna Date: Wed, 28 Jan 2015 23:05:38 +0100 Subject: [PATCH] Change to non-recursive makefiles --- Makefile.am | 5 ++++- configure.ac | 5 ++--- src/Makefile.am | 3 --- 3 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 src/Makefile.am diff --git a/Makefile.am b/Makefile.am index af437a6..75cc8b9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1,4 @@ -SUBDIRS = src +bin_PROGRAMS = myexecutable +myexecutable_SOURCES = \ + src/main.c +myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES diff --git a/configure.ac b/configure.ac index c30f83b..a94b751 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.69]) AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) -AM_INIT_AUTOMAKE([foreign]) # Does not require NEWS, COPYING, AUTHORS, ChangeLog or README +AM_INIT_AUTOMAKE([foreign subdir-objects]) # Does not require NEWS, COPYING, AUTHORS, ChangeLog or README AM_SILENT_RULES([yes]) # less verbose make output https://autotools.io/automake/silent.html @@ -37,6 +37,5 @@ AC_CHECK_HEADER([stdlib.h]) # Checks for library functions. -AC_CONFIG_FILES([Makefile - src/Makefile]) +AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am deleted file mode 100644 index 1a26f52..0000000 --- a/src/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -bin_PROGRAMS = myexecutable -myexecutable_SOURCES = main.c -myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES