Skip to content

Commit a33cbbe

Browse files
committed
Makefile: Added defaults for TILESIZE_X and _Y
1 parent 75eea96 commit a33cbbe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ LDFLAGS =
3939
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function
4040
CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
4141

42+
ifeq ($(TILESIZE_X),)
43+
TILESIZE_X = 1
44+
endif
45+
46+
ifeq ($(TILESIZE_Y),)
47+
TILESIZE_Y = 1
48+
endif
49+
4250
CFLAGS += -D EXPERIMENT_TILESIZE_X=$(TILESIZE_X) -D EXPERIMENT_TILESIZE_Y=$(TILESIZE_Y)
4351
CXXFLAGS += -D EXPERIMENT_TILESIZE_X=$(TILESIZE_X) -D EXPERIMENT_TILESIZE_Y=$(TILESIZE_Y)
4452

0 commit comments

Comments
 (0)