OSDN Git Service

gitattirubes test 2
[handbrake-jp/handbrake-jp.git] / libhb / module.rules
1 $(eval $(call import.MODULE.rules,LIBHB))
2
3 libhb.build: $(LIBHB.a)
4
5 $(LIBHB.a): | $(dir $(LIBHB.a))
6 $(LIBHB.a): $(LIBHB.c.o) $(LIBHB.yasm.o)
7         $(AR.exe) rsu $@ $^
8
9 $(LIBHB.c.o): $(LIBHB.d)
10 $(LIBHB.c.o): | $(dir $(LIBHB.c.o))
11 $(LIBHB.c.o): $(BUILD/)%.o: $(SRC/)%.c
12         $(call LIBHB.GCC.C_O,$@,$<)
13
14 $(LIBHB.m4.out): $(BUILD/)project/handbrake.m4
15 $(LIBHB.m4.out): | $(dir $(LIBHB.m4.out))
16 $(LIBHB.m4.out): $(LIBHB.build/)%: $(LIBHB.src/)%.m4
17         $(M4.exe) -Iproject $< > $@
18
19 $(LIBHB.h.out): | $(dir $(LIBHB.h.out))
20 $(LIBHB.h.out): $(BUILD/)%: $(SRC/)%
21         $(CP.exe) $< $@
22
23 libhb.clean:
24         $(RM.exe) -f $(LIBHB.out)
25
26 ###############################################################################
27
28 ifneq (disabled,$(FEATURE.asm))
29
30 $(LIBHB.yasm.o): $(LIBHB.yasm.d)
31 $(LIBHB.yasm.o): | $(dir $(LIBHB.yasm.o))
32 $(LIBHB.yasm.o): $(LIBHB.yasm.build/)%.o: $(LIBHB.yasm.src/)%.asm
33         $(call LIBHB.YASM.ASM_O,$@,$<)
34
35 endif
36
37 ###############################################################################
38
39 ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
40
41 libhb.build: $(LIBHB.dll)
42
43 $(LIBHB.dll): | $(dirname $(LIBHB.dll) $(LIBHB.lib))
44 $(LIBHB.dll): $(LIBHB.c.o) $(LIBHB.yasm.o)
45         $(call LIBHB.GCC.DYLIB++,$@,$^ $(LIBHB.dll.libs))
46
47 endif
48
49 ###############################################################################
50
51 clean: libhb.clean
52 build: libhb.build