u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

Fix makefile asan compilation #63

Closed gwolf-011235 closed 1 month ago

gwolf-011235 commented 2 months ago

Summary

Small fix for Makefile: better conditional compilation

Detail

Right now Makefile generates different obj directory depending on target (conditional compilation). This worked on another project, where depending on bonus target different source files where used. I think it may not be the right fit here: e.g. if we compile name and then test, we need to compile all program objects two times. Also make comp (for creating compile_commands) is broken, since it generates compile_commands with the wrong flags for the program files.

Changes