News for hackers. Stuff that matters.
Re:How to Structure C Projects: These Best Practices Worked ... by LabMechanic on Friday March 08, 2024 @11:51AM (#39642957)
You can consider using MinUnit and Clang-Tidy together with Clang-Format as well, further, for C it should be something more like this:

    CC = clang
    CFLAGS = -g -std=c2x -Weverything -fsanitize=undefined,address
    
    all: app.exe
    

    app.exe: src/main.c
      $(CC) $(CFLAGS) src/main.c


  clean:
    rm -rf /build

See my comment here with an example of an NMAKE Makefile. Consider:

https://nullprogram.com/blog/2017/08/20/

There are no comments on this comment yet.