summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7ae4df2..0f01d95 100644
--- a/Makefile
+++ b/Makefile
@@ -128,14 +128,16 @@ strip: $(TESTS)
lib: $(LIB)
-LuaJIT:
+LuaJIT: LuaJIT/src/libluajit.a
+
+LuaJIT/src/libluajit.a:
ifeq ($(CROSSCOMPILE),true)
$(MAKE) -C LuaJIT HOST_CC="gcc -m32" CROSS=$(LUAJIT_CROSS) TARGET_SYS=$(LUAJIT_TARGET) BUILDMODE=static
else
$(MAKE) -C LuaJIT CC="$(CC) $(ARCH_FLAGS)" BUILDMODE=static
endif
-libBalau.a: LuaJIT $(BALAU_OBJECTS)
+libBalau.a: LuaJIT/src/libluajit.a $(BALAU_OBJECTS)
ifeq ($(SYSTEM),Darwin)
ifneq ($(CROSSCOMPILE),true)
rm -f libBalau.a