# # This is a basic makefile that uses a flat directory structure. It could be # expanded to support multiple subdirectories and/or libraries # #.SILENT: all lib test steril clean tar dist link .DEFAULT TOPDIR=../../ ROOTDIR=false all: socketprovider include $(TOPDIR)/conf/Makefile.common DISTNAME=ignore LIBVERSION=0.0.1 LIBNAME=socketprovider LIB=$(LIBNAME).$(DYN_SUFFIX).$(LIBVERSION) socketprovider: socketprovider.o @echo $(BLU)[LD]$(NOR) $(LIB) @$(CXX) $(LIBINCLUDE) -liwremote $(CXXLDFLAGS)$(LIB) socketprovider.o -o $(LIB) @echo $(GRN)[LN -s]$(NOR) $(LIBNAME).$(DYN_SUFFIX) @ln -sf $(LIB) $(LIBNAME).$(DYN_SUFFIX) @mkdir -p $(PREFIX)/lib/plugins/callprovider/ @ln -sf $(PWD)/callprovider/$(LIB) $(PREFIX)/lib/plugins/callprovider/$(LIBNAME).$(DYN_SUFFIX)