1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-19 16:26:36 +02:00

Add ability to compile without game support

This commit is contained in:
jfreegman
2021-01-18 22:37:14 -05:00
parent 7aeb1a0aac
commit 7abf6388f8
19 changed files with 121 additions and 17 deletions

View File

@ -19,6 +19,13 @@ ifneq ($(AUDIO), disabled)
ifneq ($(VIDEO), disabled)
-include $(CHECKS_DIR)/video.mk
endif
#check if we want to build with game support
GAMES := $(shell if [ -z "$(DISABLE_GAMES)" ] || [ "$(DISABLE_GAMES)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
ifneq ($(GAMES), disabled)
-include $(CHECKS_DIR)/games.mk
endif
endif
endif

5
cfg/checks/games.mk Normal file
View File

@ -0,0 +1,5 @@
# Variables for game support
GAMES_CFLAGS = -DGAMES
GAMES_OBJ = game_base.o game_centipede.o game_chess.o game_util.o game_snake.o
CFLAGS += $(GAMES_CFLAGS)
OBJ += $(GAMES_OBJ)