make TTF_FONT_PATH configurable
This commit is contained in:
parent
12aeff6d19
commit
1e1338f1de
9
Makefile
9
Makefile
|
@ -1,6 +1,9 @@
|
||||||
CC ?= clang
|
CC ?= clang
|
||||||
CFLAGS += -Wno-visibility -Wno-incompatible-pointer-types -Wall -Wextra -O2 -DINVERT_COLORS -DVT100 -O2
|
TTF_FONT_PATH ?= res/Anonymous Pro.ttf
|
||||||
LFLAGS +=
|
CFLAGS += -DTTF_FONT_PATH="\"$(TTF_FONT_PATH)\""
|
||||||
|
CFLAGS += -Wno-visibility -Wno-incompatible-pointer-types -Wall -Wextra
|
||||||
|
CFLAGS += -DINVERT_COLORS -DVT100 -O2
|
||||||
|
LFLAGS +=
|
||||||
|
|
||||||
PROGRAM := 2048
|
PROGRAM := 2048
|
||||||
C_FILES := $(wildcard src/*.c)
|
C_FILES := $(wildcard src/*.c)
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
|
|
||||||
/* Side length of a 'pixel' in pixels */
|
/* Side length of a 'pixel' in pixels */
|
||||||
#define TTF_FONT_PATH "res/Anonymous Pro.ttf"
|
|
||||||
#define TTF_FONT_PT 32
|
#define TTF_FONT_PT 32
|
||||||
|
|
||||||
#define iterate(n, expression)\
|
#define iterate(n, expression)\
|
||||||
|
|
Loading…
Reference in New Issue
Block a user