- Add
include <path/to/pal.mak>
to the top of a makefile. - Call any of the functions with
$(call pal_<func>,<arg1>,<arg2>)
, e.g.$(call pal_clrtxt,$(CLR_BLU),prints this text in blue)
.
tomasz-lisowski/make-pal
Dead simple Platform Abstraction Layer (PAL) for use in makefiles to simplify cross-platform builds.
MakefileMIT