You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.2 KiB

  1. #
  2. # This is a Makefile.am fragment to build Orc code. It is based
  3. # on the orc.mak file distributed in the GStreamer common
  4. # repository.
  5. #
  6. # Include this file like this:
  7. #
  8. # include $(top_srcdir)/orc.mak
  9. #
  10. # For each Orc source file, append its name (without the extension)
  11. # to ORC_SOURCE:
  12. #
  13. # ORC_SOURCE += gstadderorc
  14. #
  15. # This will create gstadder-orc-gen.c and gstadder-orc-gen.h, which
  16. # you need to add to your nodist_module_SOURCES.
  17. #
  18. # Note that this file appends to BUILT_SOURCES and CLEANFILES, so
  19. # define them before including this file.
  20. #
  21. EXTRA_DIST += $(addsuffix .orc,$(ORC_SOURCE))
  22. if HAVE_ORC
  23. ORC_BUILT_SOURCE = $(addsuffix -orc-gen.c,$(ORC_SOURCE))
  24. ORC_BUILT_HEADER = $(addsuffix -orc-gen.h,$(ORC_SOURCE))
  25. BUILT_SOURCES += $(ORC_BUILT_SOURCE) $(ORC_BUILT_HEADER)
  26. CLEANFILES += $(BUILT_SOURCES)
  27. orcc_v_gen = $(orcc_v_gen_$(V))
  28. orcc_v_gen_ = $(orcc_v_gen_$(AM_DEFAULT_VERBOSITY))
  29. orcc_v_gen_0 = @echo " ORCC $@";
  30. cp_v_gen = $(cp_v_gen_$(V))
  31. cp_v_gen_ = $(cp_v_gen_$(AM_DEFAULT_VERBOSITY))
  32. cp_v_gen_0 = @echo " CP $@";
  33. %-orc-gen.c: %.orc
  34. @mkdir -p $(@D)
  35. $(orcc_v_gen)$(ORCC) --implementation -o $@ $<
  36. %-orc-gen.h: %.orc
  37. @mkdir -p $(@D)
  38. $(orcc_v_gen)$(ORCC) --header -o $@ $<
  39. endif