From c45b37ce0f7ac22ebd606269bbc7674f6b49370e Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 25 Jan 2012 19:44:30 -0600 Subject: [PATCH] If using gcc, use -Wno-unused-macros when compiling sbr/dtime.o. --- .gitignore | 1 + Makefile.am | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f00adc1..b5766db 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ /missing /mts/libmts.a /sbr/dtimep.c +/sbr/libdtimep.a /sbr/libmh.a /sbr/sigmsg.h /uip/ali diff --git a/Makefile.am b/Makefile.am index f7b8661..1e326b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,7 @@ ACLOCAL_AMFLAGS = -I m4 ## LDADD is included in the program-specific LDADD since we want to add ## to this list of libraries, not replace it. ## -LDADD = sbr/libmh.a +LDADD = sbr/libmh.a sbr/libdtimep.a ## ## These are used to create the default mhn.defaults config file @@ -72,7 +72,7 @@ auxexec_PROGRAMS = uip/ap uip/conflict uip/dp uip/fmtdump uip/mhl uip/post \ ## Internal libraries that we create as part of the build process ## but do not install ## -noinst_LIBRARIES = sbr/libmh.a mts/libmts.a +noinst_LIBRARIES = sbr/libmh.a sbr/libdtimep.a mts/libmts.a ## ## These are all of our header files. Right now we don't install any of @@ -390,7 +390,7 @@ sbr_libmh_a_SOURCES = sbr/addrsbr.c sbr/ambigsw.c sbr/atooi.c sbr/brkstring.c \ sbr/context_replace.c sbr/context_save.c \ sbr/copy.c sbr/copyip.c sbr/cpydata.c \ sbr/cpydgst.c sbr/crawl_folders.c sbr/discard.c \ - sbr/done.c sbr/dtime.c sbr/dtimep.l \ + sbr/done.c sbr/dtime.c \ sbr/error.c sbr/ext_hook.c sbr/fdcompare.c \ sbr/folder_addmsg.c sbr/folder_delmsgs.c \ sbr/folder_free.c sbr/folder_pack.c \ @@ -424,6 +424,9 @@ sbr_libmh_a_CPPFLAGS = -I./sbr -DNMHETCDIR='"$(sysconfdir)"' \ -DDEFAULT_EDITOR='"$(default_editor)"' \ -DDEFAULT_PAGER='"$(default_pager)"' +sbr_libdtimep_a_SOURCES = sbr/dtimep.l +sbr_libdtimep_a_CFLAGS = $(sbr_libmh_a_CPPFLAGS) $(DISABLE_UNUSED_MACROS_WARNING) + mts_libmts_a_SOURCES = mts/smtp/hosts.c mts/smtp/smtp.c ## -- 1.7.10.4