Fix non-srcdir builds

We need to modify the various paths we reference to include the build
directory, in the case when the build directory is not the source
directory.
This commit is contained in:
Emmanuele Bassi 2018-04-06 18:26:07 +01:00
parent 8aba48aa27
commit c9a550e93c
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ CLEANFILES = suffixes_dafsa.c
lib_LTLIBRARIES = libpsl.la
libpsl_la_SOURCES = psl.c lookup_string_in_fixed_set.c
libpsl_la_CPPFLAGS = -I$(top_srcdir)/include -DPSL_DISTFILE=\"$(PSL_DISTFILE)\"
libpsl_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -DPSL_DISTFILE=\"$(PSL_DISTFILE)\"
# include ABI version information
libpsl_la_LDFLAGS = -version-info $(LIBPSL_SO_VERSION)
if WITH_LIBICU

View File

@ -1,7 +1,7 @@
bin_PROGRAMS = psl
AM_CPPFLAGS = -I$(top_srcdir)/include
LDADD = ../src/libpsl.la
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
LDADD = $(top_builddir)/src/libpsl.la
#if WITH_LIBICU
# LDADD += -licuuc