# Project specific variables and commands AUTHOR = "safemode@comcast.net (Ed Sweetman)" WEBPAGE = "https://signal-lost.homeip.net/projects" TARGET = ui_console.so VER = 1.0.1 CPPFLAGS += -DVERSION=\"$(VER)\" SRC = cli.cpp # double parent include 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 -rdynamic -Wl,-soname,ui_console.so.1 -o $@ ${OBJ} $(LBUILD) .SUFFIXES : .o .cpp install: all @strip -g $(TARGET) @mkdir -p $(INSTALLDIR)/lib/mp3stat @cp $(TARGET) $(INSTALLDIR)/lib/mp3stat @echo "console 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 ui console plugin " @echo " " @echo " " include Depends