diff options
| author | Noam Postavsky | 2018-08-25 18:55:11 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-08-25 18:57:28 -0400 |
| commit | 769d0cdaa9a986b74e30dfc589e1fa8115e1d401 (patch) | |
| tree | 538c00cb6c36550e7c3aa40a683807538643cd06 /test | |
| parent | 9a1329e966ecbd22464f607456153bdd4fa0d5ea (diff) | |
| download | emacs-769d0cdaa9a986b74e30dfc589e1fa8115e1d401.tar.gz emacs-769d0cdaa9a986b74e30dfc589e1fa8115e1d401.zip | |
; Fix out-of-tree build for mod-test.so
* test/Makefile.in: Don't look for emacs-module.h in $(srcdir), since
it is generated.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 597ef913113..c0a073338ef 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -231,12 +231,14 @@ else | |||
| 231 | FPIC_CFLAGS = -fPIC | 231 | FPIC_CFLAGS = -fPIC |
| 232 | endif | 232 | endif |
| 233 | 233 | ||
| 234 | MODULE_CFLAGS = -I$(srcdir)/../src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ | 234 | # Note: emacs-module.h is generated from emacs-module.h.in, hence we |
| 235 | # look in ../src, not $(srcdir)/../src. | ||
| 236 | MODULE_CFLAGS = -I../src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ | ||
| 235 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) | 237 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) |
| 236 | 238 | ||
| 237 | test_module = $(test_module_dir)/mod-test${SO} | 239 | test_module = $(test_module_dir)/mod-test${SO} |
| 238 | src/emacs-module-tests.log: $(test_module) | 240 | src/emacs-module-tests.log: $(test_module) |
| 239 | $(test_module): $(test_module:${SO}=.c) $(srcdir)/../src/emacs-module.h | 241 | $(test_module): $(test_module:${SO}=.c) ../src/emacs-module.h |
| 240 | $(AM_V_CCLD)$(CC) -shared $(CPPFLAGS) $(MODULE_CFLAGS) $(LDFLAGS) \ | 242 | $(AM_V_CCLD)$(CC) -shared $(CPPFLAGS) $(MODULE_CFLAGS) $(LDFLAGS) \ |
| 241 | -o $@ $< | 243 | -o $@ $< |
| 242 | endif | 244 | endif |