PROGRAM = extractCoverArt SRCS = extractCoverArt.cpp OBJS = $(subst .cpp,.o,$(SRCS)) RM := rm CXX = g++ CXXFLAGS = -O2 LIBS = -ltag PREFIX = /usr/local $(PROGRAM): $(OBJS) $(CXX) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS) .PHONY: clean clean: $(RM) $(OBJS) $(PROGRAM) install: $(PROGRAM) install -m755 $(PROGRAM) $(PREFIX)/bin