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
This commit is contained in:
Vladislav Valtchev 2019-11-19 14:13:56 +02:00
parent e6b181bea7
commit f5725ff6f2
1 changed files with 5 additions and 1 deletions

View File

@ -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