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 07DC77E2A8; Thu, 10 Mar 2022 11:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646910787; bh=MNR2F2zlEivi6RJ7zj6e4CkA+duyleSsE+T2l50dW5U=; h=From:To:Cc:Subject:Date:From; b=LVo02g/355/B08hHglrJsaqlADPOorz71oP3QfQCvtZlVYQHiMk3NrhvOxtqsIk3l sywA2D0FCERSAX8d47I/bWLQ9GQdXcuDHdTWFUuCJVXZBoxzPS6up2Dq4uc8XrmTvr E4FufrRmgrhTJg9V/fVRKqvnqbMGjiuUFkb6pzbUWOSWThD5XLZKm6pXpbtmQnO7Ps kS2P05DTmuDQjwKSupuijZTarFFjXiUGgUW2A+Yjk3PaLaUQ32FfXNHiaWl+72RHxK 9d4f3N5QamuosKD2609q0igLnV+XTiK/HywikIpbuAOiyR6g2pHdeFofaBME+wTnA9 jx5wgoExqckyg== 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 0/4] Changes for Makefile Date: Thu, 10 Mar 2022 11:12:27 +0000 Message-Id: <20220310111231.1713588-1-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Hello sir, This patchset (v3) changes Makefile. 4 patches here: 1. Remove -fomit-frame-pointer flag, because it's already covered by the -O2 optimization flag. 2. When the header files are modified, the compiled objects are not going to be recompiled because the header files are not marked as a dependency for the objects. - Instruct the compiler to generate dependency files. - Include those files from src/Makefile. Ensure if any changes are made, files that depend on the changes are recompiled. 3. 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. 4. Same as no. 3, but for examples. please review, thx link v2: https://lore.kernel.org/io-uring/20220310103224.1675123-1-alviro.iskandar@gnuweeb.org/ v2 -> v3: - Add dependency files to .gitignore. - Remove dependency files when running "make clean". link v1: https://lore.kernel.org/io-uring/20220308224002.3814225-1-alviro.iskandar@gnuweeb.org/ v1 -> v2: - Instruct the compiler to generate dependency files instead of hard code it in the Makefile. - Add liburing.a to dependency for test (patch 3). - Add liburing.a to dependency for examples (patch 4). Signed-off-by: Alviro Iskandar Setiawan --- Alviro Iskandar Setiawan (4): src/Makefile: Remove `-fomit-frame-pointer` from default build src/Makefile: Add header files as dependency test/Makefile: Add liburing.a as a dependency examples/Makefile: Add liburing.a as a dependency .gitignore | 1 + examples/Makefile | 2 +- src/Makefile | 15 +++++++-------- test/Makefile | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) base-commit: 6231f56da7881bde6fb011e1b54d672f8fe5a224 -- 2.25.1