diff --git a/C/Makefile b/C/Makefile index 04f9de2..29fefe0 100644 --- a/C/Makefile +++ b/C/Makefile @@ -1,6 +1,6 @@ CC = gcc -CFLAGS = -O3 -Wall -Wextra -std=c11 -pthread -LDFLAGS = -lm +CFLAGS = -O3 -Wall -Wextra $(shell sdl2-config --cflags) +LDFLAGS = $(shell sdl2-config --libs) TARGET = src/main SOURCES = src/main.c diff --git a/C/src/main.c b/C/src/main.c index b3d517b..9d3a198 100644 --- a/C/src/main.c +++ b/C/src/main.c @@ -1,3 +1,4 @@ +#define SDL_MAIN_USE_CALLBACKS 1 #include #include #include