summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Noble <nnoble@blizzard.com>2013-07-15 16:48:10 -0700
committerNicolas Noble <nnoble@blizzard.com>2013-07-15 16:48:10 -0700
commitd35f4eb97c77438af67466be97516aef76bee9f0 (patch)
treedf9a9cb0586bd13fe3eca3dd8aa1669e53d204cb /Makefile
parent9dfd1d7a95988e0682d772010c3e13c6170e7d26 (diff)
Avoiding useless link phases.
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