Libtool does not allow undefined symbols in shared libraries on Cygwin.
As a result, licq_console.so cannot be created when we build the plugin.
As a result, licq_console.so cannot be created when we build the plugin.
Prerequirements
Both Licq and console plugin need to be configured and made sucessfully.
Makefile
Place this makefile in src of the plugin directory, ex. ~\licq-1.3.6\plugins\console\src\.
BOOST_INCLUDE_DIR = /usr/include/boost-1_33_1
CDK_INCLUDE_DIR = /usr/local/include/cdk
LICQ_INCLUDE_DIR = ../../../include
LICQ_SRC_DIR = ../../../src
SRC = console.cpp console_menu.cpp console_print.cpp console_tab.cpp main.cpp window.cpp
OBJ = console.o console_menu.o console_print.o console_tab.o main.o window.o
all: link
compile:
g++ -DHAVE_CONFIG_H -Wall -I.. -I$(LICQ_INCLUDE_DIR) -I$(BOOST_INCLUDE_DIR) -I$(CDK_INCLUDE_DIR) -c $(SRC)
link: compile liblicq.a
g++ -shared -o licq_console.so $(OBJ) -L. -llicq -lintl -liconv -lssl -lcrypto -lstdc++ -lcdk -lncurses
liblicq.a:
ar rcs liblicq.a $(LICQ_SRC_DIR)/*.o
install:
cp licq_console.so /usr/local/lib/licq
uninstall:
rm /usr/local/lib/licq/licq_console.so
clean:
rm licq_console.so liblicq.a $(OBJ)