]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
examples: Add src/ into the include and library path
authorHan Han <hhan@redhat.com>
Tue, 20 Oct 2020 12:45:31 +0000 (20:45 +0800)
committerKeith Busch <kbusch@kernel.org>
Tue, 20 Oct 2020 15:13:20 +0000 (08:13 -0700)
That will fix the compiling errors like:
     CC telemetry-listen
telemetry-listen.c:21:10: fatal error: libnvme.h: No such file or directory
   21 | #include <libnvme.h>
      |          ^~~~~~~~~~~

Signed-off-by: Han Han <hhan@redhat.com>
examples/Makefile

index be867a76485c67aa4bc046a92f352d2def68427a..24f8574660f07111f11353df31937ca9d4d256c6 100644 (file)
@@ -1,5 +1,5 @@
 CFLAGS ?= -g -O2
-override CFLAGS += -Wall -D_GNU_SOURCE
+override CFLAGS += -Wall -D_GNU_SOURCE -I ../src -L ../src
 
 include ../Makefile.quiet