LIBIMAP = -Limap -limap
LIBIMAPDEPS = $(top_srcdir)/imap/imap.h imap/libimap.a
-LIBLIB = -Llib -llib
-LIBLIBDEPS = $(top_srcdir)/lib/lib.h lib/liblib.a
+LIBMUTT = -Llib -lmutt
+LIBMUTTDEPS = $(top_srcdir)/lib/lib.h lib/libmutt.a
mutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(HCACHE_LIBS) $(NCRYPT_LIBS) \
- $(LIBIMAP) $(LIBLIB) $(LIBICONV) $(GPGME_LIBS) $(INTLLIBS)
+ $(LIBIMAP) $(LIBMUTT) $(LIBICONV) $(GPGME_LIBS) $(INTLLIBS)
mutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) \
- $(LIBLIBDEPS) $(HCACHE_DEPS) $(NCRYPT_DEPS) $(INTLDEPS)
+ $(LIBMUTTDEPS) $(HCACHE_DEPS) $(NCRYPT_DEPS) $(INTLDEPS)
DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
-DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\"
EXTRA_SCRIPTS =
pgpring_SOURCES = pgppubring.c
-pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) $(LIBLIB)
-pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) $(LIBLIBDEPS)
+pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) $(LIBMUTT)
+pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) $(LIBMUTTDEPS)
mutt_md5_SOURCES = md5.c
-mutt_md5_LDADD = $(LIBLIB)
-mutt_md5_DEPENDENCIES = $(LIBLIBDEPS)
+mutt_md5_LDADD = $(LIBMUTT)
+mutt_md5_DEPENDENCIES = $(LIBMUTTDEPS)
txt2c_SOURCES = txt2c.c
txt2c_LDADD =
+$(MAKE) -C $(top_srcdir) keymap_defs.h
hcversion.h: $(top_srcdir)/mutt.h $(top_srcdir)/address.h $(top_srcdir)/list.h \
- $(top_srcdir)/lib/lib_buffer.h $(top_srcdir)/parameter.h \
+ $(top_srcdir)/lib/buffer.h $(top_srcdir)/parameter.h \
$(top_srcdir)/body.h $(top_srcdir)/envelope.h \
$(top_srcdir)/header.h $(srcdir)/hcachever.sh ../$(MUTT_MD5)
( echo '#include "config.h"'; echo '#include "mutt.h"'; \
echo '#include "address.h"'; echo '#include "list.h"'; \
- echo '#include "lib/lib_buffer.h"'; echo '#include "parameter.h"'; \
+ echo '#include "lib/buffer.h"'; echo '#include "parameter.h"'; \
echo '#include "body.h"'; echo '#include "envelope.h"'; \
echo '#include "header.h"'; \
) | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - | sh $(srcdir)/hcachever.sh hcversion.h
AUTOMAKE_OPTIONS = 1.6 foreign
-EXTRA_DIST = lib.h lib_ascii.h lib_base64.h lib_buffer.h lib_date.h lib_debug.h lib_exit.h lib_file.h lib_hash.h lib_md5.h lib_memory.h lib_message.h lib_sha1.h lib_string.h
+EXTRA_DIST = lib.h ascii.h base64.h buffer.h date.h debug.h exit.h file.h hash.h md5.h memory.h message.h sha1.h string2.h
AM_CPPFLAGS = -I$(top_srcdir)
-noinst_LIBRARIES = liblib.a
-noinst_HEADERS =
+noinst_LIBRARIES = libmutt.a
-liblib_a_SOURCES = lib_ascii.c lib_base64.c lib_buffer.c lib_date.c lib_debug.c lib_exit.c lib_file.c lib_hash.c lib_md5.c lib_memory.c lib_message.c lib_sha1.c lib_string.c
+libmutt_a_SOURCES = ascii.c base64.c buffer.c date.c debug.c exit.c file.c hash.c md5.c memory.c message.c sha1.c string.c
#include "config.h"
#include <ctype.h>
#include <stdio.h>
-#include "lib_ascii.h"
+#include "ascii.h"
/**
* ascii_strcasecmp - Compare strings, ignoring the case
*/
#include "config.h"
-#include "lib_base64.h"
+#include "base64.h"
#define BAD -1
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
-#include "lib_buffer.h"
-#include "lib_memory.h"
-#include "lib_string.h"
+#include "buffer.h"
+#include "memory.h"
+#include "string2.h"
/**
* mutt_buffer_new - Create and initialise a Buffer
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include "lib_file.h"
-#include "lib_debug.h"
-#include "lib_memory.h"
-#include "lib_string.h"
+#include "file.h"
+#include "debug.h"
+#include "memory.h"
+#include "string2.h"
/* these characters must be escaped in regular expressions */
static const char rx_special_chars[] = "^.[$()|*+?{\\";
#include "config.h"
#include <ctype.h>
#include <stdio.h>
-#include "lib_hash.h"
-#include "lib_memory.h"
-#include "lib_string.h"
+#include "hash.h"
+#include "memory.h"
+#include "string2.h"
#define SOMEPRIME 149711
#ifndef _LIB_LIB_H
#define _LIB_LIB_H
-#include "lib_ascii.h"
-#include "lib_base64.h"
-#include "lib_buffer.h"
-#include "lib_date.h"
-#include "lib_debug.h"
-#include "lib_exit.h"
-#include "lib_file.h"
-#include "lib_hash.h"
-#include "lib_md5.h"
-#include "lib_memory.h"
-#include "lib_message.h"
-#include "lib_sha1.h"
-#include "lib_string.h"
+#include "ascii.h"
+#include "base64.h"
+#include "buffer.h"
+#include "date.h"
+#include "debug.h"
+#include "exit.h"
+#include "file.h"
+#include "hash.h"
+#include "md5.h"
+#include "memory.h"
+#include "message.h"
+#include "sha1.h"
+#include "string2.h"
#endif /* _LIB_LIB_H */
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "lib_md5.h"
+#include "md5.h"
#ifdef WORDS_BIGENDIAN
#define SWAP(n) \
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include "lib_memory.h"
-#include "lib_exit.h"
-#include "lib_message.h"
+#include "memory.h"
+#include "exit.h"
+#include "message.h"
/**
* safe_calloc - Allocate zeroed memory on the heap
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
-#include "lib_memory.h"
+#include "memory.h"
/**
* default_error - Display an error message
#include "config.h"
#include <string.h>
-#include "lib_sha1.h"
+#include "sha1.h"
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include "lib_string.h"
-#include "lib_memory.h"
+#include "string2.h"
+#include "memory.h"
/**
* mutt_atol - Convert ASCII string to a long
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/* NOTE: This file is called string2.h so that other files can safely
+ * #include <string.h>
+ */
+
#ifndef _LIB_STRING_H
#define _LIB_STRING_H