From f5725ff6f23aa2ac77c11db9e414329da5ba56bf Mon Sep 17 00:00:00 2001 From: Vladislav Valtchev Date: Tue, 19 Nov 2019 14:13:56 +0200 Subject: [PATCH] Introduce the NOSDL option in the Makefile For many reasons, the SDL library might not be available on some systems. Therefore, it's useful to offer a way to build without it. With this patch, it's possible to build fbDoom without SDL in the following way: make NOSDL=1 --- fbdoom/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fbdoom/Makefile b/fbdoom/Makefile index cb88745..fb32c7b 100644 --- a/fbdoom/Makefile +++ b/fbdoom/Makefile @@ -23,7 +23,11 @@ CC=$(CROSS_COMPILE)gcc # gcc or g++ CFLAGS+=-ggdb3 -Os LDFLAGS+=-Wl,--gc-sections CFLAGS+=-ggdb3 -Wall -DNORMALUNIX -DLINUX -DSNDSERV # -DUSEASM -LIBS+=-lm -lc -lSDL +LIBS+=-lm -lc + +ifneq ($(NOSDL),1) + LIBS+= -lSDL +endif # subdirectory for objects OBJDIR=build