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

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