aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNoam Postavsky2018-08-25 18:55:11 -0400
committerNoam Postavsky2018-08-25 18:57:28 -0400
commit769d0cdaa9a986b74e30dfc589e1fa8115e1d401 (patch)
tree538c00cb6c36550e7c3aa40a683807538643cd06 /test
parent9a1329e966ecbd22464f607456153bdd4fa0d5ea (diff)
downloademacs-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.in6
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
231FPIC_CFLAGS = -fPIC 231FPIC_CFLAGS = -fPIC
232endif 232endif
233 233
234MODULE_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.
236MODULE_CFLAGS = -I../src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \
235 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) 237 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
236 238
237test_module = $(test_module_dir)/mod-test${SO} 239test_module = $(test_module_dir)/mod-test${SO}
238src/emacs-module-tests.log: $(test_module) 240src/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 $@ $<
242endif 244endif