This patch introduces new check_header defined in utils/cond.mk to Makefile for inotify test cases.
Signed-off-by: Masatake YAMATO <[EMAIL PROTECTED]> diff -ruN ltp/testcases/kernel/syscalls/inotify/Makefile ltp-hacked/testcases/kernel/syscalls/inotify/Makefile --- ltp/testcases/kernel/syscalls/inotify/Makefile 2008-08-28 01:44:44.000000000 +0900 +++ ltp-hacked/testcases/kernel/syscalls/inotify/Makefile 2008-09-26 23:26:58.000000000 +0900 @@ -16,17 +16,16 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # +include ../utils/cond.mk + + CFLAGS += -I../../../../include -Wall LDLIBS += -L../../../../lib -lltp SRCS = $(wildcard *.c) TARGETS = $(patsubst %.c,%,$(SRCS)) -check_header = $(shell \ - if echo "\#include <$(1)>" | $(CC) -E - > /dev/null; \ - then echo -DHAS_SYS_INOTIFY ; \ - fi) -HAS_SYS_INOTIFY := $(call check_header,sys/inotify.h) +HAS_SYS_INOTIFY := $(call check_header,sys/inotify.h,-DHAS_SYS_INOTIFY, ) CFLAGS += $(HAS_SYS_INOTIFY) all: $(TARGETS) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
