Makefile 527 B

1234567891011121314151617181920212223242526272829303132
  1. PROGS= srttool sub2pgm
  2. OBJ_SRT=srttool.o
  3. LIB_SRT=-lm
  4. LIB_SUB=-lm
  5. OBJ_SUB=mp_msg.o spudec.o subrip.o vobsub.o
  6. BINDIR=/usr/local/bin
  7. INSTALL_PROGRAM=cp
  8. .PHONY: all install clean
  9. all: ${PROGS}
  10. install:
  11. for i in ${PROGS}; do \
  12. ${INSTALL_PROGRAM} $$i ${DESTDIR}${BINDIR}; \
  13. done
  14. clean:
  15. -rm ${OBJ_SRT} ${OBJ_SUB} ${PROGS}
  16. srttool: ${OBJ_SRT}
  17. ${CC} ${CFLAGS} -o $@ ${OBJ_SRT} ${LIB_SRT}
  18. sub2pgm: ${OBJ_SUB}
  19. ${CC} ${CFLAGS} -o $@ ${OBJ_SUB} ${LIB_SUB}
  20. .SUFFIXES: .c .o
  21. .c.o:
  22. ${CC} -c -DHAVE_GETLINE ${CFLAGS} -I. $*.c