view src/pop3/Makefile.am @ 9266:cd29b745c8dd HEAD

configure: clock_gettime()'s -lrt adding dropped everything else from $LIBS.
author Timo Sirainen <tss@iki.fi>
date Mon, 27 Jul 2009 06:32:42 -0400
parents 5eb05134db86
children
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 \
	../lib-imap/imap-util.o

libs = \
	$(STORAGE_LIBS) \
	../lib-dict/libdict.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