tomcast reads mpeg transport streams over http or udp (multicast or unicast) and outputs them to chosen multicast group. Basically a simple http2multicast daemon designed to work 24/7.
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 737B

123456789101112131415161718192021222324252627282930313233343536
  1. CC = $(CROSS)$(TARGET)gcc
  2. STRIP = $(CROSS)$(TARGET)strip
  3. CFLAGS = -ggdb -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -O2
  4. RM = /bin/rm -f
  5. Q = @
  6. LIBS = -lpthread
  7. FUNCS_DIR = libfuncs
  8. FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
  9. tomcast_OBJS = tomcast.o $(FUNCS_LIB)
  10. all: tomcast
  11. $(FUNCS_LIB):
  12. $(Q)echo " MAKE $(FUNCS_LIB)"
  13. $(Q)$(MAKE) -s -C $(FUNCS_DIR)
  14. tomcast: $(tomcast_OBJS)
  15. $(Q)echo " LINK tomcast"
  16. $(Q)$(CC) $(CFLAGS) $(tomcast_OBJS) $(LIBS) -o tomcast
  17. %.o: %.c
  18. $(Q)echo " CC tomcast $<"
  19. $(Q)$(CC) $(CFLAGS) -c $<
  20. strip:
  21. $(Q)echo " STRIP tomcast"
  22. $(Q)$(STRIP) tomcast
  23. clean:
  24. $(Q)echo " RM $(tomcast_OBJS)"
  25. $(Q)$(RM) $(tomcast_OBJS) tomcast *~
  26. distclean: clean
  27. $(Q)$(MAKE) -s -C $(FUNCS_DIR) clean