diff --git a/Makefile b/Makefile index 34d86947..60abbd87 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ PREFIX=/usr UDEVLIBDIR=/lib/udev DRACUTLIBDIR=/lib/dracut INSTALL=install -CFLAGS+=-std=gnu99 -O2 -Wall -Werror -g -I. +CFLAGS+=-std=gnu99 -O2 -Wall -Werror -g -Iinclude +LDFLAGS+=-static all: bcacheadm probe-bcache diff --git a/bcacheadm.c b/bcacheadm.c index d6e2d869..792b5b79 100644 --- a/bcacheadm.c +++ b/bcacheadm.c @@ -22,13 +22,12 @@ #include #include #include -#include #include #include #include #include #include -#include //libbcache +#include "bcache.h" //libbcache #define PACKAGE_NAME "bcacheadm" #define PACKAGE_VERSION "1.0"