Skip to content

Commit 54e32d5

Browse files
committed
Fixing dependency story of LuaJIT for Makefile build.
1 parent 3996f8e commit 54e32d5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ $(TARGET): $(OBJECTS)
259259
%.o: %.mm
260260
$(CC) -c -o $@ $< $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CFLAGS)
261261

262-
%.dep: %.c
262+
%.dep: third_party/luajit/src/luajit.h %.c
263263
$(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CFLAGS) -M -MT $(addsuffix .o, $(basename $@)) -MF $@ $<
264264

265-
%.dep: %.cc
265+
%.dep: third_party/luajit/src/luajit.h %.cc
266266
$(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) -M -MT $(addsuffix .o, $(basename $@)) -MF $@ $<
267267

268-
%.dep: %.cpp
268+
%.dep: third_party/luajit/src/luajit.h %.cpp
269269
$(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) -M -MT $(addsuffix .o, $(basename $@)) -MF $@ $<
270270

271271
clean:
@@ -329,3 +329,7 @@ endif
329329
endif
330330
endif
331331
endif
332+
333+
third_party/luajit/src/lua.hpp: third_party/luajit/src/luajit.h
334+
335+
third_party/luajit/src/luajit.h: third_party/luajit/src/libluajit.a

0 commit comments

Comments
 (0)