Makefile 363 B

1234567891011121314151617181920212223
  1. PROGRAM = extractCoverArt
  2. SRCS = extractCoverArt.cpp
  3. OBJS = $(subst .cpp,.o,$(SRCS))
  4. RM := rm
  5. CXX = g++
  6. CXXFLAGS = -O2
  7. LIBS = -ltag
  8. PREFIX := /usr/local
  9. $(PROGRAM): $(OBJS)
  10. $(CXX) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
  11. .PHONY: clean
  12. clean:
  13. $(RM) $(OBJS) $(PROGRAM)
  14. install: $(PROGRAM)
  15. install -m755 $(PROGRAM) $(PREFIX)/bin