Automatically build bluajit

This commit is contained in:
indev committed 2025-08-04 19:42:11 +03:00
1 parent f4019ad5ea
commit ba67d870a2
1 file changed
+8 -1
+8 -1
View File
@@ -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...)