aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0cbef1c..456c952 100644
--- a/Makefile
+++ b/Makefile
@@ -15,16 +15,17 @@
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-NAME_C=loopback_driver
-
LINUX_DIR ?= /lib/modules/$(shell uname -r)/build
-obj-m += $(NAME_C).o
+virtio_loopback-objs := virtio_loopback_driver.o virtio_loopback_device.o
+obj-m += virtio_loopback.o
ifeq ($(DEBUG), 1)
ccflags-y += -DDEBUG
endif
+CFLAGS := -Wall -Wextra -Werror
+
all:
make -C $(LINUX_DIR) M=$(PWD) modules