Closed grimreaper closed 7 years ago
If you do this the makefile doesn't know that sl.h
is a dependency. If you only change the header then make won't rebuild for you.
True; there are two ways to handle that: gcc -M or manually listing out deps.
That said, this conflicts so closing.
make has a whole bunch of nice implicit logic. with the Makefile set up as above:
works exactly as expected and the compiler and CFLAGS are not hard coded.