libtsfuncs is a library for mpeg PSI parsing and generation. https://georgi.unixsol.org/programs/libtsfuncs/
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 827B

1234567891011121314151617181920212223242526272829303132333435
  1. CC = $(CROSS)$(TARGET)gcc
  2. LINK = $(CROSS)$(TARGET)ld -o
  3. LIBRARY_LINK_OPTS = -L. -r
  4. CFLAGS = -ggdb -D_GNU_SOURCE -Wall -Wextra -Wshadow -Wformat-security -O2
  5. RM = /bin/rm -f
  6. Q=@
  7. OBJS = log.o tsfuncs.o tsfuncs_crc.o tsfuncs_misc.o tsfuncs_time.o \
  8. tsfuncs_sections.o tsfuncs_section_data.o \
  9. tsfuncs_descriptors.o \
  10. tsfuncs_pat.o tsfuncs_pat_desc.o \
  11. tsfuncs_pmt.o \
  12. tsfuncs_nit.o tsfuncs_nit_desc.o \
  13. tsfuncs_sdt.o tsfuncs_sdt_desc.o \
  14. tsfuncs_eit.o tsfuncs_eit_desc.o \
  15. tsfuncs_tdt.o \
  16. tsfuncs_pes.o tsfuncs_pes_data.o \
  17. tsfuncs_pes_es.o
  18. PROG = libts.a
  19. all: $(PROG)
  20. $(PROG): $(OBJS) tsdata.h
  21. $(Q)echo " LINK $(PROG)"
  22. $(Q)$(LINK) $@ $(LIBRARY_LINK_OPTS) $(OBJS)
  23. %.o: %.c
  24. $(Q)echo " CC libts $<"
  25. $(Q)$(CC) $(CFLAGS) -c $<
  26. clean:
  27. $(Q)echo " RM $(PROG) $(OBJS)"
  28. $(Q)$(RM) $(PROG) *.o *~
  29. distclean: clean