Closed Johnnynator closed 5 years ago
Shouldn't -lcurses go to LDFLAGS?
@tenox7 LDFLAGS and CFLAGS should be used in a way that they can be overwritten from the outside without being able to break, so they should only contain optional flags. -lcurses is mandatory, sometimes libraries do get put into a variable called LIBS.
It is generally nicer to not hard code the compiler and cflags so that the Makefile works in more use cases e.g. cross compiling, systems that have clang installed and so on. Note
$(CC)
defaults to gcc if it is unset.