From ba67d870a285582b774795dac2659354e55ebd02 Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 4 Aug 2025 19:42:11 +0300 Subject: [PATCH] Automatically build bluajit --- src/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 64dc2bd8a..e8b5e90fd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -185,10 +185,12 @@ sources+=\ $(call List,core/Sourcefile) ifdef NOBLUAJIT +lualib:= sources+=\ $(call List,blua/Sourcefile) else opts+=-DLUAJIT_INTONLY +lualib:=../libs/bluajit/src/libbluajit.a endif depends:=$(basename $(filter %.c %.cpp %.s,$(sources))) @@ -361,10 +363,15 @@ ifdef UPX endif # original executable with debugging symbols -$(dbg) : $(objects) | $$(@D)/ +$(dbg) : $(objects) $(lualib) | $$(@D)/ $(call Echo,Linking $(@F)...) $(.)$(LD) -o $@ $^ $(libs) +ifndef NOBLUAJIT +$(lualib): + @$(MAKE) -C ../libs/bluajit $(MAKECMDGOALS) +endif + # disassembly of executable $(dbg).txt : $(dbg) $(call Echo,Dumping debugging info...)