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:
@ -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
5
cfg/checks/games.mk
Normal 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)
|
Reference in New Issue
Block a user