Use PKGCONFIG for adding sdl CFLAGS/LDFLAGS