Change to non-recursive makefiles

This commit is contained in:
Ruben Laguna 2015-01-28 23:05:38 +01:00
parent 736889f1d6
commit cb5060cf00
3 changed files with 6 additions and 7 deletions

View File

@ -1 +1,4 @@
SUBDIRS = src bin_PROGRAMS = myexecutable
myexecutable_SOURCES = \
src/main.c
myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES

View File

@ -3,7 +3,7 @@
AC_PREREQ([2.69]) AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) 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 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. # Checks for library functions.
AC_CONFIG_FILES([Makefile AC_CONFIG_FILES([Makefile])
src/Makefile])
AC_OUTPUT AC_OUTPUT

View File

@ -1,3 +0,0 @@
bin_PROGRAMS = myexecutable
myexecutable_SOURCES = main.c
myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES