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

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