# Project specific variables and commands AUTHOR = "safemode@comcast.net (Ed Sweetman)" WEBPAGE = "https://signal-lost.homeip.net/projects" TARGET = input_mp3.so VER = 1.0.1 CPPFLAGS += -DVERSION=\"$(VER)\" SRC = mp3stat.cpp # The include to double parent directory is for building with mp3stat only BUILD = -I$(PWD) -I$(PWD)/../.. -I$(INSTALLDIR)/include/mp3stat LBUILD = -lc all : ${TARGET} OBJ = ${SRC:.cpp=.o} ${TARGET} : ${OBJ} @echo "Building $@" @${CXX} $(BFLAGS) $(CPPFLAGS) -shared -Wl,-soname,input_mp3.so.1 -o $@ ${OBJ} $(LBUILD) .SUFFIXES : .o .cpp install: all @strip -g $(TARGET) @mkdir -p $(INSTALLDIR)/lib/mp3stat @cp $(TARGET) $(INSTALLDIR)/lib/mp3stat @echo "MP3 plugin installed to $(INSTALLDIR)/lib/mp3stat" .cpp.o : @echo "Compiling $<" @${CXX} $(BFLAGS) $(CPPFLAGS) -fpic $(BUILD) -o $@ -c $< clean : rm -f ${OBJ} ${TARGET} Depends Depends depend: @echo "Generating dependency information...." @${CXX} -E -MM ${BUILD} ${SRC} > Depends @echo " "; @echo " Compiling input mp3 plugin "; @echo " "; @echo " "; include Depends