Remove use of fnmatch(), in favour of GPatternSpec.
[claws.git] / src / common / Makefile.am
index 86a03cda52222ad5b64f4f785abaeb6a2b22d29d..65b3ab0600af9a0db8bfbb2bafb51ddb1f296c35 100644 (file)
@@ -1,29 +1,93 @@
-noinst_LTLIBRARIES = libsylpheedcommon.la
-
-libsylpheedcommon_la_SOURCES = \
-       base64.c base64.h \
-       hooks.c hooks.h \
-       log.c log.h \
-       md5.c md5.h \
-       nntp.c nntp.h \
-       quoted-printable.c quoted-printable.h \
-       session.c session.h \
-       smtp.c smtp.h \
-       socket.c socket.h \
-       ssl_certificate.c ssl_certificate.h \
-       ssl.c ssl.h \
-       sylpheed.c sylpheed.h \
-       template.c template.h \
-       utils.c utils.h \
-       uuencode.c uuencode.h
-
-INCLUDES = \
-       $(GLIB_CFLAGS) \
-       $(OPENSSL_CFLAGS)
+# Copyright 1999-2014 the Claws Mail team.
+# This file is part of Claws Mail package, and distributed under the
+# terms of the General Public License version 3 (or later).
+# See COPYING file for license details.
+
+PLUGINDIR = $(pkglibdir)/plugins/
+DESKTOPFILEPATH=$(datadir)/applications/claws-mail.desktop
+
+noinst_LTLIBRARIES = libclawscommon.la
+
+if OS_WIN32
+arch_sources = w32_reg.c w32_signal.c w32_stat.c \
+               w32_stdio.c w32_stdlib.c w32_string.c w32_time.c \
+               w32_unistd.c w32_wait.c w32_account.c
+arch_headers = w32lib.h
+else
+arch_files = 
+arch_header = 
+endif
+
+libclawscommon_la_SOURCES = $(arch_sources) \
+       hooks.c \
+       log.c \
+       md5.c \
+       mgutils.c \
+       passcrypt.c \
+       plugin.c \
+       prefs.c \
+       progressindicator.c \
+       quoted-printable.c \
+       session.c \
+       smtp.c \
+       socket.c \
+       ssl.c \
+       ssl_certificate.c \
+       string_match.c \
+       stringtable.c \
+       claws.c \
+       tags.c \
+       template.c \
+       utils.c \
+       uuencode.c \
+       xml.c \
+       xmlprops.c
 
-CPPFLAGS = \
-       -DLOCALEDIR=\""$(localedir)"\"
+clawscommonincludedir = $(pkgincludedir)/common
+clawscommoninclude_HEADERS = $(arch_headers) \
+       defs.h \
+       hooks.h \
+       log.h \
+       md5.h \
+       mgutils.h \
+       passcrypt.h \
+       plugin.h \
+       prefs.h \
+       progressindicator.h \
+       quoted-printable.h \
+       session.h \
+       smtp.h \
+       socket.h \
+       ssl_certificate.h \
+       ssl.h \
+       string_match.h \
+       stringtable.h \
+       claws.h \
+       tags.h \
+       template.h \
+       timing.h \
+       tlds.h \
+       utils.h \
+       uuencode.h \
+       version.h \
+       xml.h \
+       xmlprops.h
 
-libsylpheedcommon_la_LIBADD = \
+AM_CPPFLAGS = \
+       -I$(top_srcdir)/intl \
+       $(GLIB_CFLAGS) \
+       $(VALGRIND_CFLAGS) \
+       -DLOCALEDIR=\""$(localedir)"\" \
+       -DPLUGINDIR=\"$(PLUGINDIR)\" \
+       -DDATAROOTDIR=\""$(datarootdir)"\" \
+       -DDESKTOPFILEPATH=\"$(DESKTOPFILEPATH)\" \
+       -DGTK_DISABLE_DEPRECATED
+
+libclawscommon_la_LIBADD = \
        $(GLIB_LIBS) \
-       $(OPENSSL_LIBS)
+       $(CRYPT_LIBS) \
+       $(PTHREAD_LIBS)
+
+EXTRA_DIST = \
+       version.h.in
+