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

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. tstest_OBJS = tstest.o libts.a
  21. all: $(PROG) tstest
  22. $(PROG): $(OBJS) tsdata.h tsfuncs.h
  23. $(Q)echo " LINK $(PROG)"
  24. $(Q)$(LINK) $@ $(LIBRARY_LINK_OPTS) $(OBJS)
  25. tstest: $(tstest_OBJS)
  26. $(Q)echo " LINK $(PROG)"
  27. $(Q)$(CC) $(CFLAGS) $(tstest_OBJS) -o tstest
  28. %.o: %.c tsdata.h tsfuncs.h
  29. $(Q)echo " CC libts $<"
  30. $(Q)$(CC) $(CFLAGS) -c $<
  31. clean:
  32. $(Q)echo " RM $(PROG) $(OBJS)"
  33. $(Q)$(RM) $(PROG) *.o *~
  34. distclean: clean