X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fmodule.rules;h=c92ababa2e0d6f189aa05c2c19236f4f0d7a7f35;hb=4b72a63eb61a01275493c4bfb51ba02152d1c5e1;hp=7ac6e3f5a64dcbe06b93258f4abe428a65fc33f1;hpb=ce32291e230fa2ab820ce17c8a5c0cbff3d98e2c;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/module.rules b/libhb/module.rules index 7ac6e3f5..c92ababa 100644 --- a/libhb/module.rules +++ b/libhb/module.rules @@ -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,28 @@ 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 + +############################################################################### + +ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system)) + +libhb.build: $(LIBHB.dll) + +$(LIBHB.dll): | $(dirname $(LIBHB.dll) $(LIBHB.lib)) +$(LIBHB.dll): $(LIBHB.c.o) $(LIBHB.yasm.o) + $(call LIBHB.GCC.DYLIB++,$@,$^ $(LIBHB.dll.libs)) + +endif + +############################################################################### + clean: libhb.clean build: libhb.build