reorganize Makefile to support "least surprise" config/make semantics
authorRich Felker <dalias@aerifal.cx>
Tue, 1 May 2012 23:30:03 +0000 (19:30 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 1 May 2012 23:30:03 +0000 (19:30 -0400)
commitd76eafcbdc099abfc1b6d09829349f01c0bfcacf
tree71d2f0f4fd295ddd2b6fdeab4991bf65065b7d3e
parentd86d2829abc116c3e8741aa92727a5c55023088a
reorganize Makefile to support "least surprise" config/make semantics

the major change here is that CFLAGS is now a variable that can be
changed entirely under user control, without causing essential flags
to be lost. previously, "CFLAGS += ..." was valid in config.mak, but
using "CFLAGS = ..." in config.mak would have badly broken the build
process unless the user took care to copy the necessary flags out of
the main Makefile.

I have also added a distclean target that removes config.mak.
Makefile