diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index da9d143b..e3a3fbc2 100644 --- a/src/Makefile +++ b/src/Makefile | |||
@@ -279,7 +279,8 @@ LUAJIT_SO= libluajit.so | |||
279 | LUAJIT_T= luajit | 279 | LUAJIT_T= luajit |
280 | 280 | ||
281 | ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(BUILDVM_T) | 281 | ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(BUILDVM_T) |
282 | ALL_GEN= $(LJVM_S) lj_ffdef.h lj_libdef.h lj_recdef.h $(LIB_VMDEFP) lj_folddef.h | 282 | ALL_GEN= $(LJVM_S) lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h \ |
283 | $(LIB_VMDEFP) lj_folddef.h | ||
283 | ALL_DYNGEN= buildvm_*.h | 284 | ALL_DYNGEN= buildvm_*.h |
284 | WIN_RM= *.obj *.lib *.exp *.dll *.exe *.manifest *.pdb *.ilk | 285 | WIN_RM= *.obj *.lib *.exp *.dll *.exe *.manifest *.pdb *.ilk |
285 | ALL_RM= $(ALL_T) $(ALL_GEN) *.o $(WIN_RM) | 286 | ALL_RM= $(ALL_T) $(ALL_GEN) *.o $(WIN_RM) |
@@ -365,6 +366,7 @@ distclean: clean | |||
365 | $(Q)$(DASM) $(DASM_DISTFLAGS) $(DASM_FLAGS_X64WIN) -o buildvm_x64win.h buildvm_x86.dasc | 366 | $(Q)$(DASM) $(DASM_DISTFLAGS) $(DASM_FLAGS_X64WIN) -o buildvm_x64win.h buildvm_x86.dasc |
366 | 367 | ||
367 | depend: | 368 | depend: |
369 | @test -f lj_bcdef.h || touch lj_bcdef.h | ||
368 | @test -f lj_ffdef.h || touch lj_ffdef.h | 370 | @test -f lj_ffdef.h || touch lj_ffdef.h |
369 | @test -f lj_libdef.h || touch lj_libdef.h | 371 | @test -f lj_libdef.h || touch lj_libdef.h |
370 | @test -f lj_recdef.h || touch lj_recdef.h | 372 | @test -f lj_recdef.h || touch lj_recdef.h |
@@ -373,6 +375,7 @@ depend: | |||
373 | @test -f buildvm_x64.h || touch buildvm_x64.h | 375 | @test -f buildvm_x64.h || touch buildvm_x64.h |
374 | @test -f buildvm_x64win.h || touch buildvm_x64win.h | 376 | @test -f buildvm_x64win.h || touch buildvm_x64win.h |
375 | @$(HOST_CC) $(HOST_ACFLAGS) -MM *.c | sed "s|$(DASM_DIR)|\$$(DASM_DIR)|g" >Makefile.dep | 377 | @$(HOST_CC) $(HOST_ACFLAGS) -MM *.c | sed "s|$(DASM_DIR)|\$$(DASM_DIR)|g" >Makefile.dep |
378 | @test -s lj_bcdef.h || $(HOST_RM) lj_bcdef.h | ||
376 | @test -s lj_ffdef.h || $(HOST_RM) lj_ffdef.h | 379 | @test -s lj_ffdef.h || $(HOST_RM) lj_ffdef.h |
377 | @test -s lj_libdef.h || $(HOST_RM) lj_libdef.h | 380 | @test -s lj_libdef.h || $(HOST_RM) lj_libdef.h |
378 | @test -s lj_recdef.h || $(HOST_RM) lj_recdef.h | 381 | @test -s lj_recdef.h || $(HOST_RM) lj_recdef.h |
@@ -409,6 +412,10 @@ $(LJVM_BOUT): $(BUILDVM_T) | |||
409 | $(E) "BUILDVM $@" | 412 | $(E) "BUILDVM $@" |
410 | $(Q)$(BUILDVM_X) -m $(LJVM_MODE) -o $@ | 413 | $(Q)$(BUILDVM_X) -m $(LJVM_MODE) -o $@ |
411 | 414 | ||
415 | lj_bcdef.h: $(BUILDVM_T) | ||
416 | $(E) "BUILDVM $@" | ||
417 | $(Q)$(BUILDVM_X) -m bcdef -o $@ | ||
418 | |||
412 | lj_ffdef.h: $(BUILDVM_T) $(LJLIB_C) | 419 | lj_ffdef.h: $(BUILDVM_T) $(LJLIB_C) |
413 | $(E) "BUILDVM $@" | 420 | $(E) "BUILDVM $@" |
414 | $(Q)$(BUILDVM_X) -m ffdef -o $@ $(LJLIB_C) | 421 | $(Q)$(BUILDVM_X) -m ffdef -o $@ $(LJLIB_C) |