Fix out of tree builds

Out of tree builds are currently broken because $(top_srcdir)src/include
is not in the search path. In tree builds are working because autconf add
$(top_builddir)/src/include to the search path for the generated config.h.
As $(top_builddir) and $(top_srcdir) are identical during in tree builds
the search path still end up beeing somehow correct.

To fix this add -I$(srcdir)/include to the CPPFLAGS in Makefile.am.
This commit is contained in:
Alban Bedel 2020-04-06 17:04:07 +02:00
parent 39a8f63640
commit 4e5525a48f

View file

@ -1,3 +1,4 @@
AM_CPPFLAGS = -I$(srcdir)/include
AM_CFLAGS = -Wall
bin_PROGRAMS = tio
tio_SOURCES = tty.c \