Re: [PATCH liburing v2 2/4] src/Makefile: Add header files as dependency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/10/22 5:32 PM, Alviro Iskandar Setiawan wrote:
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.

Suggested-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>
Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@xxxxxxxxxxx>

You should add the dependency files to .gitignore, otherwise we will have
these files untracked after build.

  Untracked files:
    (use "git add <file>..." to include in what will be committed)
          src/queue.ol.d
          src/queue.os.d
          src/register.ol.d
          src/register.os.d
          src/setup.ol.d
          src/setup.os.d
          src/syscall.ol.d
          src/syscall.os.d

Also, when doing `make clean`, the dependency files should be removed.

--
Ammar Faizi



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux