summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>2022-03-10 11:12:30 +0000
committerJens Axboe <axboe@kernel.dk>2022-03-10 05:13:49 -0700
commitb48d6af787c00fd4a8f3614f8c1a0443a3054eef (patch)
tree1d330fdb3b4f7e03c50f05049494eb2279dd6049
parent9ea9df11bbdbbf3bceae38679dd175b092950142 (diff)
downloadliburing-b48d6af787c00fd4a8f3614f8c1a0443a3054eef.tar.gz
liburing-b48d6af787c00fd4a8f3614f8c1a0443a3054eef.tar.bz2
test/Makefile: Add liburing.a as a dependency
The test binaries statically link liburing using liburing.a file. When liburing.a is recompiled, make sure the tests are also recompiled to ensure changes are applied to the test binary. It makes "make clean" command optional when making changes. Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org> Link: https://lore.kernel.org/r/20220310111231.1713588-4-alviro.iskandar@gnuweeb.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index f421f53..9dae002 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -196,10 +196,10 @@ all: $(test_targets)
helpers.o: helpers.c
$(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
-%: %.c $(helpers) helpers.h
+%: %.c $(helpers) helpers.h ../src/liburing.a
$(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(helpers) $(LDFLAGS)
-%: %.cc $(helpers) helpers.h
+%: %.cc $(helpers) helpers.h ../src/liburing.a
$(QUIET_CXX)$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(helpers) $(LDFLAGS)