Automatically build bluajit
This commit is contained in:
1 parent
f4019ad5ea
commit
ba67d870a2
1 file changed
+8
-1
+8
-1
@@ -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...)
|
||||
|
||||
Reference in new issue
Block a user