Commit 0f3bca17 0f3bca17956adc76c95b0d869e893f2f169a040d by Sergey Poznyakoff

(UNCLUDES): Rewritten using MU_COMMON_INCLUDES

1 parent 3a8ef618
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
AM_CFLAGS = -DSITE_VIRTUAL_PWDDIR=\"@SITE_VIRTUAL_PWDDIR@\" \
-DSITE_CRAM_MD5_PWD=\"@SITE_CRAM_MD5_PWD@\"
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES =-I$(srcdir) -I$(top_srcdir)/lib -I${top_builddir}/include/mailutils/gnu -I$(top_srcdir)/include @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
sbin_PROGRAMS = comsatd
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
bin_PROGRAMS = mailutils-config
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES =-I$(srcdir) -I$(top_srcdir)/lib -I${top_builddir}/include/mailutils/gnu -I$(top_srcdir)/include -I$(top_srcdir)/libmu_scm @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
bin_PROGRAMS = dotlock
......
......@@ -47,9 +47,7 @@ noinst_PROGRAMS = \
moddir=@SIEVE_MODDIR@
mod_LTLIBRARIES = numaddr.la
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib\
-I$(top_builddir)/include/mailutils/gnu\
-I$(top_srcdir)/mailbox @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
AM_LDFLAGS = ../mailbox/libmailutils.la ../lib/libmuaux.la @MU_COMMON_LIBRARIES@
......
......@@ -17,8 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib\
-I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
SUBDIRS = testsuite
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib \
-I$(top_srcdir)/mailbox -I$(top_srcdir)/include \
-I${top_builddir}/include/mailutils/gnu @GUILE_INCLUDES@ @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @GUILE_INCLUDES@ @INTLINCS@
SUBDIRS=scm
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/include \
-I$(top_srcdir)/mailbox \
-I${top_builddir}/include/mailutils/gnu @MU_AUTHINCS@ @SERV_AUTHINCS@ @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @MU_AUTHINCS@ @SERV_AUTHINCS@ @INTLINCS@
SUBDIRS = testsuite
sbin_PROGRAMS = imap4d
......
......@@ -19,7 +19,8 @@
noinst_LTLIBRARIES = libmuaux.la
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox -I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
libmuaux_la_SOURCES = \
daemon.c\
mailcap.c\
......@@ -47,17 +48,6 @@ libmuaux_la_SOURCES += exit.h
BUILT_SOURCES += $(FNMATCH_H)
EXTRA_DIST += fnmatch_.h fnmatch_loop.c
# We need the following in order to create <fnmatch.h> when the system
# doesn't have one that supports the required API.
fnmatch.h: fnmatch_.h
cp $(srcdir)/fnmatch_.h $@-t
mv $@-t $@
MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
libmuaux_la_SOURCES += mbswidth.h mbswidth.c
......
......@@ -16,10 +16,7 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox\
-I${top_srcdir}/mailbox/include\
-I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
MU_CXX_LIBS = libmu_cpp.la
lib_LTLIBRARIES = @MU_CXX_LIBS@
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES =-I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include @GUILE_INCLUDES@ @INTLINCS@
INCLUDES = -I. @MU_COMMON_INCLUDES@ @GUILE_INCLUDES@ @INTLINCS@
lib_LTLIBRARIES=@MU_SCM@
EXTRA_LTLIBRARIES=libmu_scm.la
......
......@@ -17,8 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib\
-I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
YLWRAP = $(SHELL) $(top_srcdir)/scripts/ylwrap
AM_YFLAGS = -dtv
......
......@@ -20,9 +20,7 @@
moddir=@SIEVE_MODDIR@
mod_LTLIBRARIES = timestamp.la spamd.la list.la vacation.la
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib\
-I$(top_builddir)/include/mailutils/gnu\
-I$(top_srcdir)/mailbox @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
AM_LDFLAGS = ../../mailbox/libmailutils.la ../../lib/libmuaux.la
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES =-I$(srcdir) -I$(top_srcdir)/lib -I${top_builddir}/include/mailutils/gnu -I$(top_srcdir)/mailbox -I$(top_srcdir)/include @GUILE_INCLUDES@ @INTLINCS@
INCLUDES = -I${top_srcdir} @MU_COMMON_INCLUDES@ @GUILE_INCLUDES@ @INTLINCS@
SUBDIRS = testsuite
libexec_PROGRAMS = mail.local
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES =-I$(srcdir) -I$(top_srcdir)/lib -I${top_builddir}/include/mailutils/gnu -I$(top_srcdir)/include @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
SUBDIRS = testsuite
PROGRAMS_SMTP = mail.remote$(EXEEXT)
......
......@@ -18,7 +18,7 @@
## 02110-1301 USA
AM_YFLAGS=-vt
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu -I${top_srcdir}/mailbox @INTLINCS@ @MU_AUTHINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@ @MU_AUTHINCS@
AM_CFLAGS = -DSITE_MAIL_RC=\"@SITE_MAIL_RC@\"
bin_PROGRAMS = mail
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
AM_CFLAGS = -DSITE_VIRTUAL_PWDDIR=\"@SITE_VIRTUAL_PWDDIR@\"
YLWRAP = $(SHELL) $(top_srcdir)/scripts/ylwrap
......@@ -123,10 +121,31 @@ libmailutils_la_SOURCES += argp.h argp-ba.c argp-eexst.c \
argp-namefrob.h argp-parse.c argp-pv.c argp-pvh.c argp-xinl.c
EXTRA_DIST += regex_internal.c regex_internal.h regexec.c regcomp.c
libmailutils_la_SOURCES += strtok_r.h
BUILT_SOURCES += $(GLOB_H)
# We need the following in order to create <glob.h> when the system
# doesn't have one that works with the given compiler.
glob.h: glob_.h
cp $(srcdir)/glob_.h $@-t
mv $@-t $@
MOSTLYCLEANFILES += glob.h glob.h-t
BUILT_SOURCES += $(FNMATCH_H)
EXTRA_DIST += fnmatch_.h fnmatch_loop.c
# We need the following in order to create <fnmatch.h> when the system
# doesn't have one that supports the required API.
fnmatch.h: fnmatch_.h
cp $(srcdir)/fnmatch_.h $@-t
mv $@-t $@
MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
BUILT_SOURCES += $(GETOPT_H)
......@@ -141,13 +160,18 @@ MOSTLYCLEANFILES += getopt.h getopt.h-t
libmailutils_la_SOURCES += gettext.h
libmailutils_la_SOURCES += mbchar.h mbchar.c
libmailutils_la_SOURCES += mbchar.h
libmailutils_la_SOURCES += mbuiter.h
libmailutils_la_SOURCES += minmax.h
libmailutils_la_SOURCES += size_max.h
BUILT_SOURCES += $(STDBOOL_H)
EXTRA_DIST += stdbool_.h
......@@ -159,12 +183,23 @@ stdbool.h: stdbool_.h
mv $@-t $@
MOSTLYCLEANFILES += stdbool.h stdbool.h-t
BUILT_SOURCES += $(STDINT_H)
EXTRA_DIST += stdint_.h
# We need the following in order to create <stdint.h> when the system
# doesn't have one that works with the given compiler.
stdint.h: stdint_.h
sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t
mv $@-t $@
MOSTLYCLEANFILES += stdint.h stdint.h-t
libmailutils_la_SOURCES += strcase.h
libmailutils_la_SOURCES += strchrnul.h
libmailutils_la_SOURCES += strnlen1.h strnlen1.c
BUILT_SOURCES += $(SYSEXITS_H)
......@@ -177,19 +212,10 @@ sysexits.h: sysexit_.h
mv sysexits.h-t sysexits.h
MOSTLYCLEANFILES += sysexits.h sysexits.h-t
libmailutils_la_SOURCES += printf-args.h printf-parse.h vasnprintf.h
libmailutils_la_SOURCES += vsnprintf.h
libmailutils_la_SOURCES += xsize.h
EXTRA_DIST += getdelim.c getdelim.h getdelim.c getopt.c getopt1.c md5.c md5.h md5.c memchr.c mempcpy.c mempcpy.h mempcpy.c vasnprintf.c printf-args.c printf-parse.c asnprintf.c getline.c getline.c getline.h getline.c getndelim2.c vsnprintf.c unlocked-io.h strchrnul.c regex.c strcasecmp.c strncasecmp.c strndup.c strndup.h strndup.c strnlen.c strnlen.h strnlen.c strtok_r.c
CFLOW_FLAGS=-i^s --brief
mailutils_CFLOW_INPUT=$(libmailutils_la_OBJECTS:.lo=.c)
mailutils.cflow: $(mailutils_CFLOW_INPUT) Makefile
cflow -o$@ $(CFLOW_FLAGS) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) \
$(mailutils_CFLOW_INPUT)
EXTRA_DIST += fnmatch.c getline.c getline.c getline.h getline.c getndelim2.c getopt.c getopt1.c md5.c md5.h md5.c mempcpy.c mempcpy.h mempcpy.c regex.c strcasecmp.c strncasecmp.c strchrnul.c strndup.c strndup.h strndup.c strnlen.c strnlen.h strnlen.c strtok_r.c vasnprintf.c printf-args.c printf-parse.c asnprintf.c vsnprintf.c unlocked-io.h getdelim.c getdelim.h getdelim.c mbchar.c memchr.c getlogin_r.c getlogin_r.c glob.c glob_.h glob-libc.h glob.c stat-macros.h strdup.c strdup.h strdup.c
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
lib_LTLIBRARIES = libmu_imap.la
libmu_imap_la_LDFLAGS=-version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
lib_LTLIBRARIES = libmu_maildir.la
libmu_maildir_la_LDFLAGS=-version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
lib_LTLIBRARIES = libmu_mbox.la
libmu_mbox_la_LDFLAGS=-version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
lib_LTLIBRARIES = libmu_mh.la
libmu_mh_la_LDFLAGS=-version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
lib_LTLIBRARIES = libmu_nntp.la
libmu_nntp_la_LDFLAGS=-version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
......
......@@ -17,9 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox \
-I${top_srcdir}/mailbox/include -I${top_builddir}/include/mailutils/gnu \
@INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/mailbox/include @INTLINCS@
lib_LTLIBRARIES = libmu_pop.la
libmu_pop_la_LDFLAGS=-version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
......
......@@ -17,7 +17,7 @@
## Foundation, Inc.
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox/include
INCLUDES = @MU_COMMON_INCLUDES@
SUBDIRS = include
......
......@@ -17,8 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib\
-I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
SUBDIRS = testsuite
......
......@@ -122,7 +122,7 @@ mailutils-mh.el: mailutils-mh.eli
.eli.el:
sed "s,BINDIR,$(bindir),g;s,MHLIBDIR,$(mhlibdir),g" $< > $@
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu -I${top_srcdir}/mailbox @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
AM_CPPFLAGS = -D_GNU_SOURCE -DMHLIBDIR=\"$(mhlibdir)\" -DMHBINDIR=\"$(bindir)\"
mh_LIBS = \
./libmh.a\
......
......@@ -17,8 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib\
-I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
AM_CFLAGS = -DDEFAULT_CUPS_CONFDIR=\"@DEFAULT_CUPS_CONFDIR@\"
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu -I${top_srcdir}/mailbox @INTLINCS@ @MU_AUTHINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@ @MU_AUTHINCS@
bin_PROGRAMS = movemail
movemail_LDADD = \
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES =-I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/mailbox -I${top_builddir}/include/mailutils/gnu -I$(top_srcdir)/include @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
sbin_PROGRAMS = pop3d
bin_PROGRAMS = @POPAUTH@
......
......@@ -17,8 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib\
-I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
SUBDIRS = testsuite
......
......@@ -17,7 +17,7 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES = @MU_COMMON_INCLUDES@ @INTLINCS@
SUBDIRS = testsuite
bin_PROGRAMS = sieve
......
......@@ -25,7 +25,7 @@ EXTRA_DIST=\
postgres.c
DISTCLEANFILES = modlist.h
INCLUDES=-I${top_srcdir}/include -I${top_srcdir}/mailbox/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu @INTLINCS@
INCLUDES= @MU_COMMON_INCLUDES@ @INTLINCS@
libsql_la_SOURCES=sql.c
libsql_la_LIBADD=@SQL_LTLIBOBJS@
......