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:
parent
e6b181bea7
commit
f5725ff6f2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue