Commit f6828cfbc1bf24d686e6e24ce9822e69f824351d

Authored by Janne Grunau
1 parent d315d20d
Exists in master and in 2 other branches v2, v3

build: fix out of source tree build

examples/Makefile.am
1 1 # GF-Complete 'examples' AM file
2 2  
3   -AM_CPPFLAGS=-I./ -I../include
4   -AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC $(INCLUDES)
  3 +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
  4 +AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC
5 5  
6 6 bin_PROGRAMS = gf_example_1 gf_example_2 gf_example_3 gf_example_4 \
7 7 gf_example_5 gf_example_6 gf_example_7
... ...
src/Makefile.am
1 1 # GF-Complete 'core' AM file
2 2 # Creates the library
3 3  
4   -AM_CPPFLAGS=-I./ -I../include
5   -AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC $(INCLUDES)
  4 +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
  5 +AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC
6 6  
7 7 lib_LTLIBRARIES = libgf_complete.la
8 8 libgf_complete_la_SOURCES = gf.c gf_method.c gf_wgen.c gf_w4.c gf_w8.c gf_w16.c gf_w32.c \
... ...
test/Makefile.am
1 1 # GF-Complete 'test' AM file
2 2  
3   -AM_CPPFLAGS=-I./ -I../include
4   -AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC $(INCLUDES)
  3 +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
  4 +AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC
5 5  
6 6 bin_PROGRAMS = gf_unit
7 7  
... ...
tools/Makefile.am
1 1 # GF-Complete 'tools' AM file
2 2  
3   -AM_CPPFLAGS=-I./ -I../include
4   -AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC $(INCLUDES)
  3 +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
  4 +AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC
5 5  
6 6 TESTS=run-tests.sh
7 7  
... ...