MEX_ASSURE   := c3c unzip
SOURCES      := main.c3 config.c3 embed.c3 toolbar.c3
RAYLIB       := raylib55

include makext.mk

help: .help

run: .assure # Build and run application
	c3c compile-run --libdir libs --lib $(RAYLIB) $(SOURCES)

extract-ref: .assure # Extract reference header file
	unzip -p /home/m/Projects/iceworks-c3/libs/$(RAYLIB).c3l raylib.c3i > ref.c3i

.PHONY: run extract-ref
