mevdschee / 2048.c

Console version of the game "2048" for GNU/Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Makefile improvement

Yamakaky opened this issue · comments

You should move ?= to += in CFLAGS delete the 2048: 2048.c so that make uses the implicit rule. It would use CFLAGS and LDFLAGS from the environment. It's useful for package building.

People seem to care a lot about the makefile. I do not, but I'll merge it if you do a PR :-)

In this project, it has nearly no impact, but it permits to packages builders in distros to add compilation flags. On my computer, I enable O2, march=native, -pipe and others.

Well, mdevlamynck is faster than me ^^ #10