Makefile 514 B

123456789101112131415161718192021222324
  1. CFLAGS:=
  2. LDFLAGS:= -ltag
  3. CXX:= g++
  4. PROG:= id3-extract-cover
  5. SRCS:= main.cpp
  6. all: $(PROG)
  7. $(PROG): $(SRCS)
  8. $(CXX) -Wall -Wextra -std=c++14 -pedantic -g $(SRCS) -o $(PROG) $(LDFLAGS)
  9. install: all
  10. @echo installing executable file to ${DESTDIR}${PREFIX}/bin
  11. @mkdir -p ${DESTDIR}${PREFIX}/bin
  12. @cp -f ${PROG} ${DESTDIR}${PREFIX}/bin
  13. @chmod 755 ${DESTDIR}${PREFIX}/bin/${PROG}
  14. uninstall:
  15. @echo removing executable file from ${DESTDIR}${PREFIX}/bin
  16. @rm -f ${DESTDIR}${PREFIX}/bin/${PROG}
  17. clean:
  18. rm -f $(PROG)