diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-06 13:06:10 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-06 13:06:10 +0200 |
| commit | 357c1fd13ff3e39b002af8a92a6829f034146aeb (patch) | |
| tree | c696fcc7d08a259e4c207d0b6821fef942e9533e | |
| parent | f8c409250c1e5b764ed27cfd291f7fbe8ab0a936 (diff) | |
| download | bidi-357c1fd13ff3e39b002af8a92a6829f034146aeb.tar.gz | |
Cleanup
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | test/main.lua | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -4,14 +4,18 @@ 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 bd0858e..de44e42 100644 --- a/test/main.lua +++ b/test/main.lua @@ -18,7 +18,7 @@ function test_graphics() while window_running() do begin_drawing() clear_window(color.BLACK) - draw_fps() + draw_fps_meter() end_drawing() end |
