summaryrefslogtreecommitdiff
path: root/tools/rsfont
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rsfont')
-rw-r--r--tools/rsfont/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/rsfont/Makefile b/tools/rsfont/Makefile
index 582be7b..930a92b 100644
--- a/tools/rsfont/Makefile
+++ b/tools/rsfont/Makefile
@@ -1,4 +1,4 @@
-CC = gcc
+CC ?= gcc
CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK
@@ -6,7 +6,10 @@ LIBS = -lpng -lz
SRCS = main.c convert_png.c util.c font.c
-.PHONY: clean
+.PHONY: all clean
+
+all: rsfont
+ @:
rsfont: $(SRCS) convert_png.h gfx.h global.h util.h font.h
$(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS) $(LIBS)