From d5a9301f2cc0a576edb02558a02033b74e9e26e4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 22 Aug 2011 21:18:00 -0700 Subject: [PATCH] qa: define _GNU_SOURCE for qa helpers; add btrfs dir makefile Signed-off-by: Sage Weil --- qa/btrfs/Makefile | 11 +++++++++++ qa/workunits/direct_io/Makefile | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 qa/btrfs/Makefile diff --git a/qa/btrfs/Makefile b/qa/btrfs/Makefile new file mode 100644 index 0000000000000..8e82d30916be9 --- /dev/null +++ b/qa/btrfs/Makefile @@ -0,0 +1,11 @@ +CFLAGS = -Wall -Wextra -D_GNU_SOURCE + +TARGETS = clone_range + +.c: + $(CC) $(CFLAGS) $@.c -o $@ + +all: $(TARGETS) + +clean: + rm $(TARGETS) diff --git a/qa/workunits/direct_io/Makefile b/qa/workunits/direct_io/Makefile index 637b8d9046a2c..20fec0be50544 100644 --- a/qa/workunits/direct_io/Makefile +++ b/qa/workunits/direct_io/Makefile @@ -1,6 +1,6 @@ -CFLAGS=-Wall -Wextra +CFLAGS = -Wall -Wextra -D_GNU_SOURCE -TARGETS= direct_io_test test_sync_io test_short_dio_read +TARGETS = direct_io_test test_sync_io test_short_dio_read .c: $(CC) $(CFLAGS) $@.c -o $@ -- 2.39.5