diff options
Diffstat (limited to 'libhb/module.rules')
-rw-r--r-- | libhb/module.rules | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libhb/module.rules b/libhb/module.rules new file mode 100644 index 000000000..91e47a46a --- /dev/null +++ b/libhb/module.rules @@ -0,0 +1,28 @@ +$(eval $(call import.MODULE.rules,LIBHB)) + +libhb.build: $(LIBHB.a) + +$(LIBHB.a): | $(dir $(LIBHB.a)) +$(LIBHB.a): $(LIBHB.c.o) + $(AR.exe) rsu $@ $^ + +$(LIBHB.c.o): $(LIBHB.d) +$(LIBHB.c.o): | $(dir $(LIBHB.c.o)) +$(LIBHB.c.o): $(BUILD/)%.o: $(PROJECT/)%.c + $(call LIBHB.GCC.C_O,$@,$<) + +$(LIBHB.m4.out): $(BUILD/)project/handbrake.m4 +$(LIBHB.m4.out): | $(dir $(LIBHB.m4.out)) +$(LIBHB.m4.out): $(LIBHB.build/)%: $(LIBHB.src/)%.m4 + $(M4.exe) -Iproject $< > $@ + +$(LIBHB.h.out): | $(dir $(LIBHB.h.out)) +$(LIBHB.h.out): $(BUILD/)%: $(PROJECT/)% + $(CP.exe) $< $@ + +libhb.clean: + $(RM.exe) -f $(LIBHB.out) + +############################################################################### + +clean: libhb.clean |