Unable to Build on Mac OS

On Mac OS Sierra, High Sierra and Mojave, I find some issues with installing. This is after making sure I have all the library installed and using the make command to run the Makefile.

You will initially get the following error:

use of undeclared identifier 'SIGWINCH'

I was able to fix that by adding the following to CFLAGS:

CFLAGS += -g -D_DARWIN_C_SOURCE

However, even with SDL installed, I get:

sf_util.c:8:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
         ^~~~~~~
1 error generated.
make[1]: *** [sf_util.o] Error 1
make: *** [src/sdl] Error 2

I found some resources that suggest I should use something like this following:

`sdl-config --cflags --libs`

But it's not clear to me how to incorporate this into the existing Makefile. But another source suggested that perhaps the "include <SDL.h>" should be changed to "include <SDL/SDL.h>". So I tried that and then I get different errors:

sf_util.c:892:36: error: function definition is not allowed here
  unsigned myin( void *d, byte **b){return 0;}
                                   ^
sf_util.c:894:2: error: function definition is not allowed here
        {
        ^
sf_util.c:908:24: error: use of undeclared identifier 'myin'
        st = inflateBack( &z, myin, NULL, myout, NULL);
                              ^
sf_util.c:908:36: error: use of undeclared identifier 'myout'
        st = inflateBack( &z, myin, NULL, myout, NULL);

Unfortunately all of this is reminding why I hate Makefiles and C. :( But, that said, I wanted to at least provide this experience report in case it's helpful.