2015-01-31 20:37:04 +01:00
|
|
|
AM_CFLAGS = # CFLAGS applicable to all executables (products)
|
|
|
|
|
2015-01-28 23:05:38 +01:00
|
|
|
bin_PROGRAMS = myexecutable
|
|
|
|
myexecutable_SOURCES = \
|
|
|
|
src/main.c
|
|
|
|
myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES
|
2015-02-06 17:10:11 +01:00
|
|
|
|
|
|
|
# Tests
|
|
|
|
# 'check' comes from 'make check'
|
|
|
|
check_PROGRAMS = testsuite # will generate and run testsuite exec
|
|
|
|
|
|
|
|
testsuite_CFLAGS = $(DEPS_CFLAGS) # DEPS_* are filled by PKG_CHECK_MODULES
|
2015-02-06 17:51:56 +01:00
|
|
|
testsuite_LDADD = $(DEPS_LIBS) # in configure.ac
|
2015-02-06 17:10:11 +01:00
|
|
|
|
|
|
|
testsuite_SOURCES = tests/test.c
|
2015-02-06 20:18:20 +01:00
|
|
|
TESTS = testsuite # https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html#Scripts_002dbased-Testsuites
|
2015-02-06 17:10:11 +01:00
|
|
|
|