]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Update makefile dependencies
authorKeith Busch <keith.busch@gmail.com>
Sat, 17 Feb 2018 20:51:21 +0000 (13:51 -0700)
committerKeith Busch <keith.busch@gmail.com>
Sun, 18 Feb 2018 17:40:31 +0000 (10:40 -0700)
Most object files use some of the nvme APIs, so make the dependency
explicit to avoid any build errors.

Signed-off-by: Keith Busch <keith.busch@gmail.com>
Makefile

index 3e0b161327fbe5f7dc12e25c89e26ba1a30d6b2d..fb6412df263e2676b2ba08d95ef72872a58b40e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ nvme: nvme.c nvme.h $(OBJS) NVME-VERSION-FILE
 nvme.o: nvme.c nvme.h nvme-print.h nvme-ioctl.h argconfig.h suffix.h nvme-lightnvm.h fabrics.h
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
 
-%.o: %.c %.h nvme.h linux/nvme_ioctl.h
+%.o: %.c %.h nvme.h linux/nvme_ioctl.h nvme-ioctl.h nvme-print.h argconfig.h
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
 
 doc: $(NVME)