From 014c10a6bd832f1a869ddb723ca9bcbaad9fe7c8 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 19 Sep 2024 15:39:02 +0200 Subject: [PATCH] prepare for integrating ui48 --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 906fcfc..4bbaaee 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,12 @@ LIBS = -lm -lChf -lXm -lutil X11CFLAGS = $(shell pkg-config --cflags x11 xext) X11LIBS = $(shell pkg-config --libs x11 xext xt) +SDLCFLAGS = $(shell pkg-config --cflags sdl2) +SDLLIBS = $(shell pkg-config --libs sdl2) + +NCURSESCFLAGS = $(shell pkg-config --cflags ncursesw) +NCURSESDLLIBS = $(shell pkg-config --libs ncursesw) + FULL_WARNINGS = no DOTOS = src/cpu.o \ @@ -88,6 +94,8 @@ override CFLAGS := -std=c11 \ $(call cc-option,-Wno-unknown-warning-option) \ $(EXTRA_WARNING_FLAGS) \ $(X11CFLAGS) \ + $(SDLCFLAGS) \ + $(NCURSESCFLAGS) \ $(CFLAGS) override CPPFLAGS := -I./src/ -D_GNU_SOURCE=1 \ @@ -102,7 +110,7 @@ libChf/libChf.a: make -C libChf dist/saturn: $(DOTOS) libChf/libChf.a - $(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(X11LIBS) + $(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(X11LIBS) $(SDLLIBS) $(NCURSESLIBS) dist/pack: src/pack.o src/disk_io.o src/debug.o libChf/libChf.a # UNUSED