Here's a proposal for excluding coproc.c from the build when using the makefile included with Chad.
The makefile build failed, because coproc.c uses definitions from stdint.h without including it. Which makes sense, given that coproc.c is supposed to be compiled via inclusion in chad.c, which takes care of including stdint.h.
I changed the makefile to only consider source code files whose names do not start with _, and I renamed coproc.c to _coproc.c.
I like how generic the makefile is and I thus didn't want to hard-code knowledge about coproc.c into the makefile. Instead, I tried to come up with a generic "ignore these source code files" mechanism.
Also, you seem to be observing a margin of 80 characters, so I observed that, too.
With this change, Chad now builds out of the box using the included makefile on Linux and Mac OS.
Hey Brad,
Here's a proposal for excluding
coproc.c
from the build when using the makefile included with Chad.The makefile build failed, because
coproc.c
uses definitions fromstdint.h
without including it. Which makes sense, given thatcoproc.c
is supposed to be compiled via inclusion inchad.c
, which takes care of includingstdint.h
.I changed the makefile to only consider source code files whose names do not start with
_
, and I renamedcoproc.c
to_coproc.c
.I like how generic the makefile is and I thus didn't want to hard-code knowledge about
coproc.c
into the makefile. Instead, I tried to come up with a generic "ignore these source code files" mechanism.Also, you seem to be observing a margin of 80 characters, so I observed that, too.
With this change, Chad now builds out of the box using the included makefile on Linux and Mac OS.