2010-03-21 09:54:08 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2010-03-10 10:59:57 -08:00
|
|
|
dir := compat
|
2011-03-09 15:02:42 -08:00
|
|
|
extra_cflags += -I$(srcdir)/$(dir)
|
2009-12-01 15:23:25 -08:00
|
|
|
|
2010-04-11 19:44:52 -04:00
|
|
|
notmuch_compat_srcs :=
|
2009-12-01 15:23:25 -08:00
|
|
|
|
2014-01-27 10:12:12 -04:00
|
|
|
ifneq ($(HAVE_CANONICALIZE_FILE_NAME),1)
|
|
|
|
notmuch_compat_srcs += $(dir)/canonicalize_file_name.c
|
|
|
|
endif
|
|
|
|
|
2009-12-01 15:23:25 -08:00
|
|
|
ifneq ($(HAVE_GETLINE),1)
|
|
|
|
notmuch_compat_srcs += $(dir)/getline.c $(dir)/getdelim.c
|
|
|
|
endif
|
2010-04-13 09:47:48 -07:00
|
|
|
|
|
|
|
ifneq ($(HAVE_STRCASESTR),1)
|
|
|
|
notmuch_compat_srcs += $(dir)/strcasestr.c
|
|
|
|
endif
|
2012-01-15 15:20:42 -05:00
|
|
|
|
2013-08-16 16:38:16 +02:00
|
|
|
ifneq ($(HAVE_STRSEP),1)
|
|
|
|
notmuch_compat_srcs += $(dir)/strsep.c
|
|
|
|
endif
|
|
|
|
|
2013-08-21 13:09:54 +02:00
|
|
|
ifneq ($(HAVE_TIMEGM),1)
|
|
|
|
notmuch_compat_srcs += $(dir)/timegm.c
|
|
|
|
endif
|
|
|
|
|
2012-01-15 15:20:42 -05:00
|
|
|
SRCS := $(SRCS) $(notmuch_compat_srcs)
|