From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [138.197.159.143]) by gnuweeb.org (Postfix) with ESMTPSA id 3F27A7E2E0; Thu, 10 Mar 2022 10:32:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646908350; bh=uuX90nuv877/C4onFNI5x1c9ovU7MdZmcxbW9Y0HIJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0zzk3O6lpPloaa1JmlSs2lUU/P9YUObmCmjzTsn0kgJR1Br61oZnILbDsxy+5aW1 SYCtA25PSdKzfznZvNE2Z0UJMrwSyWv9+xrtNnIdiaipHKX6YwYKo5zQgqTo5wQ2RA N/RpnFNYQVgTfszQ2woSxtEa8RjeifsXSbtzJzz8Yhrl86iLl2gHYQxD1uSz0uyXt7 gaiWVYx9MTIo6U/lw4BkRtD2ohhrBdVz618GAYAL77WZE9KjjdmjFc1gD+LC8UQMCN a62flpgrpO2q/yT9MD8SZtLToX9+sOGhpk6FTjYtTHxktbiXD+XA/om3QAhSNnzWF7 6YBto7aBcx3uA== From: Alviro Iskandar Setiawan To: Jens Axboe Cc: Alviro Iskandar Setiawan , Pavel Begunkov , Ammar Faizi , Alviro Iskandar Setiawan , io-uring , gwml Subject: [PATCH liburing v2 3/4] test/Makefile: Add liburing.a as a dependency Date: Thu, 10 Mar 2022 10:32:23 +0000 Message-Id: <20220310103224.1675123-4-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220310103224.1675123-1-alviro.iskandar@gnuweeb.org> References: <20220310103224.1675123-1-alviro.iskandar@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 --- test/Makefile | 4 ++-- 1 file 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) -- 2.25.1