Update Makefile.
Showing
3 changed files
with
56 additions
and
42 deletions
... | @@ -9,15 +9,46 @@ SUBDIRS = include | ... | @@ -9,15 +9,46 @@ SUBDIRS = include |
9 | 9 | ||
10 | lib_LTLIBRARIES = libmailbox.la | 10 | lib_LTLIBRARIES = libmailbox.la |
11 | 11 | ||
12 | EXTRA_DIST = mbx_unixscan.c | 12 | EXTRA_DIST = mbx_mboxscan.c |
13 | 13 | ||
14 | libmailbox_la_SOURCES = \ | 14 | libmailbox_la_SOURCES = \ |
15 | _cpystr.c attachment.c attribute.c auth.c body.c file_stream.c \ | 15 | attachment.c \ |
16 | header.c stream.c locker.c mailbox.c mailer.c mapfile_stream.c \ | 16 | attribute.c \ |
17 | mbx_default.c mbx_imap.c mbx_mbox.c mbx_mdir.c mbx_mh.c mbx_mmdf.c \ | 17 | auth.c \ |
18 | mbx_pop.c mbx_unix.c message.c mime.c registrar.c tcp.c trans_stream.c \ | 18 | bio.c \ |
19 | url.c url_file.c url_imap.c url_mail.c url_mbox.c url_mdir.c \ | 19 | body.c \ |
20 | url_mh.c url_mmdf.c url_pop.c url_unix.c | 20 | debug.c \ |
21 | file_stream.c \ | ||
22 | header.c \ | ||
23 | iterator.c \ | ||
24 | list.c \ | ||
25 | locker.c \ | ||
26 | mailbox.c \ | ||
27 | mailer.c \ | ||
28 | mapfile_stream.c \ | ||
29 | mbx_default.c \ | ||
30 | mbx_file.c \ | ||
31 | mbx_mbox.c \ | ||
32 | mbx_pop.c \ | ||
33 | message.c \ | ||
34 | mime.c \ | ||
35 | misc.c | ||
36 | observer.c \ | ||
37 | registrar.c \ | ||
38 | sendmail.c \ | ||
39 | smtp.c \ | ||
40 | stream.c \ | ||
41 | tcp.c \ | ||
42 | trans_stream.c \ | ||
43 | transcode.c \ | ||
44 | url.c \ | ||
45 | url_file.c \ | ||
46 | url_mbox.c \ | ||
47 | url_path.c \ | ||
48 | url_pop.c \ | ||
49 | url_sendmail.c \ | ||
50 | url_smtp.c | ||
51 | |||
21 | 52 | ||
22 | libmailbox_la_LDFLAGS = -version-info 0:0:0 | 53 | libmailbox_la_LDFLAGS = -version-info 0:0:0 |
23 | 54 | ... | ... |
mailbox/_cpystr.c
deleted
100644 → 0
1 | /* GNU mailutils - a suite of utilities for electronic mail | ||
2 | Copyright (C) 1999, 2000 Free Software Foundation, Inc. | ||
3 | |||
4 | This program is free software; you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Library Public License as published by | ||
6 | the Free Software Foundation; either version 2, or (at your option) | ||
7 | any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU Library General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this program; if not, write to the Free Software | ||
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
17 | |||
18 | #include <cpystr.h> | ||
19 | #include <string.h> | ||
20 | |||
21 | size_t | ||
22 | _cpystr (char *dst, const char *src, size_t size) | ||
23 | { | ||
24 | size_t len = src ? strlen (src) : 0 ; | ||
25 | if (dst == NULL || size == 0) | ||
26 | return len; | ||
27 | if (len >= size) | ||
28 | len = size - 1; | ||
29 | memcpy (dst, src, len); | ||
30 | dst[len] = '\0'; | ||
31 | return len; | ||
32 | } |
1 | noinst_HEADERS = \ | 1 | noinst_HEADERS = \ |
2 | attribute0.h auth0.h body0.h cpystr.h header0.h mailbox0.h mailer0.h \ | 2 | attribute0.h \ |
3 | mbx_imap.h mbx_mbox.h mbx_mdir.h mbx_mmdf.h mbx_pop.h mbx_unix.h \ | 3 | auth0.h \ |
4 | message0.h mime0.h registrar0.h stream0.h tcp0.h url0.h | 4 | bio.h \ |
5 | body0.h \ | ||
6 | debug0.h \ | ||
7 | header0.h \ | ||
8 | iterator0.h \ | ||
9 | list0.h \ | ||
10 | mailbox0.h \ | ||
11 | mailer0.h \ | ||
12 | message0.h \ | ||
13 | mime0.h \ | ||
14 | misc.h \ | ||
15 | observer0.h \ | ||
16 | registrar0.h \ | ||
17 | stream0.h \ | ||
18 | tcp0.h \ | ||
19 | url0.h | ... | ... |
-
Please register or sign in to post a comment