use pattern rules instead of suffix rules in the Makefile
authorletoh <letoh.tw@gmail.com>
Wed, 9 Sep 2020 07:30:29 +0000 (15:30 +0800)
committerletoh <letoh.tw@gmail.com>
Wed, 9 Sep 2020 07:30:29 +0000 (15:30 +0800)
commit457cb99f57292bc855e53abcdcb7b12d6681e847
treebab24b0049d5e933350ec8a85c67596dda17238f
parente476e087a64494c5965330887a248069c69e706e
use pattern rules instead of suffix rules in the Makefile

Both the two suffix rules in current Makefile include prerequisites, so a make
with POSIX mode enabled will treat them as rules to build two normal files with
strange names (.c.o and .c.eo), rather than create pattern rules implicitly.

According to the release note from make 4.3, the POSIX behavior will be adopted
as the only behavior in a future release, so use the pattern rules instead.
build/unix/Makefile