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

123456789101112131415161718192021222324252627282930313233343536
  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_cat.o \
  12. tsfuncs_pmt.o \
  13. tsfuncs_nit.o tsfuncs_nit_desc.o \
  14. tsfuncs_sdt.o tsfuncs_sdt_desc.o \
  15. tsfuncs_eit.o tsfuncs_eit_desc.o \
  16. tsfuncs_tdt.o \
  17. tsfuncs_pes.o tsfuncs_pes_data.o \
  18. tsfuncs_pes_es.o
  19. PROG = libts.a
  20. all: $(PROG)
  21. $(PROG): $(OBJS) tsdata.h
  22. $(Q)echo " LINK $(PROG)"
  23. $(Q)$(LINK) $@ $(LIBRARY_LINK_OPTS) $(OBJS)
  24. %.o: %.c
  25. $(Q)echo " CC libts $<"
  26. $(Q)$(CC) $(CFLAGS) -c $<
  27. clean:
  28. $(Q)echo " RM $(PROG) $(OBJS)"
  29. $(Q)$(RM) $(PROG) *.o *~
  30. distclean: clean