Use $(top_srcdir) to reference a source file

The build directory may be different from the source directory.
This commit is contained in:
Ludovic Rousseau
2012-07-04 09:51:22 +02:00
committed by Alan Ott
parent 24d70e657c
commit 1a4bbbc01a
+1 -1
View File
@@ -1,7 +1,7 @@
lib_LTLIBRARIES = libhidapi.la
libhidapi_la_SOURCES = hid.c
libhidapi_la_LDFLAGS = $(LTLDFLAGS)
AM_CPPFLAGS = -I../hidapi/
AM_CPPFLAGS = -I$(top_srcdir)/hidapi/
#libhidapi_la_LIBADD = $(LIBS_HIDRAW)
hdrdir = $(includedir)/hidapi