/
Makefile.am
31 lines (24 loc) · 966 Bytes
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
AM_CFLAGS = $(LIBOTR_CFLAGS) $(LIBGCRYPT_CFLAGS) $(PACKAGE_FLAGS)
IRSSI_DIST=$(oldincludedir)/irssi
IRSSI_INCLUDE = -I$(IRSSI_DIST) \
-I$(IRSSI_DIST)/src \
-I$(IRSSI_DIST)/src/fe-common/core \
-I$(IRSSI_DIST)/src/core \
-I$(IRSSI_DIST)/src/fe-text \
-I$(IRSSI_DIST)/src/irc \
-I$(IRSSI_DIST)/src/irc/core \
-I$(IRSSI_DIST)/src/irc/dcc \
-I$(IRSSI_DIST)/src/irc/notifylist
AM_CPPFLAGS = -I$(top_srcdir)/src $(IRSSI_INCLUDE)
plugindir = $(IRSSI_MODULE_DIR)
plugin_LTLIBRARIES = libotr.la
libotr_la_SOURCES = otr-formats.c otr-formats.h \
key.c key.h cmd.c cmd.h otr.c otr-ops.c \
utils.h utils.c otr.h module.c module.h irssi-otr.h
libotr_la_LDFLAGS = -avoid-version -module
libotr_la_LDFLAGS += $(LIBOTR_LIBS) $(LIBGCRYPT_LIBS) -lpthread
install-data-hook:
chmod 644 $(DESTDIR)/$(plugindir)/libotr.so
rm $(DESTDIR)/$(plugindir)/libotr.la
uninstall-hook:
rm $(DESTDIR)/$(plugindir)/libotr.so