Merge pull request #134 from lordfeck/UseSdl2ConfigIncludePath

Use "sdl.h" include and sdl-config include path in makefile.
This commit is contained in:
Dominic Szablewski 2024-11-09 17:45:23 +01:00 committed by GitHub
commit 05e9c2d3a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -1,4 +1,4 @@
#include <SDL2/SDL.h>
#include "SDL.h"
#include "platform.h"
#include "input.h"