philburk / pforth

Portable Forth in C
BSD Zero Clause License
589 stars 94 forks source link

use pattern rules instead of suffix rules in the Makefile #80

Closed letoh closed 4 years ago

letoh commented 4 years ago

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.

As I have mentioned in #53 , the use of suffix rules in current Makefile is incorrect. So the make cannot find any rule to build the target pf_cglue.o. This PR should fix #76 .

References:

philburk commented 4 years ago

@letoh - Thanks! I verified that this:

Fixes #52