view src/pop3/Makefile.am @ 7844:7b39370dae6b HEAD

If we need -lcrypto for randomness, put it to $LIBS instead of $RAND_LIBS since it needs to be linked to all binaries anyway.
author Timo Sirainen <tss@iki.fi>
date Thu, 12 Jun 2008 23:11:45 +0300
parents 145f721b6412
children 469fc16380da
line wrap: on
line source

pkglibexecdir = $(libexecdir)/dovecot

pkglibexec_PROGRAMS = pop3

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-dict \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-storage \
	-DMODULEDIR=\""$(moduledir)"\"

pop3_LDFLAGS = -export-dynamic

# get some functions included which only plugins use. liblib should probably
# be a shared library so this wouldn't be needed..
unused_objects = \
	../lib/mountpoint.o

libs = \
	../lib-storage/register/libstorage-register.a \
	../lib-storage/list/libstorage_list.a \
	$(STORAGE_LIBS) \
	../lib-imap/libimap.a \
	../lib-mail/libmail.a \
	../lib-dict/libdict.a \
	../lib-charset/libcharset.a \
	../lib/liblib.a \
	$(unused_objects)

pop3_LDADD = \
	$(libs) \
	$(LIBICONV) \
	$(MODULE_LIBS)

pop3_DEPENDENCIES = $(libs)

pop3_SOURCES = \
	client.c \
	commands.c \
	main.c

headers = \
	capability.h \
	client.h \
	commands.h \
	common.h

if INSTALL_HEADERS
  pkginc_libdir=$(pkgincludedir)/src/pop3
  pkginc_lib_HEADERS = $(headers)
else
  noinst_HEADERS = $(headers)
endif