Change Makefile to invoke g++ -MM for dependencies
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 25 Oct 2024 11:00:04 +0000 (13:00 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 25 Oct 2024 11:00:04 +0000 (13:00 +0200)
commit83d1541b491bcf46b4347d01671685578ef372fc
treecdd912380df844dba8853ccf85bc7b14fecb233f
parent321ca1e8b0080046d2d8a22dfc5c950b46b3e1ff
Change Makefile to invoke g++ -MM for dependencies

The g++ -MM $(SOURCES) creates dependency list (without system deps) for
all the sources in a format suitable for Makefile.

I don't like using g++ just after making use of clang++ explicit as I
don't know whether both of those are usually present on PCs.
The solution would probably be to provide the g++ incompatible flag
conditionally when c++ == clang++.
ex01/Makefile