aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorPhilipp Stephani2017-06-13 20:46:03 +0200
committerPhilipp Stephani2017-06-13 20:48:15 +0200
commit58b9b098a4cbefbe7ae28079a96625bd450c9316 (patch)
tree06a75c54ff53a0f01e543aa58828496eda517859 /test/data
parenta63aeb64b70ba20cd1611bf97e435dd43a1c93f7 (diff)
downloademacs-58b9b098a4cbefbe7ae28079a96625bd450c9316.tar.gz
emacs-58b9b098a4cbefbe7ae28079a96625bd450c9316.zip
Inline test module Makefile into main test Makefile
The test/data/emacs-module/Makefile only built a single target, and inlining it into test/Makefile simplifies dependency tracking and reduces code duplication. * configure.ac: Don't build test/data/emacs-module/Makefile. * Makefile.in ($(test_module)): Inline compilation. (clean): Also clean test module outputs.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/emacs-module/Makefile.in59
1 files changed, 0 insertions, 59 deletions
diff --git a/test/data/emacs-module/Makefile.in b/test/data/emacs-module/Makefile.in
deleted file mode 100644
index 2af6473c7a6..00000000000
--- a/test/data/emacs-module/Makefile.in
+++ /dev/null
@@ -1,59 +0,0 @@
1### @configure_input@
2
3# Test GNU Emacs modules.
4
5# Copyright 2015-2017 Free Software Foundation, Inc.
6
7# This file is part of GNU Emacs.
8
9# GNU Emacs is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13
14# GNU Emacs is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
22SHELL = @SHELL@
23
24top_srcdir = @top_srcdir@
25VPATH = $(srcdir)
26CC = @CC@
27CFLAGS = @CFLAGS@
28PROFILING_CFLAGS = @PROFILING_CFLAGS@
29WARN_CFLAGS = @WARN_CFLAGS@
30WERROR_CFLAGS = @WERROR_CFLAGS@
31CPPFLAGS = @CPPFLAGS@
32SO = @MODULES_SUFFIX@
33
34# -fPIC is a no-op on Windows, but causes a compiler warning
35ifeq ($(SO),.dll)
36FPIC_CFLAGS =
37else
38FPIC_CFLAGS = -fPIC
39endif
40
41ALL_CFLAGS = -I$(top_srcdir)/src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \
42 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
43
44all: mod-test$(SO)
45
46%$(SO): %.o
47 $(CC) -shared $(LDFLAGS) -o $@ $<
48
49%.o: %.c $(top_srcdir)/src/emacs-module.h
50 $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
51
52## Stop .o files being deleted.
53.SECONDARY:
54
55.PHONY: clean
56
57clean:
58 rm -f *.o *.so *.dll
59