Closed duckinator closed 11 years ago
I would accept this immediately, but I'm currently working with someone else on a new version of the Makefile as well (see issue #5).
It's all good, just threw it together real quick because I already had the Makefile open. Very awesome project, btw. :D
I did similar refactoring to the Makefile in the issue #5 pull request. The differences: I didn't use override
for CFLAGS and I used $(wildcard src/*.c)
to scan for source files. In addition, I did a bunch of other changes too to build debuggable elf files.
@duckinator It is not a good idea to use AS and ASFLAGS with NASM sources, they will collide with the implicit Make rules used to build GNU assembler code (.s and .S files).
@Overv I think you should merge #5, close this pull req and later add override
to CFLAGS, etc if it makes sense to allow overriding the compiler flags in the make command line. Does this sound ok to you?
As @rikusalminen said, override will be added to the new makefile from #5.
Make it so most of the things in the Makefile that may change are now stored in variables.