...You're missing
-Iinclude/SDL2
, and all other compiler/linker flags needed to use SDL2. This is unrelated to makefiles. Also your stated directory structure doesn't match include/SDL2/SDL.h
, where's the SDL2
directory?