Skip to content

Commit

Permalink
Enable out of src tree builds.
Browse files Browse the repository at this point in the history
u2f-host-version.h is dynamically generated so the
$(top_builddir)/u2f-host needs to be added to AM_CPPFLAGS.
  • Loading branch information
schallee committed Nov 2, 2015
1 parent 7d5c59c commit 5cde120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS=-I$(top_srcdir)/u2f-host -I$(top_builddir)
AM_CPPFLAGS=-I$(top_srcdir)/u2f-host -I$(top_builddir) -I$(top_builddir)/u2f-host

bin_PROGRAMS = u2f-host

Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS=-I$(top_srcdir)/u2f-host -I$(top_builddir)
AM_CPPFLAGS=-I$(top_srcdir)/u2f-host -I$(top_builddir) -I$(top_builddir)/u2f-host

AM_LDFLAGS = -no-install
LDADD = ../u2f-host/libu2f-host.la
Expand Down

0 comments on commit 5cde120

Please sign in to comment.