diff options
| author | Philipp Stephani | 2017-06-12 16:18:01 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-06-12 16:18:01 +0200 |
| commit | d7f6477c0180324270b6b9cf289e8da3583b45c6 (patch) | |
| tree | 07025a3050eb054338e17f4c682dcc8c6dd5aee3 /test/data | |
| parent | c90a97adc49e844d884a4422e99570526fd92485 (diff) | |
| download | emacs-d7f6477c0180324270b6b9cf289e8da3583b45c6.tar.gz emacs-d7f6477c0180324270b6b9cf289e8da3583b45c6.zip | |
Use additional CFLAGS from configure
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/emacs-module/Makefile.in | 8 |
1 files changed, 7 insertions, 1 deletions
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@ | |||
| 25 | VPATH = $(srcdir) | 25 | VPATH = $(srcdir) |
| 26 | CC = @CC@ | 26 | CC = @CC@ |
| 27 | CFLAGS = @CFLAGS@ | 27 | CFLAGS = @CFLAGS@ |
| 28 | PROFILING_CFLAGS = @PROFILING_CFLAGS@ | ||
| 29 | WARN_CFLAGS = @WARN_CFLAGS@ | ||
| 30 | WERROR_CFLAGS = @WERROR_CFLAGS@ | ||
| 28 | CPPFLAGS = @CPPFLAGS@ | 31 | CPPFLAGS = @CPPFLAGS@ |
| 29 | SO = @MODULES_SUFFIX@ | 32 | SO = @MODULES_SUFFIX@ |
| 30 | 33 | ||
| @@ -35,12 +38,15 @@ else | |||
| 35 | FPIC_CFLAGS = -fPIC | 38 | FPIC_CFLAGS = -fPIC |
| 36 | endif | 39 | endif |
| 37 | 40 | ||
| 41 | ALL_CFLAGS = -I$(top_srcdir)/src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ | ||
| 42 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) | ||
| 43 | |||
| 38 | all: mod-test$(SO) | 44 | all: mod-test$(SO) |
| 39 | 45 | ||
| 40 | %$(SO): %.o | 46 | %$(SO): %.o |
| 41 | $(CC) -shared $(LDFLAGS) -o $@ $< | 47 | $(CC) -shared $(LDFLAGS) -o $@ $< |
| 42 | 48 | ||
| 43 | %.o: %.c | 49 | %.o: %.c |
| 44 | $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC_CFLAGS) -I$(top_srcdir)/src -c -o $@ $< | 50 | $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< |
| 45 | 51 | ||
| 46 | %.o: $(srcdir)/emacs-module.[ch] | 52 | %.o: $(srcdir)/emacs-module.[ch] |