commit 4ac9c44d25637f83e734af4c03e62763b9f190af
parent 69a2cd903e087714757e3f8f39443b09ce0518c4
Author: Ben Webb <ben@salilab.org>
Date: Sat, 13 Feb 2021 18:51:42 -0800
More out-of-tree build support
Make sure that the GUI client and the cursesport code
can also find top-level headers when built out of tree.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cursesport/Makefile.am b/src/cursesport/Makefile.am
@@ -1,4 +1,4 @@
noinst_LIBRARIES = libcursesport.a
libcursesport_a_SOURCES = cursesport.c cursesport.h
-AM_CPPFLAGS= -I${srcdir} @GLIB_CFLAGS@
+AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GLIB_CFLAGS@
DEFS = @DEFS@
diff --git a/src/gtkport/Makefile.am b/src/gtkport/Makefile.am
@@ -2,5 +2,5 @@ noinst_LIBRARIES = libgtkport.a
libgtkport_a_SOURCES = gtkport.c gtkport.h gtkenums.h \
unicodewrap.c unicodewrap.h treeview.h treeview.c \
itemfactory.c itemfactory.h gtktypes.h
-AM_CPPFLAGS= -I${srcdir} @GTK_CFLAGS@ @GLIB_CFLAGS@
+AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GTK_CFLAGS@ @GLIB_CFLAGS@
DEFS = @DEFS@
diff --git a/src/gui_client/Makefile.am b/src/gui_client/Makefile.am
@@ -2,5 +2,5 @@ noinst_LIBRARIES = libguiclient.a
libguiclient_a_SOURCES = gtk_client.c gtk_client.h \
optdialog.c optdialog.h \
newgamedia.c newgamedia.h dopewars-pill.xpm
-AM_CPPFLAGS= -I${srcdir} @GTK_CFLAGS@ @GLIB_CFLAGS@
+AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GTK_CFLAGS@ @GLIB_CFLAGS@
DEFS = @DEFS@