diff --git a/Makefile b/Makefile index c5daf0f0e73d73e073507f08a10c3990838bce50..74aee61e2bc539f03bfe50aab86bfa2e7c3ae65d 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,17 @@ LUA := lua-5.4.8 CFLAGS := -std=c99 -v -g -I./vendor/$(RAYLIB)/include -I./vendor/$(LUA)/src LDFLAGS := -L./vendor/$(RAYLIB)/lib -lraylib -L./vendor/$(LUA)/src -llua -lm STDLIB_FILES := $(wildcard stdlib/*.lua) +FONT_FILES := $(wildcard fonts/*.ttf) PROG := bidi PROG_C := main.c -all: lua hexdump $(STDLIB_FILES:.lua=.h) $(PROG) +all: lua hexdump $(FONT_FILES:.ttf=.h) $(STDLIB_FILES:.lua=.h) $(PROG) %.h: %.lua ./hexdump $< $(@:stdlib/%.h=%) > $@ + +%.h: %.ttf + ./hexdump $< $(@:fonts/%.h=%) > $@ $(PROG): $(PROG_C) $(CC) $(CFLAGS) $(PROG_C) -o $(PROG) $(LDFLAGS) diff --git a/test/main.lua b/test/main.lua index bd0858ec16d42306c96195025223607616ee7ff4..de44e4211183c7d46923bbe5182c584c6324267a 100644 --- a/test/main.lua +++ b/test/main.lua @@ -18,7 +18,7 @@ while window_running() do begin_drawing() clear_window(color.BLACK) - draw_fps() + draw_fps_meter() end_drawing() end