OSDN Git Service

Remove unneeded preview files at the beginning of a scan.
[handbrake-jp/handbrake-jp-git.git] / libhb / module.rules
index 7ac6e3f..8f63a14 100644 (file)
@@ -3,7 +3,7 @@ $(eval $(call import.MODULE.rules,LIBHB))
 libhb.build: $(LIBHB.a)
 
 $(LIBHB.a): | $(dir $(LIBHB.a))
-$(LIBHB.a): $(LIBHB.c.o)
+$(LIBHB.a): $(LIBHB.c.o) $(LIBHB.yasm.o)
        $(AR.exe) rsu $@ $^
 
 $(LIBHB.c.o): $(LIBHB.d)
@@ -25,5 +25,16 @@ libhb.clean:
 
 ###############################################################################
 
+ifneq (disabled,$(FEATURE.asm))
+
+$(LIBHB.yasm.o): $(LIBHB.yasm.d)
+$(LIBHB.yasm.o): | $(dir $(LIBHB.yasm.o))
+$(LIBHB.yasm.o): $(LIBHB.yasm.build/)%.o: $(LIBHB.yasm.src/)%.asm
+       $(call LIBHB.YASM.ASM_O,$@,$<)
+
+endif
+
+###############################################################################
+
 clean: libhb.clean
 build: libhb.build