diff options
author | Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org> | 2022-03-10 11:12:31 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-10 05:13:49 -0700 |
commit | 115cca320dd4df9293440d8e410bebb064822265 (patch) | |
tree | 43e086eee77c105569b6144eaef2eaa41103a63c | |
parent | b48d6af787c00fd4a8f3614f8c1a0443a3054eef (diff) | |
download | liburing-115cca320dd4df9293440d8e410bebb064822265.tar.gz liburing-115cca320dd4df9293440d8e410bebb064822265.tar.bz2 |
examples/Makefile: Add liburing.a as a dependency
The example binaries statically link liburing using liburing.a file.
When liburing.a is recompiled, make sure the example binaries are also
recompiled to ensure changes are applied to the binaries. 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-5-alviro.iskandar@gnuweeb.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | examples/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index f966f94..95a45f9 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -29,7 +29,7 @@ all_targets += $(example_targets) all: $(example_targets) -%: %.c +%: %.c ../src/liburing.a $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS) clean: |