2017-12-04 01:55:01 +00:00
|
|
|
CC = gcc
|
|
|
|
|
2018-06-16 23:49:27 +01:00
|
|
|
CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK
|
2017-12-04 01:55:01 +00:00
|
|
|
|
|
|
|
LIBS = -lpng -lz
|
|
|
|
|
|
|
|
SRCS = main.c convert_png.c util.c font.c
|
|
|
|
|
2019-07-23 21:17:00 +01:00
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
all: rsfont
|
|
|
|
@:
|
2017-12-04 01:55:01 +00:00
|
|
|
|
|
|
|
rsfont: $(SRCS) convert_png.h gfx.h global.h util.h font.h
|
|
|
|
$(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) rsfont rsfont.exe
|