Support out-of-tree builds usign bundled libtom

When building out-of-tree we need both source and generated
folders in include paths to find both distributed and generated
headers.
This commit is contained in:
Henrik Nordström 2016-05-11 12:35:06 +02:00
parent 2b891f5eb3
commit 9025cd9b72
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ srcdir=@srcdir@
# Compilation flags. Note the += does not write over the user's CFLAGS! # Compilation flags. Note the += does not write over the user's CFLAGS!
# The rest of the flags come from the parent Dropbear makefile # The rest of the flags come from the parent Dropbear makefile
CFLAGS += -c -I$(srcdir)/src/headers/ -I$(srcdir)/../ -DLTC_SOURCE -I$(srcdir)/../libtommath/ CFLAGS += -c -Isrc/headers/ -I$(srcdir)/src/headers/ -I../ -I$(srcdir)/../ -DLTC_SOURCE -I../libtommath/ -I$(srcdir)/../libtommath/
# additional warnings (newer GCC 3.4 and higher) # additional warnings (newer GCC 3.4 and higher)
ifdef GCC_34 ifdef GCC_34

View File

@ -9,7 +9,7 @@ VPATH=@srcdir@
srcdir=@srcdir@ srcdir=@srcdir@
# So that libtommath can include Dropbear headers for options and m_burn() # So that libtommath can include Dropbear headers for options and m_burn()
CFLAGS += -I$(srcdir)/../libtomcrypt/src/headers/ -I$(srcdir)/../ CFLAGS += -I. -I$(srcdir) -I../libtomcrypt/src/headers/ -I$(srcdir)/../libtomcrypt/src/headers/ -I../ -I$(srcdir)/../
ifndef IGNORE_SPEED ifndef IGNORE_SPEED