mptsd reads mpegts streams from udp/multicast or http and combines them into one multiple program stream that is suitable for outputting to DVB-C modulator. Tested with Dektec DTE-3114 Quad QAM Modulator and used in production in small DVB-C networks. https://georgi.unixsol.org/programs/mptsd/
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.

Makefile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. CC? = $(CROSS)$(TARGET)gcc
  2. STRIP = $(CROSS)$(TARGET)strip
  3. BUILD_ID = $(shell date +%F_%R)
  4. VERSION="v1.1"
  5. GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
  6. CFLAGS ?= -ggdb -O2
  7. CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -D_GNU_SOURCE -DBUILD_ID=\"$(BUILD_ID)\"
  8. ifneq "$(GIT_VER)" ""
  9. CFLAGS += -DGIT_VER=\"$(GIT_VER)\"
  10. else
  11. CFLAGS += -DGIT_VER=\"$(VERSION)\"
  12. endif
  13. RM = /bin/rm -f
  14. Q = @
  15. uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
  16. ifeq ($(uname_S),Darwin)
  17. LIBS = -lpthread -lm
  18. else
  19. LIBS = -lpthread -lm -lrt
  20. endif
  21. FUNCS_DIR = libfuncs
  22. FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
  23. TSFUNCS_DIR = libtsfuncs
  24. TSFUNCS_LIB = $(TSFUNCS_DIR)/libtsfuncs.a
  25. mptsd_OBJS = $(FUNCS_LIB) $(TSFUNCS_LIB) \
  26. iniparser.o inidict.o pidref.o data.o config.o \
  27. sleep.o network.o \
  28. input.o \
  29. output_psi.o output_mix.o output_write.o \
  30. web_pages.o web_server.o \
  31. mptsd.o
  32. PROGS = mptsd
  33. CLEAN_OBJS = $(PROGS) $(mptsd_OBJS) *~
  34. all: $(PROGS)
  35. $(FUNCS_LIB):
  36. $(Q)echo " MAKE $(FUNCS_LIB)"
  37. $(Q)$(MAKE) -s -C $(FUNCS_DIR)
  38. $(TSFUNCS_LIB):
  39. $(Q)echo " MAKE $(TSFUNCS_LIB)"
  40. $(Q)$(MAKE) -s -C $(TSFUNCS_DIR)
  41. mptsd: $(mptsd_OBJS)
  42. $(Q)echo " LINK mptsd"
  43. $(Q)$(CC) $(CFLAGS) $(mptsd_OBJS) $(LIBS) -o mptsd
  44. %.o: %.c data.h
  45. $(Q)echo " CC mptsd $<"
  46. $(Q)$(CC) $(CFLAGS) -c $<
  47. strip:
  48. $(Q)echo " STRIP $(PROGS)"
  49. $(Q)$(STRIP) $(PROGS)
  50. clean:
  51. $(Q)echo " RM $(CLEAN_OBJS)"
  52. $(Q)$(RM) $(CLEAN_OBJS)
  53. distclean: clean
  54. $(Q)$(MAKE) -s -C $(TSFUNCS_DIR) clean
  55. $(Q)$(MAKE) -s -C $(FUNCS_DIR) clean