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 1.0KB

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