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 72D697E2CD; Thu, 10 Mar 2022 11:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646910790; bh=uuX90nuv877/C4onFNI5x1c9ovU7MdZmcxbW9Y0HIJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G7p6jTWJdSQQGPuO2KrrTi7M+OsHPUNahWqLR2QFBJqZwu9wIKrdGJfRomvgRzwNM v/pILYxaGUSzbDMorDd0gmewNutFA0LI+WQHHJv/TrywYJhcPzZDxNTYrNUdGltVOl LaGoW7i8B96/If6Hpjtxx0tBISAP4okk9RD/aYmBH+a49O0rrSM2crkv98bEcnRMOj Y+wqF1i+ucatJ8mq9YI3ZCvSgV37PoMYEsnZtG/autc8pgTc4KD1A+LM/1Pa3ACf/X 4P+MjthhU+rgxT/J/gidlSIJGFHnRq73L1JxqE2E7EIjbFUcQsW6JhwZsMss7/YdDd rB2Os5Qe620BQ== From: Alviro Iskandar Setiawan To: Jens Axboe Cc: Alviro Iskandar Setiawan , Pavel Begunkov , Ammar Faizi , Alviro Iskandar Setiawan , io-uring , gwml Subject: [PATCH liburing v3 3/4] test/Makefile: Add liburing.a as a dependency Date: Thu, 10 Mar 2022 11:12:30 +0000 Message-Id: <20220310111231.1713588-4-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220310111231.1713588-1-alviro.iskandar@gnuweeb.org> References: <20220310111231.1713588-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