Get rid of other-OS headers in .depend
authorBruce Cran <bruce@cran.org.uk>
Thu, 16 Dec 2010 07:52:42 +0000 (08:52 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 16 Dec 2010 07:52:42 +0000 (08:52 +0100)
It looks like blktrace_api.h is being parsed through the depend rule
in Makefile.[FreeBSD|NetBSD|mac] due to the headers being listed in
$(SOURCE) - gcc just ignores missing <> headers while clang generates an
error as it builds the dependency list. Since headers which are
included within source files will be listed as a dependency anyway, I
think they can be removed from $(SOURCE).

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Makefile.FreeBSD
Makefile.NetBSD
Makefile.mac

index 9378b195392cd75396a7019450f0a0a1a49c5ac6..02ff95db4580201fb6311e7641763a6d78612d84 100644 (file)
@@ -33,9 +33,7 @@ OBJS += engines/net.o
 SOURCE = eta.c filehash.c filesetup.c fio.c gettime.c init.c ioengines.c \
         io_u.c log.c memory.c mutex.c options.c parse.c rbtree.c smalloc.c \
         stat.c parse.c crc/*.c engines/cpu.c engines/mmap.c \
-        engines/posixaio.c engines/sync.c engines/null.c engines/net.c \
-        *.h arch/*.h compiler/*.h crc/*.h lib/*.h \
-        os/indirect.h os/kcompat.h os/os-freebsd.h os/os.h os/syslet.h
+        engines/posixaio.c engines/sync.c engines/null.c engines/net.c
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
 ifndef V
index 9378b195392cd75396a7019450f0a0a1a49c5ac6..02ff95db4580201fb6311e7641763a6d78612d84 100644 (file)
@@ -33,9 +33,7 @@ OBJS += engines/net.o
 SOURCE = eta.c filehash.c filesetup.c fio.c gettime.c init.c ioengines.c \
         io_u.c log.c memory.c mutex.c options.c parse.c rbtree.c smalloc.c \
         stat.c parse.c crc/*.c engines/cpu.c engines/mmap.c \
-        engines/posixaio.c engines/sync.c engines/null.c engines/net.c \
-        *.h arch/*.h compiler/*.h crc/*.h lib/*.h \
-        os/indirect.h os/kcompat.h os/os-freebsd.h os/os.h os/syslet.h
+        engines/posixaio.c engines/sync.c engines/null.c engines/net.c
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
 ifndef V
index 25c7fdee7db40376881d2abac26d92669d0eb83a..3eb20be3f30fe986255d24df49a9431a5b8ad175 100644 (file)
@@ -33,8 +33,7 @@ OBJS += engines/net.o
 SOURCE = eta.c filehash.c filesetup.c fio.c gettime.c init.c ioengines.c \
         io_u.c log.c memory.c mutex.c options.c parse.c rbtree.c smalloc.c \
         stat.c parse.c crc/*.c engines/cpu.c engines/mmap.c \
-        engines/posixaio.c engines/sync.c engines/null.c engines/net.c \
-        *.h */*.h
+        engines/posixaio.c engines/sync.c engines/null.c engines/net.c
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
 ifndef V