From: Bruce Cran Date: Thu, 16 Dec 2010 07:52:42 +0000 (+0100) Subject: Get rid of other-OS headers in .depend X-Git-Tag: fio-1.50-rc1~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=59e733f272bbbe32f2aaa4f068d99e7f71fce337 Get rid of other-OS headers in .depend 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 --- diff --git a/Makefile.FreeBSD b/Makefile.FreeBSD index 9378b195..02ff95db 100644 --- a/Makefile.FreeBSD +++ b/Makefile.FreeBSD @@ -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 diff --git a/Makefile.NetBSD b/Makefile.NetBSD index 9378b195..02ff95db 100644 --- a/Makefile.NetBSD +++ b/Makefile.NetBSD @@ -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 diff --git a/Makefile.mac b/Makefile.mac index 25c7fdee..3eb20be3 100644 --- a/Makefile.mac +++ b/Makefile.mac @@ -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