Use "sdl.h" include and sdl-config include path in build.

This commit is contained in:
Mark Brown 2024-11-05 14:06:42 +00:00
parent a372b51f59
commit 799d2d6bb1
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ DEBUG ?= false
USER_CFLAGS ?= USER_CFLAGS ?=
L_FLAGS ?= -lm L_FLAGS ?= -lm
C_FLAGS ?= -Isrc/libs/ -std=gnu99 -Wall -Wno-unused-variable $(USER_CFLAGS) C_FLAGS ?= -Isrc/libs/ -std=gnu99 -Wall -Wno-unused-variable $(USER_CFLAGS) $(shell sdl2-config --cflags)
ifeq ($(DEBUG), true) ifeq ($(DEBUG), true)
C_FLAGS := $(C_FLAGS) -g C_FLAGS := $(C_FLAGS) -g

View file

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