aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 1 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 5c99727..3b04cda 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,5 @@
CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wno-deprecated-declarations
-LDFLAGS = $(shell sdl2-config --libs)
-
-# Link OpenGL.
-ifeq ($(OS),Windows_NT)
- GLFLAG := -lopengl32
-else
- UNAME := `uname -o 2>/dev/null || uname -s`
- ifeq ($(UNAME),"Darwin")
- GLFLAG := -framework OpenGL
- else
- GLFLAG := -lGL
- endif
-endif
-LDFLAGS += $(GLFLAG)
+LDFLAGS = -lSDL2 -lSDL2_ttf
SRC = main.c microui.c renderer.c widget.c ui.c
OBJ = ${SRC:.c=.o}