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 770B

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