summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2011-08-22 21:18:00 -0700
committerSage Weil <sage.weil@dreamhost.com>2011-08-22 21:18:00 -0700
commitd5a9301f2cc0a576edb02558a02033b74e9e26e4 (patch)
tree573f7342d1f8a48359f5836d6253a3c54e375aec /qa
parentba4551d1048a0393f9c361c95358f8a18ba69265 (diff)
downloadceph-d5a9301f2cc0a576edb02558a02033b74e9e26e4.tar.gz
qa: define _GNU_SOURCE for qa helpers; add btrfs dir makefile
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'qa')
-rw-r--r--qa/btrfs/Makefile11
-rw-r--r--qa/workunits/direct_io/Makefile4
2 files changed, 13 insertions, 2 deletions
diff --git a/qa/btrfs/Makefile b/qa/btrfs/Makefile
new file mode 100644
index 00000000000..8e82d30916b
--- /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 637b8d9046a..20fec0be505 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 $@