Libcli provides a shared library for including a Cisco-like command-line interface into other software. It's a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.
So i try to change my makefile as:
clitest: clitest.o $(LIB_STATIC)
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LIBS)
And it need to export 'LD_LIBRARY_PATH=.' if i use the original makefile.
So i try to change my makefile as: clitest: clitest.o $(LIB_STATIC) $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LIBS) And it need to export 'LD_LIBRARY_PATH=.' if i use the original makefile.