diff --git a/Makefile b/Makefile index 6406c1a..5a4f99e 100644 --- a/Makefile +++ b/Makefile @@ -133,6 +133,7 @@ COMMON_SRC = \ COMMON_OBJ = $(patsubst %.c, $(BUILD_DIR)/%.o, $(COMMON_SRC)) COMMON_DEPS = $(patsubst %.c, $(BUILD_DIR)/%.d, $(COMMON_SRC)) +sdl: C_FLAGS += $(shell sdl2-config --cflags) sdl: $(BUILD_DIR)/src/platform_sdl.o sdl: $(COMMON_OBJ) $(CC) $^ -o $(TARGET_NATIVE) $(L_FLAGS) $(L_FLAGS_SDL) diff --git a/src/platform_sdl.c b/src/platform_sdl.c index 1e68328..c881618 100755 --- a/src/platform_sdl.c +++ b/src/platform_sdl.c @@ -1,4 +1,4 @@ -#include +#include "SDL.h" #include "platform.h" #include "input.h"