From: Philipp Stephani Date: Mon, 12 Jun 2017 14:18:01 +0000 (+0200) Subject: Use additional CFLAGS from configure X-Git-Tag: emacs-26.0.90~521^2~112 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d7f6477c0180324270b6b9cf289e8da3583b45c6;p=emacs.git Use additional CFLAGS from configure --- diff --git a/test/data/emacs-module/Makefile.in b/test/data/emacs-module/Makefile.in index 427d1aaa07c..c284256181e 100644 --- a/test/data/emacs-module/Makefile.in +++ b/test/data/emacs-module/Makefile.in @@ -25,6 +25,9 @@ top_srcdir = @top_srcdir@ VPATH = $(srcdir) CC = @CC@ CFLAGS = @CFLAGS@ +PROFILING_CFLAGS = @PROFILING_CFLAGS@ +WARN_CFLAGS = @WARN_CFLAGS@ +WERROR_CFLAGS = @WERROR_CFLAGS@ CPPFLAGS = @CPPFLAGS@ SO = @MODULES_SUFFIX@ @@ -35,12 +38,15 @@ else FPIC_CFLAGS = -fPIC endif +ALL_CFLAGS = -I$(top_srcdir)/src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ + $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) + all: mod-test$(SO) %$(SO): %.o $(CC) -shared $(LDFLAGS) -o $@ $< %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC_CFLAGS) -I$(top_srcdir)/src -c -o $@ $< + $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< %.o: $(srcdir)/emacs-module.[ch]